Don't know what I'm doing wrong, easy enough to open a file, but to open remote file (i.e. url online) is not working for me. Here's what I have to open file, but it doesn't remember last folder... I want also, option to open remote file from internet:
-- 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;*.mpeg)|*.mpg;*.mpeg|MPG (*.mpg)|*.mpg|MPEG (*.mpeg)|*.mpeg|","", "", 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.Play("Video1");
-- Adjust the Play/Pause button text
Button.SetText("pause", "PAUSE");
end
Any help will be appreciated, thanx much.
-- 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;*.mpeg)|*.mpg;*.mpeg|MPG (*.mpg)|*.mpg|MPEG (*.mpeg)|*.mpeg|","", "", 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.Play("Video1");
-- Adjust the Play/Pause button text
Button.SetText("pause", "PAUSE");
end
Any help will be appreciated, thanx much.
Comment