- May 14, 2008
- 3,558
- 434
- Home Country
-
Germany
Hi!
Has anybody an idea on how to implement to show the timeline when jumping to the next / previous chapter / comskip mark?
Stefan
I've tried the following which isn't working - any idea?
Has anybody an idea on how to implement to show the timeline when jumping to the next / previous chapter / comskip mark?
Stefan
I've tried the following which isn't working - any idea?
Code:
Index: Core/Player/g_player.cs
===================================================================
--- Core/Player/g_player.cs (revision 25694)
+++ Core/Player/g_player.cs (working copy)
@@ -2605,6 +2605,9 @@
if (nextChapter > 0 && nextChapter < _player.Duration)
{
+ GUIMessage msgUpdate = new GUIMessage(GUIMessage.MessageType.GUI_MSG_PLAYER_POSITION_CHANGED, 0, 0, 0, 0, 0,
+ null);
+ GUIGraphicsContext.SendMessage(msgUpdate);
SeekAbsolute(nextChapter);
return true;
}
@@ -2625,6 +2628,9 @@
if (prevChapter >= 0 && prevChapter < _player.Duration)
{
+ GUIMessage msgUpdate = new GUIMessage(GUIMessage.MessageType.GUI_MSG_PLAYER_POSITION_CHANGED, 0, 0, 0, 0, 0,
+ null);
+ GUIGraphicsContext.SendMessage(msgUpdate);
SeekAbsolute(prevChapter);
return true;
}