Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / PlayVideo() - Looping?

Author
Message
Nieb
8
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 20th Jan 2018 06:36 Edited at: 7th Feb 2022 21:37
Can we add seamless looping to the PlayVideo() stuff?

Here is a loop-able video for testing:
https://www.videezy.com/backgrounds/5046-bright-glass-4k-motion-background-loop
Nieb
8
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 7th Feb 2022 21:37
Just wanted to bump this request. Can we get seamless video looping?

I've tried doing it manually, but was unable to do so without the playback stuttering.
jd_zoo
4
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 9th Feb 2022 02:48
Sorry not aware of any commands that can help, have you tried a different format for the video? I myself am right now using WMV for windows but that may not be best...
Wizard Ranch
User Offline
Joined: 24th Dec 2021
Location:
Posted: 9th Feb 2022 22:17
This actually works for me, I get a completely seemless loop:



You could add controls like this:

smerf
17
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 14th Feb 2022 01:19 Edited at: 14th Feb 2022 01:20
can play outside the main loop and sleep gives it time to acess and play the file or it can exit before it sarts if it takes a second to play

Nieb
8
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 19th May 2022 05:25 Edited at: 21st May 2022 00:25
Interesting, just putting PlayVideo() or PlayVideoToImage() in the loop does appear to make it loop seamlessly. And here I was trying to detect when the video had ended and playing again.

EDIT: Upon further testing, there is still a bit of a stutter.

However, is spamming PlayVideo() every frame really ideal? Will this not cause any issues?

Login to post a reply

Server time is: 2022-08-18 11:52:45
Your offset time is: 2022-08-18 11:52:45