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

Similar Messages

  • Best Option For Playing Multiple Videos

    (CS3 AS2.0)
    Hi,
    I'm tweaking a flash website for a freind and he wants to have some videos play from a page. There are 25 files and ideally I want to achieve the 'Lightbox' look so that the browser window dims and the video plays over the top. After looking around I haven't found any easy solutions.
    What is the best way to achieve this, bearing in mind I shall have all these buttons on a page and want to have the video 'float' on top of the actual site?
    I'm relatively new to this although a long standing flash user when it comes to animation etc - not great on scripting.
    If you could point me to a link or help with the terminology I need that would be great. All my video files are FLV and ready to go. Need to know how to link in with the buttons I already have in place.
    Help greatly appreciated!
    K.

    Here's a link to what I'm after but the solution is in CS4 with AS 3.o and I'm using the previous versions
    http://www.gotoandlearnforum.com/viewtopic.php?t=25095

  • ? play multiple videos simultanously with a single control bar ?

    I have 4 live f4vs that I'm using with interactive server 3.5.  Thus they are running in dvr.  I'm trying to find a way to control all 4 videos so that when you go back on one video all 4 videos go back to the same time.  This is very important with camera 4 as it is the only one with sound.
    I have tried putting all 4 videos in one swf file and I have tried putting each video as its own swf.  So far I can't figure out how to do it, any help would be greatly appreciated.
    Thanks
    stjc3
    I know something similar was listed previously at
    http://forums.adobe.com/message/64579
    But the link to the solution is bad
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid =1292827&enterthread=y

    Thanks for the quick responce.
    The streams are very close to being in sync but they tend to be about half a second to a couple of seconds out of sync.  I tried using the timecode in fmle but when I do that it seems to mess up the dvr feature and kill 2 or more streams so that you can only watch old data and not new.
    So... Will it still work if they are mostly insync?  If so how do I customize the seekbar?
    Also are there any extra steps I need to take since The size of the file will continue to increase while the player is in use?
    Thanks again
    stjc3

  • Good Practice for managing player high scores & other stats

    During PC based game development, what is a good practice for saving high scores, game history etc for multiple users in terms of the following attributes :
    file types, data types to be used in the file, file protection from manual editing etc.
    pls throw some advice on the popular industry practice in use.
    regards, bittu ch

    During PC based game development, what is a good practice for saving high scores, game history etc for multiple users in terms of the following attributes :
    file types, data types to be used in the file, file protection from manual editing etc.
    pls throw some advice on the popular industry practice in use.
    regards, bittu ch

  • Using ControlBarSample to Play Multiple Videos

    I'm trying to modify the ControlBarSample to play multiple videos and I'm running into a wall. I've made a few simple modifications to the control bar sample to try to play a second video file. The problem I'm having is the control bar doesn't have a reference to the new video I play and therefore can't update it's view. I'd like to be able to remove the video element playing in the ParallelElement and add a new child MediaElement and have the controlbar refresh it's reference to the new target. Also the controlbar shouldn't have to reload itself, but should stay right where it is in the display list and in the root parallel element. Can someone guide through this? Here is my simple modification to the ControlBarSample class as a starting point.
    package
         import flash.display.Sprite;
         import flash.events.MouseEvent;
         import flash.text.TextField;
         import org.osmf.elements.ParallelElement;
         import org.osmf.events.MediaFactoryEvent;
         import org.osmf.layout.HorizontalAlign;
         import org.osmf.layout.LayoutMetadata;
         import org.osmf.layout.VerticalAlign;
         import org.osmf.media.*;
         import org.osmf.metadata.Metadata;
         [SWF(width="640", height="360", backgroundColor="0x000000",frameRate="25")]
         public class ControlBarPluginSampleMod extends Sprite
              public function ControlBarPluginSampleMod()
                   // Construct an OSMFConfiguration helper class:     
                   osmf = new OSMFConfiguration();
                   // Construct the main element to play back. This will be a
                   // parallel element, that will hold the main content to
                   // playback, and the control bar (from a plug-in) as its
                   // children:
                   osmf.mediaElement = constructRootElement();
                   osmf.view = this;
                   // Add event listeners to the plug-in manager so we'll get
                   // a heads-up when the control bar plug-in finishes loading:
                   osmf.factory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD, onPluginLoaded);
                   osmf.factory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD_ERROR, onPluginLoadError);
                   // Ask the plug-in manager to load the control bar plug-in:
                   osmf.factory.loadPlugin(pluginResource);
                   // button to play the next item
                   var label:TextField = new TextField();
                   label.text = "PLAY NEXT";
                   label.x = 10;
                   label.y = 3;
                   label.mouseEnabled = false
                   button = new Sprite();
                   button.buttonMode = true;
                   button.addChild( label );
                   button.graphics.beginFill(0x00FFFF,1);
                   button.graphics.drawRect(0,0,90,20);
                   button.addEventListener(MouseEvent.CLICK, onButtonClick);
                   addChild(button);
              // Internals
              private var osmf:OSMFConfiguration;
              private var rootElement:ParallelElement;
              private var button:Sprite;
              private function onPluginLoaded(event:MediaFactoryEvent):void
                   // The plugin loaded successfully. We can now construct a control
                   // bar media element, and add it as a child to the root parallel
                   // element:
                   rootElement.addChild(constructControlBarElement());
              private function onPluginLoadError(event:MediaFactoryEvent):void
                   trace("ERROR: the control bar plugin failed to load.");
              private function constructRootElement():MediaElement
                   // Construct a parallel media element to hold the main content,
                   // and later on, the control bar.
                   rootElement = new ParallelElement();
                   rootElement.addChild( constructVideoElement(VIDEO_HTTP) );
                   // Use the layout api to set the parallel element's width and
                   // height. Make it as big as the stage currently is:
                   var rootElementLayout:LayoutMetadata = new LayoutMetadata();
                   rootElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, rootElementLayout);
                   rootElementLayout.width = stage.stageWidth;
                   rootElementLayout.height = stage.stageHeight;
                   return rootElement;
              private function constructVideoElement(url:String):MediaElement
                   // Construct a metadata object that we can append to the video's collection
                   // of metadata. The control bar plug-in will use the metadata to identify
                   // the video element as its target:
                   var controlBarTarget:Metadata = new Metadata();
                   controlBarTarget.addValue(ID, "mainContent");
                   // Construct a video element:
                   var video:MediaElement = osmf.factory.createMediaElement(new URLResource(url));
                   // Add the metadata to the video's metadata:
                   video.addMetadata(ControlBarPlugin.NS_CONTROL_BAR_TARGET, controlBarTarget);
                   return video;
              private function constructControlBarElement():MediaElement
                   // Construct a metadata object that we'll send to the media factory on
                   // requesting a control bar element to be instantiated. The factory
                   // will use it to parameterize the element. Specifically, the ID field
                   // will tell the plug-in what the ID of the content it should control
                   // is:
                   var controlBarSettings:Metadata = new Metadata();
                   controlBarSettings.addValue(ID, "mainContent");
                   // Add the metadata to an otherwise empty media resource object:
                   var resource:MediaResourceBase = new MediaResourceBase();
                   resource.addMetadataValue(ControlBarPlugin.NS_CONTROL_BAR_SETTINGS, controlBarSettings);
                   // Request the media factory to construct a control bar element. The
                   // factory will infer a control bar element is requested by inspecting
                   // the resource's metadata (and encountering a metadata object of namespace
                   // NS_CONTROL_BAR_SETTINGS there):
                   var controlBar:MediaElement = osmf.factory.createMediaElement(resource);
                   // Set some layout properties on the control bar. Specifically, have it
                   // appear at the bottom of the parallel element, horizontally centererd:
                   var layout:LayoutMetadata = controlBar.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE) as LayoutMetadata;
                   if (layout == null)
                        layout = new LayoutMetadata();
                        controlBar.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layout);
                   layout.verticalAlign = VerticalAlign.BOTTOM;
                   layout.horizontalAlign = HorizontalAlign.CENTER;
                   // Make sure that the element shows over the video: element's with a
                   // higher order number set are placed higher in the display list:
                   layout.index = 1;
                   return controlBar;
              private function onButtonClick(event:MouseEvent):void
                   playNext(VIDEO_RTMP);
              private function playNext(url:String):void
                   rootElement.removeChildAt(0);
                   rootElement.addChild( constructVideoElement(url) );
              /* static */
              private static const VIDEO_HTTP:String = "http://mediapm.edgesuite.net/osmf/content/test/logo_animated.flv";
              private static const VIDEO_RTMP:String = "rtmp://cp67126.edgefcs.net/ondemand/mediapm/strobe/content/test/SpaceAloneHD_sounas_640_500_short";
              private static var ID:String = "ID";
              // Comment out to load the plug-in for a SWF (instead of using static linking, for testing):     
              //private static const pluginResource:URLResource = new URLResource("http://mediapm.edgesuite.net/osmf/swf/ControlBarPlugin.swf");
              private static const pluginResource:PluginInfoResource = new PluginInfoResource(new ControlBarPlugin().pluginInfo);

    It appears that this may be accomplished more easily if I do something similar to the StrobeMediaPlayback implementation. Looking at the StrobeMediaPlayback source code it looks like Adobe has done something a little different than their ControlBarPlugin, placing the controlbar and root media element inside separate MediaContainers and then adding those containers to the display list. Is this recommended over using the frameworks ParallelElements? If so, is communication between the control bar and root media element still a matter of just updating the target reference via metadata?

  • Snow Leopard iTunes 10.5 will not play multiple video tracks in QuickTime .MOV files

    I recently discovered that Snow Leopard iTunes version 10.5 won't play multiple video tracks in a QuickTime .MOV file.
    Both video tracks appear and play correctly when playing the file in:
    - QuickTime Player 10 or QuickTime Player 7.7 on the same Snow Leopard machine
    - iTunes 10.3.1 on another Snow Leopard machine
    - iTunes 10.5 on Leopard or Windows 7
    So I think the problem is iTunes 10.5 on Snow Leopard (although I haven't been able to test iTunes 10.4).
    First test file is two 640x480 video tracks side-by-side (total dimensions 1280x480):
    http://160.94.17.23/demo/two-video-tracks-1280x480.mov
    All I see is the first (left) video track, and not the right one.  iTunes "Get Info" command incorrectly reports the video dimensions of the file as 640x480.
    Second test file is two 640x480 video tracks played one after another (duration of 10 seconds each):
    http://160.94.17.23/demo/two-video-tracks-640x480.mov
    All I see is the first video track, and although it reports the correct file duration (20 seconds), the second video track never appears -- it simply freezes on the final frame of the first video track for the last 10 seconds.
    Anyone else see similar behavior?  Unless I'm missing something, I suppose I should submit this as a bug to Apple.

    I have the same problem, i tried re-installing, converting it to AVC H264 but none seems to work so far

  • Which codec is needed for playing vp6 videos in Windows 7 (32 bits)?

    I'm still trying to solve the media corrupted error, could you recommend me a codec for Windows 7 (32 bits) for playing vp6 videos?
    Perhaps I'm not using the correct codec...
    Thanks!
    Noelia

    Thanks for your answer, I'm doing this question here because I have Media problems with my JAVAFX 2.0 application since october.
    I posted many questions about the error "media corrupted" and I couldnt get an answer for my problem. My application change videos all the time and I'm trying to solve the error.
    I think that I was wrong choosing JAVAFX 2.0 because it's too new. I have to finish my app because my client is waiting...
    I don't know what to do, I spent lot of time... I tested a lot of codecs and the problem persists. I hate vp6 videos.
    Thanks
    Noelia

  • What is best practice for installing Yosemite

    I am currently on OS X Mavericks version 10.9.5 Macbook pro 13.  2.6 ghz intel for i5, 8gb 1600 mhz ddr3.
    I am now downloading yosemite 10.10.1 but since i've been reading all these negative feedback so far, i am having second thoughts if i should continue to install the upgrade or not.
    Any suggestion What is best practice for installing Yosemite?  Or is it not yet time to upgrade since the platform is premature yet?
    Thanks in advance.

    Check your apps are compatible with 10.10 - roaringapps.com
    http://www.etresoft.com/etrecheck can show what is running & installed - look for updates on the developer own sites.
    If you have many kernel extensions or startup items look for updates to them too
    Take a full bootable backup to another disk via Carbon Copy Cloner, Super Duper! or Disk Utility
    Disconnect the backup before you begin any install (ideally set it aside & leave it untouched incase you need to go back to 10.9)
    Personally I prefer a clean install when there are signs of multiple migrations (if you have upgraded several OS for a period of years). Setup Assistant/ Migration Assistant can import user data from a backup, but consider that Apps & 'other data' should be manually reinstalled from the latest versions.
    If you clean install (erase the HD before installation) then make sure you deauthorise iTunes & any other apps that are associated online (like find my Mac).
    Basically the steps you would take before selling a Mac…
    What to do before selling or giving away your Mac - Apple Support

  • What are best practices for managing my iphone from both work and home computers?

    What are best practices for managing my iphone from both work and home computers?

    Sync iPod/iPad/iPhone with two computers
    Although it isn't possible to sync an Apple device with two different libraries it is possible to sync with the same logical library from multiple computers. Each library has an internal ID and when iTunes connects to your iPod/iPad/iPhone it compares the local ID with the one the device normally syncs with. If they are the same you can go ahead and sync...
    I have my library cloned to a small 1Tb USB drive which I can take between home & work. At either location I use SyncToy 2.1 to update the local copy with the external drive. Mac users should be able to find similar tools. I can open either of the local libraries or the one on the external drive and update the media content of my iPhone. The slight exception is Photos which normally connects to a specific folder on a specific machine, although that can easily be remapped to the current library if you create a "Photos" folder inside the iTunes Media folder so that syncing the iTunes folders keeps this up to date as well. I periodically sweep my library for new files & orphans withiTunes Folder Watch just in case I make changes at one location but then overwrite the library with a newer copy from the other. Again Mac users should be able to find similar tools.
    As long as your media is organised within an iTunes Music or Tunes Media folder, in turn held inside the main iTunes folder that has your library files (whether or not you let iTunes keep the media folder organised) each library can access items at the same relative path from the library folder so the library can be at different drives/paths on different machines. This solution ensures I always have adequate backups of my library and I can update my devices whenever I can connect to the same build of iTunes.
    When working with an iPhone earlier builds of iTunes would remove any file not physically present in the local library, even if there was an entry for it, making manual management practically redundant on the iPhone. This behaviour has been changed but it will still only permit manual management with a library that has the correct internal ID. If you don't want to sync your library between machines on a regular basis just copy the iTunes Library.itl file from the current "home" machine to any other you want to use, then clean out the library entires and import the local content you have on that box.
    tt2

  • Best Practice for using multiple models

    Hi Buddies,
         Can u tell me the best practices for using multiple models in single WD application?
        Means --> I am using 3 RFCs on single application for my function. Each time i am importing that RFC model under
        WD --->Models and i did model binding seperately to Component Controller. Is this is the right way to impliment  multiple            models  in single application ?

    It very much depends on your design, but One RFC per model is definitely a no no.
    Refer to this document to understand how should you use the model in most efficient way.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/705f2b2e-e77d-2b10-de8a-95f37f4c7022?quicklink=events&overridelayout=true
    Thanks
    Prashant

  • Best practice for running multiple sites on 1 CF install?

    Hi-
    I'm setting up a new hosting environment (Windows Server 2008 Standard 64 bit VPS  configuration, MySQL, IIS 7, CF 9)
    Has anyone seen any docs or can anyone suggest best practices for configuring multiple sites in this environment? At this point I'm thinking simple is best, one new site in IIS for each client (domain) and point it to CF.
    Given this environment, is anyone aware of any gotchas within the setup of CF 9 on IIS 7?
    Thank you in advance,
    Rich

    There's nothing wrong with that approach. You can run as many IIS sites as you like against a single CF install.
    As for installing CF on IIS 7, I recommend that you do the following: install CF 9 without connecting it to IIS, then installing the 9.0.1 upgrade and any hotfixes, then connecting CF to IIS using the web server configuration utility. This will keep you from having to install the IIS 6 compatibility layer that's needed with CF 9 but not with CF 9.0.1.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • Best practice for deleting multiple rows from a table , using creator

    Hi
    Thank you for reading my post.
    what is best practive for deleting multiple rows from a table using rowSet ?
    for example how i can execute something like
    delete from table1 where field1= ? and field2 =?
    Thank you

    Hi,
    Please go through the AppModel application which is available at: http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    The OnePage Table Based example shows exactly how to use deleting multiple rows from a datatable...
    Hope this helps.
    Thanks,
    RK.

  • What is best practice for...

    What is best practice for deploying applications through the IPCU to 10 ipads?
    I'm looking for a complete step-by-step of the best way to do this.
    Thanks in advance!

    Just place a modem into any console port. Ideally you use a terminal server, but is not always really needed.

  • What's best practice for logging messages in pageflow?

    What's best practice for logging messages in pageflow?
    Workshop complains when I try to use a Log4J logger by saying it's not serializable. Is there a context similar to JWSContext that you can get a logger from?
    There seems to be a big hole in the documentation on debug logging in workflows and JSP pages.
    thanks,
    Rodger...

    Make the configuration change in setDomainEnv.cmd. Find where the following variable is set:
    LOG4J_CONFIG_FILE
    and change it to your desired path.
    In your Global.app class, instantiate a static Logger like this:
    transient static Logger logger = Logger.getLogger(Global.class);
    You should be logging now as long as you have the categories and appenders configured properly in your log4j.xml file.

  • How can i change the default application to vlc player for playing any videos on my macbook?

    How can i change the default application to vlc player for playing any videos on my macbook?

    1. Control click the file you want to open.
    2. Click Get Info.
    3. Under open with, pick the App you want to be default.
    4. Click Change All Button.
    5. Confirm your decision.
    You have to do this with every file that has a different extension. You can't change the default for every file with a different extension in a single operation.

Maybe you are looking for