- January 11, 2007
- 35
- 1
- 45
- Home Country
- Denmark
Hi.
I have a strange scenario with g_Player. My code is:
On most of my mms-streams this works perfectly as expected, however on some very few it doesn't. In these cases the audio starts playing, but no video is seen and the green circle keeps rotating (wait symbol). When I look in the log-files, I can see that g_Player is never returned with a "player started" and thus the code never continues to the GUIGraphicsContext.... etc.
The _very_ strange thing is that it's always the same streams that give me this problem, but when I compare non-working mms-streams with working mms-streams in my normal Windows Media Player, it seems that they are excactly alike with respect to codec used, filetype, aspect ratio, bitrate etc.
Can anybody help me how to solve this? Or is there a workaround it - or maybe another function rather than Play() ?
I'm using 0.2.2 with latest SVN.
Thank you in advance.
EDIT: Just realised something: Could this have anything to do with the mms-stream is cached on the computer? I noticed that the stream I know there is a problem playing is "cached" when I play it with WMP, but the ones that I don't have a problem playing is streamed live in WMP. Any relevance???
I have a strange scenario with g_Player. My code is:
Code:
MyMMSURL = GetMMSURL(MyURL);
if (g_Player.Play(MyMMSURL))
{
GUIGraphicsContext.IsFullScreenVideo = true;
GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO);
g_Player.FullScreen = true;
}
On most of my mms-streams this works perfectly as expected, however on some very few it doesn't. In these cases the audio starts playing, but no video is seen and the green circle keeps rotating (wait symbol). When I look in the log-files, I can see that g_Player is never returned with a "player started" and thus the code never continues to the GUIGraphicsContext.... etc.
The _very_ strange thing is that it's always the same streams that give me this problem, but when I compare non-working mms-streams with working mms-streams in my normal Windows Media Player, it seems that they are excactly alike with respect to codec used, filetype, aspect ratio, bitrate etc.
Can anybody help me how to solve this? Or is there a workaround it - or maybe another function rather than Play() ?
I'm using 0.2.2 with latest SVN.
Thank you in advance.
EDIT: Just realised something: Could this have anything to do with the mms-stream is cached on the computer? I noticed that the stream I know there is a problem playing is "cached" when I play it with WMP, but the ones that I don't have a problem playing is streamed live in WMP. Any relevance???