Play Trailer when Movie details are shown (1 Viewer)

Reinhard Achleitner

New Member
August 29, 2014
2
0
47
Home Country
Austria Austria
Hi!

I want to play a found trailer in the small preview control in top of the screen when a movie is selected.
I changed the code to do this and it works as expected. But when the trailer is playing and i want to start the movie, MP is freezing. When the trailer isn't playing, the movie starts as expected.

MovingPicturesGUI: PublishMovieDetails.cs i play the trailer with the PlayFile method of MoviePlayer.cs

Here is the log of mediaportal. Can someone of the developers give me a hint?

[2014-08-29 21:06:53,769] [Log ] [22 ] [INFO ] - g_Player.OnStarted() \\Ally-pc\o\Filme\Comics\The Amazing Spider Man 2\Trailer.mov media:Video
[2014-08-29 21:06:53,884] [Log ] [ViewModeSwitcher] [INFO ] - ViewModeSwitcher: Rule "16:9 SD" fits conditions.
[2014-08-29 21:06:53,885] [Log ] [41 ] [INFO ] - PlaneScene: video WxH : 640x360
[2014-08-29 21:06:53,885] [Log ] [41 ] [INFO ] - PlaneScene: screen WxH : 513x321
[2014-08-29 21:06:53,915] [Log ] [41 ] [INFO ] - PlaneScene: Crop: top:4, bottom:4, left:8, right:8
[2014-08-29 21:06:53,916] [Log ] [41 ] [INFO ] - PlaneScene: video WxH : 640x360
[2014-08-29 21:06:53,916] [Log ] [41 ] [INFO ] - PlaneScene: screen WxH : 513x321
[2014-08-29 21:06:56,423] [Log ] [41 ] [INFO ] - ViewModeSwitcher: Switching to viewmode: Zoom14to9
[2014-08-29 21:06:56,424] [Log ] [41 ] [INFO ] - PlaneScene: Crop: top:4, bottom:4, left:8, right:8
[2014-08-29 21:06:56,424] [Log ] [41 ] [INFO ] - PlaneScene: video WxH : 640x360
[2014-08-29 21:06:56,424] [Log ] [41 ] [INFO ] - PlaneScene: screen WxH : 513x321
[2014-08-29 21:06:56,503] [Log ] [MPMain ] [INFO ] - TvNotify:LoadNotifies
[2014-08-29 21:06:56,754] [Log ] [MPMain ] [INFO ] - TvNotify: 0 notifies
[2014-08-29 21:06:56,801] [Log ] [MPMain ] [INFO ] - g_Player.OnStopped()
[2014-08-29 21:06:56,812] [Log ] [MPMain ] [INFO ] - GUIVideoFiles: OnPlayBackStopped idFile=911 timeMovieStopped=2 resumeData= bdtitle=0
[2014-08-29 21:06:56,818] [Log ] [MPMain ] [INFO ] - RadioRecorded:OnPlayRecordingBackStopped Video \\Ally-pc\o\Filme\Comics\The Amazing Spider Man 2\Trailer.mov
[2014-08-29 21:06:56,819] [Log ] [MPMain ] [INFO ] - TvRecorded:OnPlayRecordingBackStopped Video \\Ally-pc\o\Filme\Comics\The Amazing Spider Man 2\Trailer.mov
[2014-08-29 21:06:56,820] [Log ] [MPMain ] [INFO ] - VideoPlayer:ended \\Ally-pc\o\Filme\Comics\The Amazing Spider Man 2\Trailer.mov
[2014-08-29 21:06:56,820] [Log ] [MPMain ] [INFO ] - VideoPlayer9: Cleanup DShow graph
[2014-08-29 21:06:56,831] [Log ] [MPMain ] [INFO ] - VideoPlayer9: Cleanup Sub/PostProcess
[2014-08-29 21:06:56,831] [Log ] [MPMain ] [INFO ] - VideoPlayer9: Cleanup VideoCodec
[2014-08-29 21:06:56,832] [Log ] [MPMain ] [INFO ] - VideoPlayer9: Cleanup AudioCodec
[2014-08-29 21:06:56,835] [Error ] [MPMain ] [ERROR] - VideoPlayer9: Exception while cleanuping DShow graph - Das COM-Objekt des Typs "System.__ComObject" kann nicht in den Schnittstellentyp "DirectShowLib.IBaseFilter" umgewandelt werden. Dieser Vorgang konnte nicht durchgeführt werden, da der QueryInterface-Aufruf an die COM-Komponente für die Schnittstelle mit der IID "{56A86895-0AD4-11CE-B03A-0020AF0BA770}" aufgrund des folgenden Fehlers nicht durchgeführt werden konnte: Schnittstelle nicht unterstützt (Ausnahme von HRESULT: 0x80004002 (E_NOINTERFACE)). bei System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
bei DirectShowLib.IBaseFilter.EnumPins(IEnumPins& ppEnum)
bei DShowNET.Helper.DirectShowUtil.DisconnectAllPins(IGraphBuilder graphBuilder, IBaseFilter filter)
bei MediaPortal.Player.VideoPlayerVMR9.Cleanup()
[2014-08-29 21:06:56,846] [Log ] [MPMain ] [INFO ] - VideoPlayer9: Disabling DX9 exclusive mode
[2014-08-29 21:06:56,846] [Log ] [MPMain ] [INFO ] - Main: GUI_MSG_SWITCH_FULL_WINDOWED message is obsolete.
[2014-08-29 21:06:56,846] [Log ] [MPMain ] [INFO ] - VideoPlayer9: Cleanup DShow graph
[2014-08-29 21:06:56,847] [Log ] [MPMain ] [INFO ] - VideoPlayer9: Cleanup Sub/PostProcess
[2014-08-29 21:06:56,848] [Error ] [MPMain ] [ERROR] - VideoPlayer9: Exception while cleanuping DShow graph - Das COM-Objekt des Typs "System.__ComObject" kann nicht in den Schnittstellentyp "DirectShowLib.IBaseFilter" umgewandelt werden. Dieser Vorgang konnte nicht durchgeführt werden, da der QueryInterface-Aufruf an die COM-Komponente für die Schnittstelle mit der IID "{56A86895-0AD4-11CE-B03A-0020AF0BA770}" aufgrund des folgenden Fehlers nicht durchgeführt werden konnte: Schnittstelle nicht unterstützt (Ausnahme von HRESULT: 0x80004002 (E_NOINTERFACE)). bei System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
bei DirectShowLib.IBaseFilter.EnumPins(IEnumPins& ppEnum)
bei DShowNET.Helper.DirectShowUtil.DisconnectAllPins(IGraphBuilder graphBuilder, IBaseFilter filter)
bei MediaPortal.Player.VideoPlayerVMR9.Cleanup()
[2014-08-29 21:06:56,849] [Log ] [MPMain ] [INFO ] - VideoPlayer9: Disabling DX9 exclusive mode

kind regards

Reinhard
 

Users who are viewing this thread

Top Bottom