Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

View Poll Results: Can't make a seamless loop with a streaming flv ?
Can't make a seamless loop with a streaming flv ? 0 0%
Can't make a seamless loop with a streaming flv ? 0 0%
Voters: 0. You may not vote on this poll

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-21-2007, 09:02 AM   #1
blitz77
Registered User
 
Join Date: Jun 2007
Posts: 1
Default Can't make a seamless loop with a streaming flv ?

I'm working with flash 8 pro

Can't make a seamless loop with a streaming flv ?

I get a slight hesitation between the end of the playback and the restart to make a seamless loop.

Here is my code :

Code:
  
import mx.video.*;

var listenerObject1:Object = new Object();

listenerObject1.cuePoint = function(eventObject:Object):Void {

var cuePtName = eventObject.info.name;

if (cuePtName == "endLoop") {

my_FLVPlybk.seekToNavCuePoint(0.0);

//below just verifies cuePoints

trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);

trace("Cue point name is: " + eventObject.info.name);

trace("Cue point type is: " + eventObject.info.type);

}

};

my_FLVPlybk.addEventListener("cuePoint", listenerObject1);

//added to trace state changes

var listenerObject2:Object = new Object();

listenerObject2.stateChange = function(eventObject:Object):Void {

trace(my_FLVPlybk.state);

};

my_FLVPlybk.addEventListener("stateChange", listenerObject2);
However, it didn't do what I was hoping, and that is elliminate the slight hesitation between the end of the playback and the restart to make a seamless loop. I figured by using the cuePoint listener I could tell the player exactly when the video is over and where it begins, but the playback seems insistant upon that little hesitation (even with the buffer set to zero). In fact it doesn't seem to matter what I set the buffer at. I'd almost assume this is just something about Flash that I'd have to live with, except I've seen seamless loops with FLVPlayback, but nobody really gives a good explanation of how to do it.

Here's an example of one that is seamless

http://theflashblog.com/?p=86

However, I'm discouraged by this quote in the replies on an another blog:

If you want to get these video clips to loop seamlessly in Flash you need to embed them into your SWF. Keeping them as external FLV files will not allow them to loop correctly.
blitz77 is offline   Reply With Quote
Old 07-19-2007, 02:51 PM   #2
largerabbit
Registered User
 
Join Date: Jul 2007
Posts: 2
Default

Are you streaming as in coming from a flash meda server, or are you streaming via a progressive download? I don't think you will ever get rid of the hesitation with a rmtp stream as nothing is cached locally.
largerabbit is offline   Reply With Quote
Old 10-24-2007, 08:36 PM   #3
ajobe
Senior Member
 
Join Date: Feb 2007
Posts: 123
Send a message via MSN to ajobe
Default

I am having this same problem. I am using progressive download. Can anybody offer up any possible solutions here?

Thanks!!
ajobe is offline   Reply With Quote
Old 10-24-2007, 09:56 PM   #4
creatify
more cowbell
 
creatify's Avatar
 
Join Date: Apr 2007
Location: San Diego
Posts: 176
Default

I don't think its possible using a progressively loading flv - only way I've accomplished this is by embedding the flv into an swf - then loop that swf with a gotoAndPlay(1) or whatever. Then you can use loadMovie (Which I usually never recommend) but in this case I do - the nature of the swf is that it will start to play progressively - much like an flv within the FLVPlayback component. You don't have the event controls of the FLVPlayback component, so your swf may stop while it "buffers" to catch up on slower connections, but once loaded it will loop almost completely seemlessly.
creatify is offline   Reply With Quote
Old 05-18-2009, 11:13 AM   #5
colouredFunk
Registered User
 
Join Date: Jun 2008
Posts: 2
Default

hey guys did you ever manage to sort this out? I'm having the same problem...
colouredFunk is offline   Reply With Quote
Old 05-18-2009, 12:29 PM   #6
ajobe
Senior Member
 
Join Date: Feb 2007
Posts: 123
Send a message via MSN to ajobe
Default

never did get it work work with progressive download....went with embedding the video in the swf. looking into flash media server now for bigger videos.
ajobe is offline   Reply With Quote
Old 05-18-2009, 02:08 PM   #7
colouredFunk
Registered User
 
Join Date: Jun 2008
Posts: 2
Default

hey, I've tried embedding the FLV into the timeline as well, but I get a very slight pause.... was your 100% seamless?
colouredFunk is offline   Reply With Quote
Old 05-18-2009, 02:16 PM   #8
ajobe
Senior Member
 
Join Date: Feb 2007
Posts: 123
Send a message via MSN to ajobe
Default

yeah...looks really good. It is in the main swf....no loadMovie being used.
ajobe is offline   Reply With Quote
Old 03-28-2011, 07:32 PM   #9
daleyjem
Registered User
 
Join Date: Feb 2009
Posts: 1
Default Specify a keyframe interval

If you're getting a delay of any kind... specify a keyframe interval when creating your FLV with Flash Video Encoder. I changed mine to keyframe every 5 frames, instead of keeping it the default "Automatic".

This helps solve issues when looping with actionscript-controlled playback, or on the timeline.
daleyjem is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one template, many looks? subquark ActionScript 1.0 (and below) 1166 10-29-2013 06:18 PM
Make a loop of increasing & decreasing _alpha. HElp please! mx-guest2004 ActionScript 1.0 (and below) 2 04-15-2004 03:50 AM
Sound Loop Player simonboris ActionScript 1.0 (and below) 2 04-23-2003 06:09 AM
How to make it loop? nano ActionScript 1.0 (and below) 4 03-28-2002 12:49 PM
Do i have to make a huge loop script? rabskers ActionScript 1.0 (and below) 8 12-18-2001 01:56 PM


All times are GMT. The time now is 11:59 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.