player - strange Video behaviour before stop
Posted: Sun Oct 28, 2012 12:38 pm
Hi everyone!,
I encountered a problem with the player object. When I try to play a Video, it plays fine till it is almost finished. Then the Video freezes like half a second before it is supposed to end and then skips right to the end. I tried to mask the player with a graphic "rectangle" (in the "on playstopped" function) already, but this didn't work either. I think it has something to do with the "On playstopped" function. Can anybody help me with this problem? I`m using Livecode Version 4.6.1, thank you for your help in advance! I attached the code I'm using.
best regards,
James Webster
I encountered a problem with the player object. When I try to play a Video, it plays fine till it is almost finished. Then the Video freezes like half a second before it is supposed to end and then skips right to the end. I tried to mask the player with a graphic "rectangle" (in the "on playstopped" function) already, but this didn't work either. I think it has something to do with the "On playstopped" function. Can anybody help me with this problem? I`m using Livecode Version 4.6.1, thank you for your help in advance! I attached the code I'm using.
best regards,
James Webster
Code: Select all
On opencard
local filepath
put specialFolderPath("desktop") & "/Urteil/Video_1.mp4" into filepath
set the filename of player "Videos" to (filepath)
start player "Videos"
end opencard
On Playstopped
lock screen
set the filename of player "Videos" to empty
unlock screen
end playstopped