2005-04-08, 03:04 AM
One feature I would love to see is a Video Play queue implemented. Subs given us some events that GBPVR currently executes:
CurrentAudioTrack,
CurrentVideoTrack,
CurrentChannelNumber,
CurrentChannelName,
VideoStopping,
MusicStopping,
What would be nice is a helper plugin that all it does is listens and reacts to events. It would even toss it own events that other plugins could listen for and react too. Here is the general idea:
Video Queue helper Events:
Listens for:
AddVideoToQuee
VideoStopping
CurrentVideo
ListVideosInQueue
DeleteFromQueue
ClearQueue
RetrieveNextVideo
Fires off:
NextVideoInQueue
VideosInQueue
DeletedFromQueue
ClearedQueue
Basically this is how it works, and we'll use My Videos just as an example.
1. My Videos has a play list of Videos that it wants to play. Say a Intro, three trailers, and then the main video.
2. It adds these files each to the VideoQueue by executing an AddVideoToQueue event for each of these videos.
3. Once this is complete, it fires an event for RetrieveNextVideo and the VideoQueue plugin excutes a NextVideoInQueue event, which My Videos would listen for.
4. Once it has retrieved the next video in queue, it would take the filename and start the GBPVR playing the video.
5. The StoppingVideo event is fired when the playback is complete, and the entry is deleted from the queue.
6. My Videos detects that playback was stopped either by finishing the video or the user has stopped it themselves. If the video has finished, it requests the next video in the queue, and then plays the next video.
The above should work in theory, but I'm not overly familiar with eventing as I typically do most of my programming at the business layer and don't have to deal much with events. Can anybody that is more familiar with this poke holes in this and also provide possible band aids.
CurrentAudioTrack,
CurrentVideoTrack,
CurrentChannelNumber,
CurrentChannelName,
VideoStopping,
MusicStopping,
What would be nice is a helper plugin that all it does is listens and reacts to events. It would even toss it own events that other plugins could listen for and react too. Here is the general idea:
Video Queue helper Events:
Listens for:
AddVideoToQuee
VideoStopping
CurrentVideo
ListVideosInQueue
DeleteFromQueue
ClearQueue
RetrieveNextVideo
Fires off:
NextVideoInQueue
VideosInQueue
DeletedFromQueue
ClearedQueue
Basically this is how it works, and we'll use My Videos just as an example.
1. My Videos has a play list of Videos that it wants to play. Say a Intro, three trailers, and then the main video.
2. It adds these files each to the VideoQueue by executing an AddVideoToQueue event for each of these videos.
3. Once this is complete, it fires an event for RetrieveNextVideo and the VideoQueue plugin excutes a NextVideoInQueue event, which My Videos would listen for.
4. Once it has retrieved the next video in queue, it would take the filename and start the GBPVR playing the video.
5. The StoppingVideo event is fired when the playback is complete, and the entry is deleted from the queue.
6. My Videos detects that playback was stopped either by finishing the video or the user has stopped it themselves. If the video has finished, it requests the next video in the queue, and then plays the next video.
The above should work in theory, but I'm not overly familiar with eventing as I typically do most of my programming at the business layer and don't have to deal much with events. Can anybody that is more familiar with this poke holes in this and also provide possible band aids.