Problem with g_Player (1 Viewer)

Lars Vinter

Portal Member
January 11, 2007
35
1
45
Home Country
Denmark Denmark
Hi.

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???
 

Lars Vinter

Portal Member
January 11, 2007
35
1
45
Home Country
Denmark Denmark
Just found out that it actually WAS that.

I went into Windows Media Player and deleted cache and went into Internet Explorer and deleted temporary internet files. And now the very MMS-link that wouldn't work before, now works!

Obviously, this is not a real solution, but rather a workaround. So now my question is: Is this a problem of the g_Player-routine, that it can't play a stream that has been cached by WMP - or is a problem that lies with Microsoft?

Lars
 

Users who are viewing this thread

Top Bottom