mindstitchdr
04-24-2007, 12:23 PM
I'm at a loss here and could use some help. I decided to switch the Media.Player object with a Video object so I could customize my slider to match my app a little better, and for some reason this code works on all videos except .mpg. I'm not really sure what is going on here (Maybe a bug) but if someone could point me in the right direction I would be greatfull.
I'm using a WinButton to play and pause the video.
mpstate = Video.GetState("Video1");
if (mpstate == VIDEO_PAUSED) then
Video.Play("Video1");
WinButton.SetText("Plugin8", "Pause");
else
Video.Pause("Video1");
WinButton.SetText("Plugin8", "Resume");
end
I'm using a WinButton to play and pause the video.
mpstate = Video.GetState("Video1");
if (mpstate == VIDEO_PAUSED) then
Video.Play("Video1");
WinButton.SetText("Plugin8", "Pause");
else
Video.Pause("Video1");
WinButton.SetText("Plugin8", "Resume");
end