Closed GoogleCodeExporter closed 9 years ago
I attached a patch for current SVN, which adds a new function that can be
overriden in the siteutil -> "getPlaylistItemUrl". It will be called before
playback of an item in a playlist starts, so the util can fill playbackoptions
(or return single url) for that new video just in time.
The reason as discussed in IRC is: links to videos often have timeouts so
retrieving all playback urls at the start of playing a list is not going to
work.
Let me know if this works kind of in the way you need.
Original comment by bborgsd...@gmail.com
on 24 Jan 2011 at 9:02
Attachments:
I think it might be a step in the right direction, however when i get in
"getPlaylistItemUrl", cloned VideoInfo object contains already resolved link.
I could add first link resolved and others unresolved links in
"getMultipleVideoUrls" and resolve them in new overridden method but that's
"one way street". If moving back in playlist (from part 3 to 2 for example),
URLs are already resolved.
Original comment by mitja.skuver
on 25 Jan 2011 at 7:52
Actually it's the right way to go:
On first call, return the list with unresolved urls. They will be put into
their own VideoInfo objects, which are passed on the following calls. If you
don't overwrite the VideoUrl property, but instead only return the resolved url
(as single entry in the list) and set the playbackoptions, you can do that on
every call again.
I hope I got that explained somehow understandable ;)
Original comment by bborgsd...@gmail.com
on 25 Jan 2011 at 8:49
First call of which method? If return unresolved list in
"getMultipleVideoUrls", first video is unresolved and cannot be played.
Perhaps the error is that "getPlaylistItemUrl" is not called for first vid?
Original comment by mitja.skuver
on 25 Jan 2011 at 8:59
Thanks for the help on IRC! I think, with the small fix we did with first
cloned VideoInfo, this is working quite nicely :) Good night!
Original comment by mitja.skuver
on 25 Jan 2011 at 11:27
Thanks! Here is a new patch (for trunk) that also includes the info about what
playbackoption was chosen by the user on the first video.
Original comment by bborgsd...@gmail.com
on 26 Jan 2011 at 1:10
Attachments:
Thanks! Can confirm this is working as expected :) Great job!
Is there a reason for baseVideoInfo argument in getPlaylistItemUrl? Cannot
think of a use-case for it :)
Original comment by mitja.skuver
on 26 Jan 2011 at 9:44
Found a minor glitch. If i cancel playback options dialog when skipping from
one video to next, playlist player seems to get confused about which file is
playing. Debugging.
Original comment by mitja.skuver
on 26 Jan 2011 at 9:49
Playlist index is increase when OV GUI receive the message to skip track.
GUIOnlineVideos.cs: OnMessage(GUIMessage message)
The index is not reset if we cancel the playback options (or anything other
than that) happens afterwards.
I guess similar thing can happen after
GUIOnlineVideos.cs: g_Player_PlayBackEnded
Maybe not because if we cancel the dialog after playback, it will stop :)
Original comment by mitja.skuver
on 27 Jan 2011 at 11:56
Found one more issue. It has to do with added "(url == loUrlList[0]) ? check
and might be more complicated.. Would be best if you would ping me on IRC :)
Original comment by mitja.skuver
on 27 Jan 2011 at 2:26
This issue was closed by revision r1135.
Original comment by bborgsd...@gmail.com
on 27 Jan 2011 at 6:24
Small additional fix to test for cancelling Playbackoptions dialog while
skipping in Playlist.
Original comment by bborgsd...@gmail.com
on 27 Jan 2011 at 7:48
Attachments:
As said, this works great and it's a proper thing to handle playlist like that
anyhow :)
Now I see you added it to trunk :) Thanks and great job on this one!
Original comment by mitja.skuver
on 28 Jan 2011 at 8:01
Original comment by bborgsd...@gmail.com
on 5 Apr 2011 at 3:42
Original issue reported on code.google.com by
mitja.skuver
on 23 Jan 2011 at 7:04