Using Videos in OEOS via Audio Action - fapnip/openeos GitHub Wiki

The Eos editor on milovana.com only supports uploading JPEG images and MP3 files.

To use short (up to 60 second) videos, you'll need to upload them to https://www.redgifs.com (NSFW) or https://gfycat.com.

Because Eos has no native support for videos, OEOS allows you to hack them in to an Eos Audio Action's locator string, or link to them directly in script using new Video(...)

To create a link to a video, easy method:

  1. Install the Eos Editor Extension.

  2. Upload a simple placeholder.mp3 to Eos' file area. Can be a sound of anything and named anything.

  3. Add an Audio:play action to your tease and select the placeholder.mp3.

  4. In the "OpenEOS video URL:" text area, enter your redgif or gfycat URL.

To create a link to a video, long-hand method:

  1. Upload a simple placeholder.mp3 to Eos' file area. Can be a sound of anything and named anything.

  2. Now, add an Audio action to your tease and select that placeholder.mp3 file.

  3. URL encode the direct link to your redgifs.com or gfycat.com video.

    For example:

    https://thumbs.gfycat.com/OldThirstyAmericancicada-mobile.mp4

    Becomes:

    https%3A%2F%2Fthumbs.gfycat.com%2FOldThirstyAmericancicada-mobile.mp4

    Note: The URL must be a direct link to the video, not a page that hosts the video.

  4. Append that link to the file:placeholder.mp3 locator in your Audio action, along with some special sauce.

    The locator should now look like:

    file:placeholder.mp3+(|oeos-video:https%3A%2F%2Fthumbs.gfycat.com%2FOldThirstyAmericancicada-mobile.mp4)

    Note that the URL encoded link is wrapped by +(|oeos-video: and )

If you'd like to create a list of video links that OEOS will randomly select from, you need to put the links in a JSON array, then URL encode that.

For example:

["https://thumbs.gfycat.com/OldThirstyAmericancicada-mobile.mp4","https://thumbs.gfycat.com/BossyShockingIncatern-mobile.mp4"]

Would become:

%5B%22https%3A%2F%2Fthumbs.gfycat.com%2FOldThirstyAmericancicada-mobile.mp4%22%2C%22https%3A%2F%2Fthumbs.gfycat.com%2FBossyShockingIncatern-mobile.mp4%22%5D

And then finally:

file:placeholder.mp3+(|oeos-video:%5B%22https%3A%2F%2Fthumbs.gfycat.com%2FOldThirstyAmericancicada-mobile.mp4%22%2C%22https%3A%2F%2Fthumbs.gfycat.com%2FBossyShockingIncatern-mobile.mp4%22%5D)

Notes:

  • If using an oeos-video in an Eos audio action, the audio action's "Continue across pages" switch takes on a different meaning in OEOS. If on, the video will play asynchronously, moving on to the next action as soon as the video starts. If off, the video will display synchronously, moving on to the next action after the video completes.

  • OEOS hides all controls for video playing. The tease script is responsible for controlling volume/pause/play/seek of the video.