Hi, thanks for the answer!
I’m using a .wmv video as the source. Everything works fine as a Windows Desktop app.
- SpriteBatchHelper is a custom helper class
- videoPlayer is declared as a class private field
Here is the code
protected override void OnDraw(GameTime gameTime)
if (videoPlayer.State == MediaState.Playing)
texture = videoPlayer.GetTexture();
if (texture != null)
TinyGame.Instance.SpriteBatch.Draw(texture, new Rectangle(0, 0, 320, 180), Color.White);