PDA

View Full Version : How to launch Media Player from 'Image' Click?


dwhittall
02-13-2007, 08:22 AM
I am still slowly learning AMS60 and have spent some time looking at Examples and reading through Message Posts on this Forum.

I have gained some useful insight on how to achieve things like -Populating a ListBox from a Folder, creating Play List that you can Save and Load, and have the MediaPlayer go through the PlayList in sequence.

However I have not yet discovered how one can Click on an Image and have it play a specific file asscocoated with that image, on the Media Player on another Page?

For example I want to consider creating an MP3 'JukeBox' where the Page displays 'Album Art' images. I want to be able to click on the Image of a particular Album, and listen to the song (or songs) associated with that AlbumArt image.

Similarly in another Project, I want the MediaPlayer to launch selected Videos via the Image of that Movie.

This is why I want to learn how to do this using the MediaPlayer, and have this launched using new Page so I can have the Media Player at Full Screen size.

I am sure I will get there eventually, but it seems to be hard going for me at the moment, as not found any example, that populates the ListBox/PlayList from Click of a Button (or Image Object, as I envisage)?
:rolleyes

Cheers,

David

yosik
02-13-2007, 11:18 PM
I haven't got the time to actually do it, but as a pointer to you: You should use tables with matching elements (table for image filenames, video filenames etc..).
Then when an image is clicked, its index is recorded and based on that index, you launch your mediaplayer with the matching video/audio file.
Hope that helped.
Yossi