bobbie
04-18-2005, 11:44 PM
I have this but it opens and stops and then crashes ..
I just want to open a video and play full screen . and I have a button that plays the video in the the player I made and that works fine .
-- Display a File Browse Dialog, and then play the video that they select
-- Pick a nice default folder to start the browsing in (My Documents)
myfolder = Shell.GetFolder(SHF_MYDOCUMENTS);
-- Show the file browse dialog
tFiles = Dialog.FileBrowse(true, "Load Video", myfolder, "Video Files (*.mpg;*.avi)|*.mpg;*.avi|MPEG (*.mpg)|*.mpg|AVI (*.avi)|*.avi|", "", "", false, true);
-- Only load the video if they did not press Cancel
if tFiles[1] ~= "CANCEL" then
-- make sure the Video object is visible before trying to load a video
Video.SetVisible("Video1", true);
-- Load the video File
Video.Load("Video1", tFiles[1]);
-- Play the video
Video.SetFullScreen("Video1", true);
-- Adjust the Play/Pause button text
Button.SetText("ButtonPlay", "PAUSE");
end
I just want to open a video and play full screen . and I have a button that plays the video in the the player I made and that works fine .
-- Display a File Browse Dialog, and then play the video that they select
-- Pick a nice default folder to start the browsing in (My Documents)
myfolder = Shell.GetFolder(SHF_MYDOCUMENTS);
-- Show the file browse dialog
tFiles = Dialog.FileBrowse(true, "Load Video", myfolder, "Video Files (*.mpg;*.avi)|*.mpg;*.avi|MPEG (*.mpg)|*.mpg|AVI (*.avi)|*.avi|", "", "", false, true);
-- Only load the video if they did not press Cancel
if tFiles[1] ~= "CANCEL" then
-- make sure the Video object is visible before trying to load a video
Video.SetVisible("Video1", true);
-- Load the video File
Video.Load("Video1", tFiles[1]);
-- Play the video
Video.SetFullScreen("Video1", true);
-- Adjust the Play/Pause button text
Button.SetText("ButtonPlay", "PAUSE");
end