OSL ‐ Video Player - Mistium/Origin-OS GitHub Wiki

Video Player

Video Methods

  • url = any string of a video url

  • url.videoinfo("loaded") - true or false if a video is loaded

  • url.videoinfo("playing") - true or false if a video is playing

  • url.videoinfo("duration") - integer in seconds of the video length

  • url.videoinfo("width") - integer in pixels of the video width

  • url.videoinfo("height") - integer in pixels of the video height

  • url.videoinfo("current_time") - integer in seconds of the current time through the video

Video Commands

The video player is useful for.. well videos

  • video "clearall" - Deletes all loaded videos from ram

  • video url "clear" - Deletes a specific video from ram

  • video url "play" - Plays a speicifc video (works between applications)

  • video url "pause" - Pauses a specific video (works between applications)

  • video url width title subtext icon - Renders a video with the video player ui