Set Video Player

You can configure video properties with these commands:


videoplayer_dimension, videoplayer_xy, video_ctrl, video_pause, video_player and video_close.

below you will find the description of each individual command.


videoplayer_dimension (WIDTH) (EIGHT)


Set the dimension of the videoplayer, Width and Height are expressed in pixels.

Example

videoplayer_dimension 640 420
#...

videoplayer_xy (X) (Y)


Example

videoplayer_xy 400 50
#...

video_ctrl (ID) (TIME) process (MAKESUB_ID)


Example

# create mksub function named playsound
make_sub playsound
sub playsound mp3_load sound.mp3
sub playsound sleep 5

# load playsound function at time :00:00:23
video_ctrl video_id 00:00:23 process myfunction

#...
end_script

video_player (YOUTUBE_VIDEO) (SEC)

video_player (FILENAME) (SEC) hd


(SEC) option is obsolete

any data set in (SEC) will have no effect on the main command but must still be inserted, we recommend the value 99

Example:

# create mksub function named playsound
make_sub playsound
sub playsound mp3_load sound.mp3
sub playsound sleep 5

# load playsound function at time :00:00:23
video_ctrl video_id 00:00:23 process myfunction

# finally ..load and play then video..
video_player http://www.youtube.com/watch?v=your_Video_code 99
#OR
# video_player filename 99 hd --> for load video from USB/HDD

#...
end_script

video_pause


Example

video_player http://www.youtube.com/watch?v=your_Video_code 99
sleep 10

#PAUSE
video_pause
sleep 10

#PLAY
video_pause

#...
sleep 10
#close videoplayer
#video_close

# !!REMEMBER END SCRIPT end_script
Powered by Sgneep.com