Dual video player
Posted: Wed Aug 25, 2021 3:24 pm
I'm working on a dual video player so video and a screen recording can be played at the same time, picture in picture or side by side. I've hidden the player controls and have a controller that controls both players simultaneously. My problem is finding a way to update the scrubber (slider) as the videos progress. No matter how I do it, it interrupts the playback of the videos briefly when it updates the scrubber position.
Currently the code looks like this:
on checkTime
Set the thumbposition of scrollbar "Scrubber" to the currentTime of player "Player1"
send "checkTime" to me in 2 seconds
end checkTime
I only update every 2 seconds to minimize the interruptions but it still causes a slight pause in the playback. I tried using currenttimechanged but that updates every frame so the videos were unintelligible.
I would appreciate any help I can get on this. Thanks.
Darren
Currently the code looks like this:
on checkTime
Set the thumbposition of scrollbar "Scrubber" to the currentTime of player "Player1"
send "checkTime" to me in 2 seconds
end checkTime
I only update every 2 seconds to minimize the interruptions but it still causes a slight pause in the playback. I tried using currenttimechanged but that updates every frame so the videos were unintelligible.
I would appreciate any help I can get on this. Thanks.
Darren