PDA

View Full Version : I need about 7 videos listed on a menu to appear as soon as the page loads so that th



riverside1
01-30-2008, 06:44 PM
I need about 7 videos listed on a menu to appear as soon as the page loads so that the user doesn't have to search for them or load them from another location, is this possible?

yosik
01-31-2008, 12:21 AM
Difficult to understand what you want. If you mean having 7 videos playing simultaneously, you can put the Video.Load Action on your Page onShow event (7 times)., so as to have the videos played as the page shows.

Yossi

Loes
01-31-2008, 02:50 AM
Name the first page "Main Menu" and create 7 additional pages for your videos. Embed one video per page, plus a button "Back to Main Menu", with a quick action to show the first page.

Put 7 buttons on the Main Menu page, each with the name of the video to play plus a tooltip with a short explanation of the video.
For each button add a quick action > Show Page > Specific Page > the name of the page for that specific video.

Hope this helps,

Loes

homes
02-01-2008, 11:02 AM
Hello, friend, you can do this too ..
Write this code in the page ON SHOW

myPlayListFolder = _SourceFolder .. "\\AutoPlay\\PlayList";
bFolderFound = Folder.DoesExist(myPlayListFolder);
if bFolderFound==false then
Folder.Create(myPlayListFolder);
else
end

tPlayList = File.Find(myPlayListFolder, "*.txt", false, false, nil, nil);
if tPlayList then
--do the following for each file:
for j,file_path in tPlayList do
--add the item to the listbox, with the name visible and path as data
tbFilePath = String.SplitPath(file_path);
sFile = tbFilePath.Filename;
ListBox.AddItem("ListBox2", sFile, file_path);
end
end

function writePlayList()
for i=1,nFiles do
sData = ListBox.GetItemData("ListBox1", i);
strOut = sData.."\r\n";
TextFile.WriteFromString(myPlayListFolder.."\\"..sPlayList..".txt", strOut, true);

end
return
end

MediaPlayer uses a plug on the same page with two listBox and click on number 1 you vargara the list of the videos.


Txt file will be in the path of your video

homes
02-01-2008, 11:02 AM
I hope you serve something

riverside1
02-04-2008, 02:42 AM
How doI get the videos to show up in the menu?

homes
02-04-2008, 08:17 AM
The txt file shows you the route, it is clear that you just have to copy this same route in the videos.And then, has clicked on the listabox your project ...