Loading multiple videos in FLVPlayback
I am building a video player which should load multiple videos in a FLVPlayback.
When the loading of the first video has finished, the second one should start, using the VideoProgress Event.
My code looks like this, videos is an array with the paths to the videos:
flvPlayback.addEventListener(fl.video.VideoProgressEvent.PROGRESS, progress);
flvPlayback.addEventListener(VideoEvent.COMPLETE, onComplete);
private function progress(e:fl.video.VideoProgressEvent):void
if (e.bytesLoaded == e.bytesTotal)
if (videos.length > e.vp + 1)
flvPlayback.activeVideoPlayerIndex = e.vp + 1;
var path = videos[e.vp+1];
if (flvPlayback.source == "")
flvPlayback.load(path);
flvPlayback.activeVideoPlayerIndex = flvPlayback.visibleVideoPlayerIndex
private function onComplete(e:fl.video.VideoProgressEvent):void
if (videos.length > e.vp + 1)
// set the volume to 0 before switching to next video because of
// bug in FLVPlayback that prevents to play the sound otherwise.
var v:Number = flvPlayback.volume;
flvPlayback.volume = 0;
flvPlayback.activeVideoPlayerIndex = value;
flvPlayback.visibleVideoPlayerIndex = player.activeVideoPlayerIndex;
flvPlayback.volume = v;
flvPlayback.play();
flvPlayback.load(videos[0]);
flvPlayback.playWhenEnoughDownloaded();
Now I have the problem when I test this locally, the first video is invisible sometimes when starting to play. This is not happening everytime, but sometimes the video is not shown, but I can hear the sound, and I can see the scrubber on the seekbar moving.
I already tried to check in the progress function if the video is already playing, and if not, set a timer that will call the progress function again in 1 second. It seemed to help at first, but then it happened again. Does anyone know a workaround for this?
Out of the AS3 documentation for FLVPlayback:
activeVideoPlayerIndex
A number that specifies which video player instance is affected by other application programming interfaces (APIs).
Use this property to manage multiple FLV file streams.
This property does not make the video player visible;
use the visibleVideoPlayerIndex property to do that.
A new video player is created the first time activeVideoPlayerIndex
is set to a number. When the new video player is created,
its properties are set to the value of the default video player
(activeVideoPlayerIndex == 0) except for source,
totalTime, and isLive, which are always set to the
default values (empty string, NaN, and false, respectively),
and autoPlay, which is always false (the default is true
only for the default video player, 0). The cuePoints
property has no effect, as it would have no effect
on a subsequent load into the default video player.
setting the activeVideoPlayerIndex property to 1 will create another VideoPlayer instance inside of the FLVPlayback component. I have done it, it does work, but with the mentioned problem in my first post that the first video is not visible.
So either I am doing something wrong, or there is a bug in how it is supposed to work.
Similar Messages
-
Issue with Loading Multiple Videos within a Project
I am assembling a Captivate project that needs to include several videos that a quite large. When the entire project is written as a Windows executable projector file, the player does not open because the operating system cannot allocate enough memory to open the file.
I was adding these videos to the project through the "Event Video" option and browsing to the FLV located on my computer. When the Windows projector is created, it loads the entire video into the executable file.
Is there a way to load a SWF animation that has reference points to the video (located within the same directory as the SWF) so that when the Windows Projector file is written, it does not need to embedd the entire video into the executable file?
I am currently using Captivate 6.0.1.240.Just regarding point 2.
You will probably find that working in manageable sections (story logical and file size) will be best practice for all post subsequent to edit.
Ughhh, that is my concern! I'm hoping by having it broken down and organized in self-contained sequences, and by story arc--Prologue, Act One, Act Two...that this will work as good manageble sections as well as easier for story layout.
I hope by only bringing in each edited rough cut sequence into the Dolly Master Project File it will keep the Master file mean and clean. Also, the reason I started with Prelude was in hopes that I would have a more organized structure for editing, but I am not sure if by bringing in the Prelude rough cuts and supporting footage files if that helps or undermines the too large file issue. However, I really do not have a clue as to what things will really make my files too large or too complicated.
A lot of hope there I know!
I try to make it a habit of hitting ctrl-s everytime I complete an action. I have auto-save set to every 15 minutes. I save the project file on two internal hard drives and one external hard drive. At the end of the work day or more often if I have accomplished a lot I email myself a dated/timed copy of the project files. I'm thinking it might be better if I get another dropbox account to have another offsite back-up.
Well, last night I took a Leap of Faith in Adobe Prelude. I established my project files and sent all of my rough cuts to the appropriate project files. I have to say it was pretty painless. In Prelude right-click rough cut > left-click send to Premiere Pro > wait a few seconds.
The only drawback is that I could not select a bin in Premiere in which to send the footage and rough cuts. So I had to drag the footage/rough cut files to the appropriate bin. This would be a nice feature to add.
Here is a link to a pic of my desktop.
http://imgur.com/Njat387
So now the story layout begins! Thanks again and again! -
What is good practice for playing multiple video's in a single swf?
Hello,
I have build in the past a video wall with video's inside. After building this i came across some problems.
If you have too many video players loading at once it takes a lot of processing and the tweens in the
page while loading the video's where not moving fluidly, but more in a stuttering way.
After lot's of test i found a good working solution. I imported the flv video's into flash en exported them on the timeline
as a embedded swf. Then i externally loaded these swf files and that performed much better.
Is it even good practice to load multiple video instances at once? I used this time the LoaderMax of greensock but the video's
only play after it's completely loaded. I would like to find a way to progressive play all video's at.
Does someone has experience with this?
Regards,
Chris.How about an XML file which supplies the title for each movie and the location or source of the video to be played? Simple version below.
<?xml version="1.0" ?>
- <playlist>
<video src="Gfx/video/Alex1.f4v" title="John Deere 330" />
<video src="Gfx/video/Benni1.f4v" title="Hitachi Z240F" />
<video src="Gfx/video/Scotti1.f4v" title="Hitachi Z350F" />
<video src="Gfx/video/Scotti2.f4v" title="Hitachi Z350F" />
</playlist>
JR -
Multiple videos load at once and start playing creating sound mess and sucking up ram. This is happening on Firefox on both Windows 8 and Windows 7 machines. This started about three weeks ago. I have run Avast, malwarebytes, hitman pro, and other malware killers. A new youtube setting appeared in settings, I have unticked everything. The videos do not appear to be youtube based.
You could enable plugins click-to-play. Also, set the plugins to Ask to Activate rather than Always Activate. I also recommend the extension "Click to Play per-element".
https://addons.mozilla.org/en-US/firefox/addon/click-to-play-per-element/ -
Youtube seems to load multiple times, audio works, no video
Youtube works on IE. In Firefox it seems to load multiple copies. The time bar at the bottom has many segments. The audio works, but no video. I disabled Flashblock, does not help.
I have the same problem, with vista, on an intel iMac.
I tried uninstalling the driver, restarting, and then bootcamp automatically reinstalls the driver, but that didn't fix it. The driver is there and everything appears to be as it should but just no sound comes out unless I set headphones to the default, in which case the audio is way too quiet.
I'm trying to repair my bootcamp install from my leopard disk but I got an error code 2727 and couldn't even attempt to try fixing the issue that way.
It's so annoying, because I'm trying to play starcraft ii, which is impossible macside because mac os insists upon having ridiculous mouse acceleration. I managed campaign macside but now it's time for some serious competitive play and I just need to do this on windows, but no sound. -
Stopping embedded video from loading multiple times
Hi,
just started using Edge Animate. I have some experience with Flash and After Effect so the layout is pretty familiar to me. I have no background in coding so I am very happy that it generates codes for me.
My goal is to make a simple html5 site with links / embedded videos to my contents (500 and vimeo). I copied some codes used for Youtube embedding, sub'd the url with vimeo url, and it worked fine. I used a "play video" button on the main page to trigger loading the video page (see my code below).
It worked great the first time I clicked the button and went to the video page. However, upon returning to the main page, and click the "play video" button again, a duplicate copy of the video is loaded right below the video loaded upon first click. This occurs for as many times as I click the play video button.
Anyone knows how to fix this?
Thanks
Pako
sym.play("VideoPage");
var youtubevid = $("<iframe/>");
sym.$("vcontainer").append(youtubevid);
youtubevid.attr('type','text/html');
youtubevid.attr('width','500');
youtubevid.attr('height','375');
youtubevid.attr('src','vimeo code');
youtubevid.attr('frameborder','0');
youtubevid.attr('allowfullscreen','0');Adjust the line
sym.$("vcontainer").append(youtubevid);
to this
sym.$("vcontainer").empty().append(youtubevid);
The addition of the empty() method is to make sure it clears out the container on successive clicks.
hth
Darrell -
Loading, playing in "sync" multiple videos with OSMF
Hi All,
I've just started to use OSMF in a Flex project.
I was wondering if it was possible to manage loading 2 videos with OSMF, start playing both videos when they're both downloaded (or when there's enough data downloaded to play them both)
Both videos have the same length, but I was just wondering if there was a way to do that
Thanks for the helpThanks for the answer Ryan,
Exactly what I was looking for.
To take things a bit further, I was wondering if you could tell me if the following was possible (or if the OSMF is meant to be used this way) :
I'm developing a flex application using the OSMF, I'd like to use the parallel element (two videos), have of it's elements be displayed in a flex canvas, and have the second element displayed in another canvas, I'd just like to know if that's possible/logical
Thanks for your help
Julien -
FCPX 10.0.7 hangs when loading multiple projects - a non-destructive work around
FCPX 10.0.7 hangs when loading multiple projects - a non-destructive work around....
Hi Guys, I upgraded from FCPX 10.0.6 to 10.0.78 and discovered to my immense frustration that many of my 100+ FCPX projects would not load.
Symptom:
FCPX 10.0.7 appears to hang ("spinning beachball") with either high CPU% on a single core or with 1-2% CPU busy (activity monitor.app) when a FINAL CUT PROJECT is selected. No logs error information in /var/logs ..hmm
notices that the "status circle" spins around endlessly.
Actvity Monitor.app shows "Final Cut Pro (Not Responding)
and also I notice in some cases that an OEM filter ("NEAT VIDEO NOISE REDUCTION") is in progress to be loaded. FCPX V10.0.7 must be FORCED QUITtted to remove it from system.
History: Upgraded FCPX from V10.0.6 to V10.0.07.
"FINAL CUT EVENTS" and "FINAL CUT PROJECTS" on a single file system on SAS 16TB disk array (768MB/sec read via AJA system test) and 60% utilised capacity… FCP EVENTS has 400 events in it .. some 5.2TB of Prores essence etc .. all works fine! (i.e. the storage system is first class and is NOT the issue)
32GB of RAM on MAC PRO 2009 Nehalem 16 x Vcore with ATI 5780 card and ATTO HBA's (i.e. plenty of resources!)
As usual with any "upgrade" to FCPX 10.0.? all the EVENT objects need to be upgraded. In my case this takes an hour or two.. so I do that when asleep.
After experiencing above, I restored the FCPX EVENTS LIbrary of that file system from LTO4 tape archive (BRU-PE ) and still had the same issues as above.
WORKAROUND:
FORCEd QUIT FCPX V10.0.7
RENAMEd "/volumes/some_file_system_volume/Final Cut Projects" to "/volumes/some_file_system_volume/Final Cut Projects_original"
created (make) a new "/volumes/some_file_system_volume/Final Cut Projects" (use finder)
For each project !!! in "/volumes/some_file_system_volume/Final Cut Projects_original", (do one project at a time!!!)
MOVE "/volumes/some_file_system_volume/Final Cut Projects_original/one_fcpx_projext_nnnn_folder" to "/volumes/some_file_system_volume/Final Cut Projects"
Make sure you move ONLY one project at a time. If you have a subfolder of projects, please do each project one at a time (serially!)
Launch FCPX V10.0.7 and BE PATIENT!!! .. DONT click or fiddle with the UI.. it seems when you intervene it locks up as well…
Let FCPX V10.0.7 settle….
select the project you just added above and RELINK any objects it needs. Thumbnails and proxies will be rendered again.. just be patient
wait until ALL the rendering as stopped.
QUIT FCPX V10.0.7
(now if FCPX locks up, just force it out and start again as above).
repeat for all projects in "/volumes/some_file_system_volume/Final Cut Projects_original" (go to step 4 ad do until all projects moved)
When all is COMPLETED MAKE SURE YOU ARCHIVE an instance (or make a backup ) of "/volumes/some_file_system_volume/Final Cut Projects"
If this procedure has worked the folder "/volumes/some_file_system_volume/Final Cut Projects_original" will have zero (nill, none) projects in it.
I have managed to restore ALL my "/volumes/some_file_system_volume/Final Cut Projects" this xmas between drinking etc. I'm satisfied that its all ok.
Other issues:
use DISK WARRIOR or TT PRO 6 to make sure that the file system volume where your "/volumes/some_file_system_volume/Final Cut Projects" are is physically ok. I noticed some entries in file system's volume table that represented objects in "/volumes/some_file_system_volume/Final Cut Projects" were at fault when I used these utilities… FWIW.
SUMMARY: yes this took ages to d, however luckily I had everything in at least 3 instances in an archive which has saved me many time in the old FCP& and prior days… it was just a matter of time to put it back together.
I put this outage down to may be my own impatience when I first fired up FCPX 10.0.7 after the upgrade.
I'm interested if this workaround is helpful to others and in addtiion if others have a more satisfactory remedy.
HTH
warwick
Hong KongHi Eb, yeah I could not see any "memory leak" or unusual consumption of REAL memory whose less availability would cause excessive PAGEing and SWAPping as seen in the Activty Monitor.app
I watch this carefully especially the use of REAL MEMORY by 3rd Paryy apps. BTW there are a few that cause ALLOCATED but NOT USED memory (blue in the A.M.app UI). Simply a unix PURGE command can release that memory and help clean up the PAGE and VM swap files (its alleged!).
Yes, you may be might with the element of "Luck" involved. I would add though, that having MULTIPLE project displaying in the STORYLINE window and loading always caused my FCP 10.0.7 jam up at startup with h symtoms and observations I described.
TIP: I might also add that for a super speedy launch of FCPX one may also emply setting each PROJECT's UI to show only AUDIO thus negating the need to contstruct or reneder out a PREVIEW ui in each clip in the storyline.
Your/Apples suggestion of the movememt (rename) of "Final Cut Pro Projects" to "Final Cut Pro Projects Hidden" is similar to what I proposed above to stop FCPX 10.0.7 accessing and building it up at startup. This workaround has been useful inthe past as well.
ALso one might also get the stick out and remove (delete/rm) the ~/Library/Saved Application State/com.apple.FinalCut.savedState in one's home ~/Library so that FCPX wont do such a neat job reinstating FCPX last time you crashed it... This has been helpful also in diagnosing my issues.
Lastly I have noticed that:
impatience clicking on the FCPX UI when in the unstable state causes it to lock up with NO visible CPU% busy.... as if its waiting on something which is usually me MEMTERMing it via FORCE QUIT and
the projects where I have employed the NEAT VIDEO Noise Reduction OEM filter for FCPX seem to exasserbate the PROJECT loading issues when several PROJECTS are available at FCPX startup time.
As of yesterday I have some 400+ EVENTS Final Cut Pro Events and 130+ projects of varying compexites in a single file system on Final Cut Pro Projects all working fine and as good as gold again!
Oh and one more thing, I had to RE-RENDER many projects of them again... strange as the FCP PROJECT library was renstated from a recent LTO archive as of V10.0.6 FCPX.. strange that...I would have expected if the projects and events were 10.0.6/7 compatable as proposed by Tom, that this would not be necessary... hmm straneg that
I'll monitor this thread.
Thanks for your comments lads! -
Playing multiple videos in sequence
Hello all. I'm a complete newbie to Flash development, but
have been thrown into it with not just a deadline, but a (to me)
"complex" project. I have a Flash project which currently opens and
plays a video as part of whats on "the stage". I now need to add 2
more videos which will play, in sequence, after the first one
finishes. I've gone through the tutorials, read the help files, and
now I'm just feeling a bit "DUH" because I still can't figure out
how to do this. Anybody out there care to help a poor ol' graphics
guy avoid the bitter wrath of his boss?A single instance of FLVPlayback can handle multiple videos.
I can't remember what the upper limit is. So you can switch between
them based on user input. But I believe it can only ever play one
at any one time. I've used FLVPlayback quite a lot but not for what
you're describing, so can't answer from direct experience.
Check out this page, and the trivial example at the end
(whether its streaming or progressive is irrelevant here, streaming
should work just as well, but perhaps you need to use SMIL files
for the streaming contentPath?)
http://livedocs.adobe.com/flash/9.0/main/00002980.html#wp3780233 -
How to import multiple videos to project at once?
Bonjour, first off, I love the iMovie iOS app, however, I feel it's missing a key feature. Is there a way for me to add multiple videos into a project at once without having to select them individually, and have the screen close, then having to re open it, and search for the other, and so on and so forth.
It would be so much easier if I could just select multiple videos from the import feature on my phone. The videos take a while as it is to load in the feature, my project is being created from oldest to newest, so I have to scroll all the way down to the bottom of the list, wait for all the videos to load so I can, and then an only select one so I must repeat the process.
Any way around this yet?Import all your videos into iPhoto's library.
Step 1: Plug your phone into your computer
Step 2: open iPhoto (or if you have an iPhone it should open automatically)
Step 3: click on you phone under "Devices"
Step 4: hold down the "Command" key while selecting ALL the videos you want to import
Step 5: Under "Event Name" give all your videos a general title (ie. Vacation)
Step 5: Import
Step 6: Open iMovie and look for the event name under Event Library
Hope this helps! -
Multiple video formats in one feed?
My podcast (http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=348713189) has videos formatted for Apple TV, but that means subscribers can't load it on their iPods. Is there a way to host multiple video formats in one feed?
Feed url = http://buzz.snow.com/media/lindseyisepic.xmlThe 'enclosures' in a feed don't all have to be the same format, so you could certainly mix differently formatted episodes.
But note that different versions have to appear as different episodes (even if it's the same content) - you can't have two 'enclosure' tags within one 'item' tag - the second will be ignored.
Another point is that if you do two versions of every episode you are forcing subscribers to download both versions, so there is a lot of redundant downloading going on. It might be better to make two different podcasts, one with the Apple TV versions and one with the iPod version: note that if you do this the titles must be different (so you could add the media type in the title) and of course the second version must be submitted as a new podcast. Once done, iPod users wouldn't have to download all the Apple TV files and vice versa. -
Quicktime playing multiple videos question
Hello Everyone.
This is probably more of a html/java/flash based question but I thought I would start here as it revolves around the QT Player.
I have a webpage
http://www.drewwfilms.com/Temp/Ket/KetWedding.html
On this page is the QT Player.
Beneath the player are 3 buttons. When a viewer clicks one of those buttons I want it to load the respective video related to that button into the player without the browser loading a new page. Is this possible?
Can someone steer me the right direction? Or help me out? I'm not even sure how to google search this. I tried Multiple Videos, 1 QT player Web - and I didn't get anything that helped.
Thanks!I've been having this truly obnoxious problem ever since I installed Lion. Whenever I open a Quicktime video or a preview jpeg (and sometimes a Word document) - the last two or three documents I've viewed in these programs also open.
This is the normal default mode for Lion which now "remembers" what documents (files, movies, images, etc) were opn when you last "Quit" each application. Either learn to close the documents before "quitting" the app or turn this feature off. (I.e., deselect the "System Preferences > Personal > General > Restore windows when quitting and re-opening apps" option.) -
Loading Multiple excel sheets in to different tables in a DB
Hi All,
I have problem in loading multiple excel sheets data in to according to that excelsheets tables in a DB.
All the excel sheets are in a folder,from that folder i have to acces all excel sheets.
For this i am unsing script task and one dataflow task.
But the error is coming in script task i am not able to put the path in the script..
Is this the correct way to do like this? Or any other way?
Can u please tell me the solution for this..Thanks in advance who are responding to this mail...
Maruthi..Hi Vipin,
Here you go with this requirement
How to Load Multiple Sheets From Multiple Excel Files to Different Tables in SSIS Package?
ttps://www.youtube.com/watch?v=1WXKpkwjhX8&feature=youtu.be
I have other videos as well where you want to load all the sheets from file/s to same table
https://www.youtube.com/watch?v=F3sYO-S9icc&feature=youtu.be
Check out the last links on below links all related to Excel
http://sqlage.blogspot.com/search/label/SSIS%20Videos
How to Create Excel file with Date-time on Each Package Execution in SSIS Package?
How to Load Multiple Sheets to a SQL Server Table in SSIS Package?
How to Load Data Excel File to SQL Server Table and Solve Data Conversion Issues?
How to Load Multiple Sheets From Multiple Excel Files to Different Tables in SSIS Package?
How to Load Data to Pre-Formatted Excel Sheet (Excel Report) in SSIS Package?
All the best!
http://sqlage.blogspot.com/ -
Load XML Videos data on tilelist(component) click
Is this possible to load XML Videos data on tilelist(component) click..?
yes. works for me:
import fl.video.FLVPlayback;
var flv_pb1:FLVPlayback = new FLVPlayback();
var flv_pb2:FLVPlayback = new FLVPlayback();
var flv_pb3:FLVPlayback = new FLVPlayback();
flv_pb1.source="z_flvs/water.flv";
flv_pb2.source="z_flvs/sample.mp4";
flv_pb3.source="z_flvs/water.flv";
tl.addItem({alt:"v 1", src: flv_pb1});
tl.addItem({alt:"v 2", src: flv_pb2});
tl.addItem({alt:"v 3", src: flv_pb3});
tl.labelField = "alt";
tl.sourceField = "src";
tl.columnWidth = 400;
tl.rowHeight = 600;
tl.columnCount = tl.length;
tl.rowCount = 1;
tl.move(10, 10); -
Load streaming video at specific cuepoint - AS 3.0
Hello I have a video with 6 embedded cuepoints
(Chapter1-Chapter6)
All I want to do is load the video at a specific, in this
chase the one named "Chapter4" cuepoint.
Here is the actionscript 3.0 code I have so far (where
"player" is the name of the flvplayback component), which obviously
isn't working...
player.source = "rtmp://www.whatever.com/Youth.flv";
player.seekToNavCuePoint("Chapter4");
I am getting this error... VideoError: 1003: Invalid seek
Any advice on how to do this would be greatly appreciated...
Thanks in advance,
LeeI had the same problem. Dan Carr was kind enough to send a
reply. Here it is:
quote:
Getting stuck on the loading screen is a symptom that may
happen for a number of reasons.
The loading screen sits above the gallery and obscures the
screen while the thumbnails and screen assets are loading. The
loading screen stays in place until all the video thumbnails have
loaded - so what you're seeing is an issue where 1 or more of your
videos isn't loading.
Most commonly this is because the server isn't recognizing
the FLV mime type or one or more videos didn't get uploaded to the
path listed in the XMLfile. (Actually, the first time I saw
something like this it was because there were spaces in the video
file names - local playback worked as expected, but my server was
URL-encoding the file names which replaced the spaces with
different characters and broke the expected paths...)
I'd recommend that you do the following... In the FLA file,
select the white rectangle graphic on the "Preloading" layer and
make it invisible by turning its alpha to 0. This will allow you to
see which videos are not loading on the server. If none of the
videos load, this would hint that either the server isn't seeing
the FLV mime type, the XML file isn't loading, or there is a global
problem with file naming. (If you see all the labels on the
filters, you know the XML file loaded.) If most of the videos are
loading, look for the specific problem videos and check to see that
the naming is correct and that the files were uploaded to the
correct location.
My own issue, as Dan suggested, was that FLV wasn't
registered on the server.
Hope this helps others.
Paul
Maybe you are looking for
-
No compiler error when assigning null to a primitive with ? :
In 5.0, the statement int a = true ? null : 0; does not produce a compiler error. In 1.4 it produced an error stating "Incompatible conditional operand types int and null". I understand that auto-boxing complicates the compiler's job here, but isn't
-
What do you mean by Time profile and how to configure it.
Hi Gurus, can anybody tel me what do you mean by Time profile and how to configure it. we are using Capacity requiremtn planning. best regards prashanth
-
Why is the customer service poor!?
I can't even get to a REAL person using your customer service line! The in-store reps are worse! I will be leaving Verizon soon!
-
This is the alphabet when using the \mathcal command. Apple, please fix B, E, F, H, I, L, M, and R. Thank you.
-
Mac OS X 10.7 Lion Server - Device Management?
Hi, I would like to know in details what devices does the Mac OS X Lion Server manages? And how does the server manage the devices such as iPhone and iPad etc? My company is currently using Apple Mac Mini Server. and would like to manage the devices.