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 "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 "MenuStart"
end if
end
Does anyone know any reason why this doesn't work in a Projector?
Thanks!
Suzy
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 "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 "MenuStart"
end if
end
Does anyone know any reason why this doesn't work in a Projector?
Thanks!
Suzy