How to create a video player part 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,251
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 25, 2008

How to create a video player without knowing any code with Autoplay Media Studio.

Write this code for VIDEO CONTROLS

LOAD (Multiple files)
video = Dialog.FileBrowse(true, "Load Videos", "Desktop", "Video Files (*.mpg;*.avi)|*.mpg;*.avi|MPEG (*.mpg)|*.mpg|AVI (*.avi)|*.avi|", "", "", true, true);
Video.Load("Video1", video[video_count], true);

PLAY
if (Video.GetFilename("Video1") "") then
Dialog.Message("No File Loaded", "Please click on the Load button to choose a video file");
else
Video.Play("Video1");
end

PAUSE
if (Video.GetFilename("Video1") "") then
Dialog.Message("No File Loaded", "Please click on the Load button to choose a video file");
else
Video.Pause("Video1");
end

STOP
if (Video.GetFilename("Video1") "") then
Dialog.Message("No File Loaded", "Please click on the Load button to choose a video file");
else
Video.Stop("Video1");
end

REWIND
if (Video.GetFilename("Video1") "") then
Dialog.Message("No File Loaded", "Please click on the Load button to choose a video file");
else
Video.Seek("Video1", SEEK_BACKWARD, 5);
end

FORWARD
if (Video.GetFilename("Video1") "") then
Dialog.Message("No File Loaded", "Please click on the Load button to choose a video file");
else
Video.Seek("Video1", SEEK_FORWARD, 5)
end

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Gooooooood job !!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more