Skip to main content
Participant
October 25, 2016
Question

Looping an externally loaded video - H.264

  • October 25, 2016
  • 2 replies
  • 10567 views

I would like to know if it is possible using AS3 to loop [ seamlessly or even slightly un-seamlessly! ] an externally loaded video - encoded as h.264

I have searched many leads trying to find out if this is currently viable. It doesn't seem as easy as I imagined it would be.

I have member of my team that knows some AS2 - and has very little knowledge of AS3. He wrote scripts for looping functionality in AS2 - however as we need to upgrade to Adobe Animate CC to use 4k video for a large touchscreen application - so we are trying to find out if looping video, loaded externally, can be scripted for in AS3.

It actually seems pretty crazy to me that such a feature is so hard to achieve. I would have thought that in today's media saturated world, this would be a basic and simple requirement.

If anyone can point me in the right direction I would be grateful. I need to determine whether to upgrade to Animate or to stay with CS5.5, and HD 1080p video.

This topic has been closed for replies.

2 replies

twistedmedia
Known Participant
May 14, 2018

The only way you can get a truly seamless video loop is to encode the video as FLV and play it from the timeline.

kglad
Community Expert
Community Expert
October 25, 2016

yes, you can loop (but not seamlessly).

how are you playing your video?  ie, are you using a flvplayback component, video component, as3 netstream?

GrayhemAuthor
Participant
October 25, 2016

we will do it any way that you suggest is best. In other words we are not doing it yet....
If you mean in AS2 however, we were doing it by a flvplayback component.

thanks for the reply BTW

Known Participant
March 10, 2017

adobe must have changed something for the first snippet to fail.  but the seek/play works for me with cc 2017.


Hey guys... thanks for confirming that I am not completely insane. So I have learned one thing. The file cannot be an H264 ".mov" to loop. I re-saved it as an h262 .mp4 file and it now at least loops. I thought Animator CC supported Quicktime. I guess not.

Now the problem is that when the file loops back, it actually disappears for a full second, leaving a black frame. I've looked at various methods of trying to get a near-seamless loop in  Animator CC and the closest I have seen is the idea of using two instances of the video and switching between them. I assume that is what Colin's script aimed to do, however it doesn't work for me (with mov OR MP4).

I can start a new thread for this issue if you think it is appropriate.

SIDEBAR:

It's unfortunate that Adobe is discontinuing Adobe Director. Looping a video was super-easy, you click a radio button. It was the program we used for decades to produce mini-apps for on-set playback in TV and film. I have been tasked with trying to find a replacement, and although Animate CC seemed to be the most likely candidate, I don't think it is going to work.