none
HELP! RRS feed

  • Question

  • Hi im creating a program which will play a video that i insert into the program but it will play the soundtrack but not the video

    can anyone help my code is:

    GameWindow.Show()
    GameWindow.Width = 1024
    GameWindow.Height = 675
    GameWindow.BackgroundColor = "#000000"


    VideoFile ="Program.Directory + "\WAR_OF_THE_WORLDS (2).mp4"
    Player = Media.CreateMediaPlayer(VideoFile, 0, 0, GameWindow.Width,GameWindow.Height)
    Media.Play(Player)

    Please Help

    Thanks

    • Edited by Clock4700 Sunday, February 19, 2012 2:48 PM
    Saturday, February 18, 2012 6:05 PM

Answers

  • Just looking at that, I wouldn't have the double set of quotes before the slash.

    VideoFile = Program.Directory + ""\WAR_OF_THE_WORLDS (2).mp4"

    Just

    VideoFile = Program.Directory + "\WAR_OF_THE_WORLDS (2).mp4"

    Tuesday, April 24, 2012 6:34 PM
    Moderator

All replies

  • try altering this line:

    VideoFile ="Program.Directory + "\WAR_OF_THE_WORLDS (2).mp4"

    to

    VideoFile = Program.Directory + ""\WAR_OF_THE_WORLDS (2).mp4"

    Wednesday, April 18, 2012 2:02 PM
  •  I was wondering the same thing.
    Tuesday, April 24, 2012 6:27 PM
    Answerer
  • Just looking at that, I wouldn't have the double set of quotes before the slash.

    VideoFile = Program.Directory + ""\WAR_OF_THE_WORLDS (2).mp4"

    Just

    VideoFile = Program.Directory + "\WAR_OF_THE_WORLDS (2).mp4"

    Tuesday, April 24, 2012 6:34 PM
    Moderator