Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with xMedia2 Xtra

Status
Not open for further replies.

Uzibat

Programmer
Dec 13, 2002
10
GB
The problems never end! Have got a copy of the xMedia2 Xtra from and am using this to play wmv video.

I have the video playing by looping in a frame and then progressing to a menu when it has finished. My frame script is looking at both the moviePos (current time in the movie) compared to the duration, and the movieState (to see if it is playing or not), as indications of whether the movie has finished or not.

Here comes the problem - in Director, this works fine but as soon as I produce a Projector file, nothing happens. The movie just sits on its last frame and the Lingo doesn't seem to control it at all.

My code is as follows (I have tried both methods but no luck)...

on exitFrame me
if myWmvFile.GetState() <> 2 then --2 being playing
myWmvFile.SetVisibleVideo(false)
myWmvFile.Stop()
myWmvFile.Close()
go to frame &quot;MenuStart
else
go to the frame
end if
end

on exitFrame me
if myWmvFile.GetTimePos() >= myWmvFile.GetDuration() then
myWmvFile.SetVisibleVideo(false)
myWmvFile.Stop()
myWmvFile.Close()
go to frame &quot;MenuStart&quot;
end if
end

Does anyone know any reason why this doesn't work in a Projector?

Thanks!

Suzy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top