XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

XNA 3.1 Video Playback issue

Last post 14/10/2009 20:00 by Qudeid. 0 replies.
  • 14/10/2009 20:00

    XNA 3.1 Video Playback issue

    Hi there,

    I'm currently trying to playback a video, yet it doesn't as it should.

    The only thing I get is a black rectangle in my window.

    I load the video in a new project with Content.Load<Video>(@"MyVideo"); in "LoadContent" and immediately set the initialized VideoPlayer to play the video.

    In the Draw method I, then, draw it with (videoPlayer.GetTexture(), Vector.Zero, Color.White).
    If I make an if clause, that it should only draw if the video is playing, it "always" skips the drawing, even though the video should be playing.

    By the way, the video does compile without complaints and the black rectangle in my window is about the size of the video resolution.

    Debugging it, I get only "CrossThreadMessagingException" on "GetTexture" and also the state of the player. Obviously I'm doing something wrong here...?

    greetings

    Qudeid
Page 1 of 1 (1 items) Previous Next