Play All Items
#1
The answer to this may be very easy. I tried searching, but could not get this. Looking at other codes did not help me either.

Here is a scenario. In an addon, say we list a bunch of url using addLink procedure. Example

http://flv1.flv
http://flv2.flv
http://flv2.flv

This plays fine. I want another link at the bottom which says,

"Play All Links"

I have a procedure that can handle that using a playlist. My question is how do I add that text. addLink does not take a mode value and also does not define the item as folder.
The default click action invokes the dvd player. Rather, I want my procedure to be fired when the last item is clicked. Instead of addLink, I tried using addDir procedure to place that item.
In that case the procedure fires. But it keeps on repeating once you try to shut down the playback. I guess if can somehow tell it to move up one level in the directory, that may solve it.
I just don't know how.

Thanks.
Reply
#2
Assuming you're using the addLink function from the tutorial, when you add your Play All item, the url should be of the form plugin://plugin.video.myplugin/?mode=somemode&aparam=someparam
Reply
#3
(2012-09-27, 04:15)Bstrdsmkr Wrote: Assuming you're using the addLink function from the tutorial, when you add your Play All item, the url should be of the form plugin://plugin.video.myplugin/?mode=somemode&aparam=someparam

Perfect. Works flawlessly. BTW... great fan of your work.
Reply

Logout Mark Read Team Forum Stats Members Help
Play All Items0