I'm playing a video on android and want that it automatically stops after 10 seconds. I do the same with images and browser objects which works. However with the "play video" command it doesn't work.
Code: Select all
play video "/path/to/video/video.mp4"
send "stopPlaying" to me in 10 seconds
on stopPlaying
play stop
end stopPlaying
After that I've tried with following commands:
Code: Select all
set the playSelection of the templatePlayer to true
set the startTime of the templatePlayer to 1000
set the endTime of the templatePlayer to 2000
play video "/path/to/video/video.mp4"
Using the mobileControlCreate commands is working but this is not an option as the movieTouched event does not fire when using those. Bug report is open for that but I don't know when they'll fix it.
Is there any other way to get around this?
Kind regards,
Chris