ActionScript 3.0 :: Play 2 FLVPlayback In Sync?
Sep 15, 2010
I didn't find any solution in the past discussions, I want to sync two FLVPlayback in the stage.Now I quickly solved with a Countdown of about 10sec;one can choose a project from a ComboBox and the two FLV play when the countdown reaches 1. That's not the right way as they never play in sync the first time..
I think a BufferingBar can do the job, detecting the end of the buffer. but I don't know the code to add...
This is the code I use with the Countdown:
cb.addEventListener(Event.CHANGE, changeHandler);function changeHandler(event:Event):void { if(ComboBox(event.target).selectedItem.data != "")
[Code]...
View 15 Replies
Similar Posts:
Jun 7, 2011
i have 4 flvplayback components on stage loading 4 different videos. How do i sync them?
I have ensured they are all fully buffered i.e fully loaded and then play them all at once. But they keep getting out of sync. I.e i am checking the sync with the playheadtime. I had written an timer/enterframe event to check for out of sync at and pause and seek times to the fastest playing player . But this happens for every second. i keep gettting a very jittery video with breaking sounds due to the constant pause /seek / play cycle.
How can we sync multiple flvplayback videos properly.
View 1 Replies
May 26, 2011
I have two different .wav loops. One is just the tune, and one is the beat. And when they play together right on each other in sync, it sounds great.I have a button on the stage. I want it so that the tune is playing by itself at first, but when hovering over the button, the beat comes in. And when hovering off the button, the beat disappears. The problem is, I don't know how to keep them in sync. The beat and tune get all off when I make it so that on hover it plays the beat.
View 1 Replies
Jul 20, 2011
I need to build a website which shows multiple instruments in a band, being played in sync. Each camera/video block is a different instrument, and played together, they constitute an entire band. I have been searching high and low for ways to do this, and it definitely appears that HTML5 is out. It looks like standard FLV progressive download is out, too, because it's impossible to get 4-8 videos to sync perfectly.
I see on the FMS page that it has some abilities in synching. How would one (conceptually) go about making a webpage where say 4-8 videos begin to buffer, then when ready, play in sync? And they would also need to, when the location is changed, all sync to that location and rebuffer.
The objective is so that the user can mute/solo each video's audio, to remove an instrument(s) from the "mix" at any time.An alternative way of doing this, I think, would be to just put the 4-8 videos together in video editing, and encode this into one video, but have each video's audio track be a separate audio channel. If FMS can do multichannel audio on one video, this might work, if it could mix them in/out individually, as the user requires.
View 13 Replies
Feb 10, 2009
I have two swfs on a web page but need them to start playing at the same time. Problem is that one file size is bigger than the other, so one loads before the other and starts playing earlier.
Is there any code that can make a movie wait until the other one has loaded, then start playing in sync?
View 1 Replies
Jun 16, 2004
Is there a way to synchronize 2 sound events to play simultaneously? It's vital that they begin at the exact same time (aren't started asyncronously).
View 2 Replies
Aug 6, 2011
I'm about to create some art installation using augmented reality and music. I'd like to implement some kind of sampler in it, but I can't find any way to do it.
It's gonna be a looper, I've got 12 files (each 8 seconds) and I want to play them synchronized - so they must start at the same time. this is example of something similiar to my project[url]... They must be controlled by changing volume (0 means off).
View 1 Replies
Nov 15, 2010
I have two identical-length videos that I need to stream and play back concurrently while staying in sync. The best I can do so far is keep them about a second apart, but I'm wondering if there's a way to force them to actually stay in perfect sync? Oh yeah: I'm using AS3. (Ideally, I'd just have a series of JPGs instead of the second video and load the relevant image via cuePoint, but that aspect is out of my control.)
Second, what's the best/ideal method of knowing what I can only think of as "percent buffered"? These videos I'm loading are hosted on a Flash Media Server (which I don't have control over or access to, short of loading files from it), and while bytesLoaded/Total works for progressive stuff, I know it doesn't work for streamed stuff. Full disclosure: I know very little about working with serving video in Flash (obvious, I'm sure)(I'm not using the FLVPlayback component.)
View 3 Replies
Jul 9, 2009
I'm using the FLVPlayback component to play 4 FLVs.
There are 4 buttons in the swf that can call up each video to start playing. Here's what's on the button 1:
-----
function vid1(e:Event){
vidPlayer.source = "mymoviename.flv"
}
vid1_btn.addEventListener(MouseEvent.CLICK, vid1);
-----
All the controls in the skin (play, stop, pause, etc) are great, except I need to also have a "play next" control.
What type of script to do I need to attach to the "play next" control?
View 1 Replies
Jul 14, 2009
I have a strange problem that I was hoping someone might resolve. I'm a new visitor to the Flash world from other development platforms, so the language seems pretty straightforward, but I have now spent a week and a half on this one bug.
Basically, I'm trying to play an F4V using an FLVPlayback component. However, it seems that the video only plays if the f4v is already in the client cache. If the cache is empty, or disabled, then the FLVPlayback component throws an Error 1000, which seems to suggest it's having trouble connecting/pulling the video off the server. But since it does work on the second visit, then I suspect that it does indeed perform the download -- it just THINKS it can't. [code]...
View 2 Replies
Aug 17, 2009
I'm using Flash CS3 Pro. I want to play over 5h FLV video by FLVPlayback. but 4h video -> no problem. 5h video -> seekbar and total time view have BUG. duration : 21117.796totalTime : 4340.615 why return different value??? FLVPlayback have limit of flv??
View 1 Replies
Mar 9, 2010
Is there any way that i can load a local mp3 file using flvplayback?
View 2 Replies
Apr 7, 2010
I wanna know how to play video in flvplayback in as3. in as2 the method was flvplayback.contentpath=video.flv
but what's in as3?
View 1 Replies
Aug 8, 2009
I am building a faq page with flvs for each of the 10 questions. But for some reason the flvs will not load dynamically (with Actionscript). When I load the source from AS and write play(); I can only hear the sound but no video.
The weird thing is that the flvs play ok when i specify the source in the component inspector and don't load them from the AS.
Even weirder, i tried replicating my project on a smaller version to show the problem, just with two buttons and two FLVPlaybacks and this time it worked. But will not work on my page! I am going nuts cause i dont know why it does that! I Mean it should work but it just doesnt![code]...
View 1 Replies
Apr 8, 2010
Video won't play from XML
I have been trying to pull a single random video (.flv) from an XML list to play it using the FLVPlayback component. I managed to get the description from the <desc> tag and the title <vidtitle> tag in the xml file but can't get the flv to play in the player.
I dragged a FLVPlayback component onto the stage and gave it an instance name of "display" but I still cannot get it to work. I get no errors when hitting "control + enter" the video never loads. My code is below.
Code: Select all//Let's load our video classes
import fl.video.*;
import flash.events.Event;
import flash.net.*;
[Code].....
View 1 Replies
Jul 17, 2009
If I double click on the published SWF file (thus opening it with the FlashPlayer 10 executable), the video plays correctly. Nonetheless, if I double click on the published HTML file, there isn't any video played at all. This doesn't happen if I put the files on a webserver, the video plays correctly on the browser.I checked the "source" property of the component, which doesn't have any absolut path (the video file resides on the same folder as the FLA/SWF folder, so the "source" property only has the FLV filename).
View 3 Replies
Sep 29, 2009
Will the FLVPlayback Component (version 2.5.0.15) play an MP3 file without it having to be streamed through a Flash Media Server? All I'm looking for is to place a player into my Flash that plays an MP3 file that's in the same directory as the SWF.
Here's my code... it's pretty simple:
import fl.video.FLVPlayback;
var myMusic:FLVPlayback = new FLVPlayback();
myMusic.source = "mySong.mp3";
myMusic.skin = "SkinOverPlayMute.swf";
myMusic.skinBackgroundColor = 0xCCCCCC;
addChild(myMusic);
View 3 Replies
Mar 24, 2011
I have FMS 4 and using AS3, no matter what I do I can't get any of my recorded FLVs to play in FLVPlayback.
Is there somethign I'm supposed to install on FMS to get it to play properly?
WHat should my path be? I've been told that the flv are living in the fms/applications/storyvideos/streams/videos folder.
I've tried every combination of paths I can think of.
View 2 Replies
Jul 27, 2011
i'm trying to embed h264 mp4 video into website using flash cs3 professional.
when i select the source file it's looking for .flv files and not the mp4 file so the mp4's are greyed out.i read a great tutorial using a pc which shows the workaround for being able to see the mp4 files.url...I'm however using a mac and this method of putting an * in the file name box doesn't work on mac.
View 1 Replies
Dec 18, 2009
I have this code as a preloader for flvplayback and it work ok
[Code]....
I have the flvplayback (flvplayer) inside a movieclip (mcfilm) all this I have in a function so I can easy call it when I need the movie to run. The problem is that it run the first time but if I stop it with a button and want to play it again, nothing happend, it just say loading (the mcladdar show)
View 0 Replies
Feb 22, 2007
Is it possible to play SHOUTcast streams using the FLVPlayback control?
View 2 Replies
Nov 18, 2010
Is it possible to use the FLVPlayback class to play an instance of the Video class? I'm loading the video (which is just an audio track with cue points) in using GreenSocks LoaderMax (along with the rest of my assets) and so have various instances of Video. The FLVPlayback class only accepts a String as its' source. Is there any way to hack it to bypass whatever loading it does and just feed it the video directly?
View 1 Replies
Nov 19, 2010
I want it to automatically detect if there's a live video,then play live;otherwise play back.
View 2 Replies
Mar 26, 2012
I am working with Playing FLVPlayBack Video. i was wondering about best practice to use buffer time and how exactly buffer behaves while video is in play, pause and stop states. If i set my FLVPlayBack instance buffer time to 30 sec, Is it contiguously keep 30 secs video in buffer. for e.g if video is on 15 sec , then it will be having upto 45 sec stream in buffer, for 25 it will have 55 sec stream , for 1.10 it have 1.40 sec stream and so on.? do it behave same as of in play, in pause and stop states . and if behaves diff. then what is the diff.
View 1 Replies
Aug 1, 2011
I am trying to play some videos from a XML based playlist. I found this, but it's for AS2: Quote:
[Code]...
The instance is named flv and the XML file flv.xml, what would be the correct way to do this in AS3?
View 9 Replies
Aug 2, 2006
My Challenge is this...To feed up to 5 video references (filepaths) into the SWF which contains the FLVPlayBack component, and have these play in sequence automatically.
Once the first video ends, the next begins...Currently our FLV player takes 1 filepath passed by FlashVars and play it.
First things first... I just want to get the function of having one .flv file play after the first has finsihed... do I need some kind of listener?
View 3 Replies
Feb 25, 2009
My scene has a video background which scales to the stage size. Then, each section has another video when transitioning in. The problem is that the videos play really slow than they should, very low fps. When there are 2 videos on the stage, it goes even slower. I've tried with embedding videos, using FLVPlayback, wrapping in movieclips, but still the same result. The videos are exported at 30 fps, same rate than the flash movie.
View 3 Replies
Jul 16, 2009
In order to play a FMS stream (live or on demand), either an FLVPlayback component or the Video class is needed.And they require ActionScript 3 and Flash 8 or above.
As far as i know , Youtube, Dailymotion and Google Video stream their on demand videos from a FMS, and their players are compatible with Flash 7.
How can they achieve this? If Youtube, Google and Dailymotion do that, i deduce it's possible..
I tried to create a Flash 7 application that plays a video coming from FMS, using a MediaDisplay component, but it doesn't work well. Sometimes it shows the video, sometimes not.So i don't think youtube player uses MediaDisplay..
View 7 Replies
Jan 17, 2011
I recorded videos using fms and i want to play them using FLVPlayback component. I've done some research but i cant find somethinguseful, I tried this code :
flvplayback.source = "rtmp://localhost/appname/instancename/video";
View 5 Replies
Nov 19, 2010
I've read the reference here,but it seems to me that I can only make it work with live OR recorded videos.How can I make it work with both live AND recorded videos?
View 7 Replies