g_Player.Play bug? (1 Viewer)

fcsobel

Portal Pro
December 4, 2005
127
6
I'm trying to fix the MyPodcasts plugin and I may have run into an MP bug. If I play back a video stream all is well

g_Player.Play(@"http://zdpub.vo.llnwd.net/o2/dltv/episode82/dl.tv.082.wmv");

I can then playback an audio file:

g_Player.Play(@"http://media.scifi.com/battlestar/downloads/podcast/mp3/111/bsg_ep111_FULL.mp3");

But after that video files will not play and the log shows this:

VideoPlayer9:Failed to render file -> vmr9

I looked at the MP code and saw references to Caching the player. Maybe the Audio player gets cached and causes video to fail? Or maybe I need to do something to reset the player before I try to play a video file?

Would love to know if this is a bug or if I can do something different to make this work.

Thanks,
Fred
 

scoop

Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,

    What MP version are you compiling / running against? Because not too long ago I fixed the PlayerFactory to not hand out the VMR9 video player for streams which end in ".wmv" (or any configured movie extension).

    Kind regards,
    Michel
     

    fcsobel

    Portal Pro
    December 4, 2005
    127
    6
    I'm running Application Version: 0.2.0.3

    The log entry for a video file that does play looks like this for me:

    Code:
    g_Player.Play(http://zdpub.vo.llnwd.net/o2/dltv/episode82/dl.tv.082.wmv)
    VideoPlayer:play http://zdpub.vo.llnwd.net/o2/dltv/episode82/dl.tv.082.wmv
    Command:Stop radio
    Command:MediaPortal.TV.Recording.StopRadioCommand failed reason:No tuner cards installed time:0 msec
    1 vmr9:ctor()
    1 vmr9:ctor() done:True
    VideoPlayerVMR9: Enabling DX9 exclusive mode
    Main: DX exclusive mode: False
    1 vmr9:addvmr9
    VMR9: enable YUV mixing
    VMR9: now active
    1 VMR9Helper:Vmr9 Added
    planescene: PresentImage() 
    PlaneScene: PresentImage() dispose surfaces
    planescene: PresentImage() 
    PlaneScene: PresentImage() dispose surfaces
    planescene: PresentImage()
    ...

    Then one that fails looks like this:
    Code:
    g_Player.Play(http://zdpub.vo.llnwd.net/o2/dltv/episode82/dl.tv.082.wmv)
    VideoPlayer:play http://zdpub.vo.llnwd.net/o2/dltv/episode82/dl.tv.082.wmv
    Command:Stop radio
    Command:MediaPortal.TV.Recording.StopRadioCommand failed reason:No tuner cards installed time:15.625 msec
    1 vmr9:ctor()
    1 vmr9:ctor() done:True
    VideoPlayerVMR9: Enabling DX9 exclusive mode
    Main: DX exclusive mode: False
    1 vmr9:addvmr9
    VMR9: enable YUV mixing
    VMR9: now active
    1 VMR9Helper:Vmr9 Added
    VideoPlayer9:Failed to render file -> vmr9
     

    fcsobel

    Portal Pro
    December 4, 2005
    127
    6
    I noticed more info in the log the first time it plays a video stream:

    Code:
    g_Player.Play(http://zdpub.vo.llnwd.net/o2/dltv/episode82/dl.tv.082.wmv)
    Loading external players plugins
      found plugin:MediaPortal.FoobarPlugin.FoobarPlugin in plugins\ExternalPlayers\ExternalPlayers.dll
      player:Foobar2000.  author: int_20h/rtv
      found plugin:MediaPortal.ITunesPlayer.ITunesPlugin in plugins\ExternalPlayers\ExternalPlayers.dll
      player:iTunes.  author: Frodo
      found plugin:MediaPortal.WinampPlayer.WinampPlugin in plugins\ExternalPlayers\ExternalPlayers.dll
      player:Winamp.  author: int_20h
    VideoPlayer:play http://zdpub.vo.llnwd.net/o2/dltv/episode82/dl.tv.082.wmv
    Command:Stop radio
    Command:MediaPortal.TV.Recording.StopRadioCommand failed reason:No tuner cards installed time:15.625 msec
    1 vmr9:ctor()
    1 vmr9:ctor() done:True
    VideoPlayerVMR9: Enabling DX9 exclusive mode
    Main: DX exclusive mode: False
    1 vmr9:addvmr9
    VMR9: enable YUV mixing
    VMR9: now active
    1 VMR9Helper:Vmr9 Added
    Main: WM_POWERBROADCAST: 10
    planescene: PresentImage()
     

    scoop

    Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,

    The fix I'm talking about wasn't incorporated into 0.2.0.3, so trying SVN is worth a try.

    Kind regards,
    Michel
     

    fcsobel

    Portal Pro
    December 4, 2005
    127
    6
    Thanks scoop. Any help is appreciated. I will try the latest SVN. Sorry to show my ignorance but the log appears to show it using VMR9 when it works and later whan it does not. Is VMR9 just bad to use?
     

    scoop

    Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,

    The VMR9 player not playing back streams anymore after the AudioPlayerWMP9 has been used is a known issue, yes. And indeed, the VMR9 player doesn't seem to be reliable enough for playing back streams. That's why most A/V streaming plugins use the AudioPlayerWMP9 for playback - despite the drawbacks of this player. Hence my fix to avoid the usage of the VMR9 player for internet streams.

    Kind regards,
    Michel
     

    fcsobel

    Portal Pro
    December 4, 2005
    127
    6
    Thanks Michel! The latest svn seems to fix the problem as long as I use g_Player.Play(). If I use the PlayVideoStream() method it seems to still behave the old way.

    I thought using PlayVidedoStream made sense when playing a stream but I think not. Do you have any idea what that method is for?
     

    scoop

    Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,

    It's been added a long while back to support video streams with the VMR9 video player. With this player one can use things like OSD, context menu and different zoom modes with fullscreen video, but as you found out yourself there are quite some issues with it. Unfortunately these issues are not easily fixed, so just using g_Player.Play() is the way to go currently.

    Hopefully the global player will have better support for audio/video streams in the future.

    Kind regards,
    Michel
     

    fcsobel

    Portal Pro
    December 4, 2005
    127
    6
    Michel, I could use your help again. It seems that My Podcasts is not working very well with the 0.2.2.0 release. Both audio and video streams were not working at first but I changed the code from g_player.Play() to g_player.PlayAudioStream() and now the audio files are at least working again.

    I cannot seem to get any video streams to work. Is there something wrong with my code below?:


    g_Player.FullScreen = true;
    if (g_Player.Play(url))
    {
    GUIGraphicsContext.IsFullScreenVideo = true;
    GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO);
    }

    Thanks,
    Fred
     

    Users who are viewing this thread

    Top Bottom