Dynamic FLV  Loading Entire Video

Using Flash 8 and the tutorial at
http://reallyshiny.com/tutorials/flash.php,
I created a dynamic FLV player. Everything works but the player
loads the entire FLV video when going to the URL. Is there an easy
way to prevent FLVPlayback component from loading the complete FLV
video until someone clicks play? If there were several videos on
the page or one video was very large it could take an unnecessary
about of bandwidth to display the page, especially if the end user
wasn't going to view that video.

Sorry, my mistake.
Ok, I think that if you used a prebuilt component, the play
button i used only to start the clip. You have to create your own
Play button, that verify if the video exist or if it has to load
it. So the first time, the video does not exist, then when the used
will click on it, it will start the video load. Don't put the video
path on the component, just feed it with actionScript. After that
if the user stop the video or just pause it and press Play button
again your code will check, then the video already exist and it
will not start the load again, but just play it.
Has I said, this is the way I think it should be, you have to
Script your own play btn. May be there is other way, but I don't
know them.
Hope that can help you!

Similar Messages

  • YouTube rarely loads entire video on first try

    More often than not, it hangs at the 1/3 or 2/3 mark. I'm streaming over my home wireless network and it works fine on my iMac. Any ideas?

    1st, More information needed for someone to help... please click below and provide the requested information
    -Premiere Elements FAQ http://forums.adobe.com/thread/1042180
    2nd, exactly what are you editing?
    Codec & Format information, with 2 links inside to read
    -read both links in reply #1 http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    For PC http://mediainfo.sourceforge.net/en or http://www.headbands.com/gspot/
    For Mac http://mediainspector.massanti.com/
    3rd, The Tutorial Links Page http://forums.adobe.com/thread/1275830 may also help
    Plus...
    Premiere Elements FAQ List (2 pages of FAQ as of September 2013) http://forums.adobe.com/community/premiere_elements/premiere_elements_faq?view=all
    Premiere Elements TIPS List (6 pages of Tips as of September 2013) http://forums.adobe.com/community/premiere_elements/premiere_elements_tips?view=all

  • How to send dynamic flv video to video control

    Hi
    i put a looper in my page and inside it i click insert->media->flash video
    and the window appeared and i try to make the flv dynamic i mean by code and i found that it needs to specify a specific flv file !!! no parameters button to specify dynamic file
    how to specify dynamic flv to video control?
    if this control can't i want a control like that but accepts to specify dynamic file like

    Hi,
    I'm working from the Web UI. This is BSP. Here I add 2 Methods (GET_PDF and SEND_MAIL).
    The GET_PDF gets all data for the form and then sends the FORMOUTPUT to the SEND_MAIL method.
    Here I add the PDF as following:
    First I convert it to BINARY and then I add it as attachment.
    Do I need to add it as another TYPE or ....
    +  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = ip_formoutput-PDF "PDF file from function module
        APPEND_TO_TABLE       = ' '
      IMPORTING
        OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = lt_att_content_hex
      lo_document->add_attachment(
        EXPORTING
          i_attachment_type    = 'PDF'
          i_attachment_subject = 'Your appointment Details'
          i_att_content_hex    = lt_att_content_hex ).+
    Kind Regards,
    Maarten

  • Prevent VideoDisplay from loading the entire video

    Hello!
    I want to use VideoDisplay components just to show the first frame of the videos, as a preview. So, what I do is
    video.autoPlay = false;
    video.autoDisplayFirstFrame = true;
    But the problem is that they start downloading the entire videos. I've read some topics and docs and I feel that there is a way to avoid it
    For example, I've tried this line:
    video.mx_internal::videoPlayer.bufferTime = 1;
    But nothing changes. Any suggestions, please?

    for that, you should make a poster image so you don't start your video at all.  depending on your cs version, the flash ide can do that for you.
    you can stop the video stream using the flvplayback class using the getVideoPlay() method but i'm not sure how to do that with the video class.  check to see if you can access the video player and execute a close() method to stop the stream.

  • 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!

  • Dynamic Playlist for streaming video

    This is my first attempt at building a dynamic playlist for
    streaming flash video and I'm following the tutorial at
    "macromedia.com/devnet/flash/articles/video_player.html". I've
    changed the paths to my FMS and loaded the video files to the
    applications directory of the FMS (flash_applications/videosource).
    The thumbnails load and the player skin loads but the videos do not
    load when I click on the thumbnails.
    I've read the earlier post about this same issue. I followed
    the advice from that post and reloaded the 'main.asc' file from my
    Flash 8 program files but the video still does not play.
    Here is a link to the site so you can see the problem:
    http://media.us.elsevierhealth.com/videosource/VideoSource1.swf
    My FMS is 'media.us.elsevierhealth.com'
    I believe my code is correct and I believe the paths I've
    created are correct. If someone could review my code and check the
    path info I would appreciate it. Here is the code from
    'VideoSource1.as'
    import mx.video.*;
    //Set up the list box, call function VideoThumb to create the
    actual thumbnails
    list.rowHeight = 70;
    list.cellRenderer = "VideoThumb";
    list.selectable = true;
    //create new empty listener object
    listListener = {};
    nc = new NetConnection(); //create a connection
    nc.connect("rtmp://media.us.elsevierhealth.com/videosource");
    //connect to FCS (nav.attributes.url)
    ns = new NetStream(nc); //create a stream
    ns.connect(); //connect the stream
    nc.connect("rtmp://media.us.elsevierhealth.com/videosource");
    var stream_ns:NetStream = new NetStream(nc);
    stream_ns.play("video2.flv");
    // Create function to trace all the status info.
    function traceStatus(info) {
    Message.text+="Level: " + info.level + " Code: " +
    info.code+"\n";
    } // Assign this function to onStatus handlers when you
    create objects.
    //Function to handle what happens when an item in the list is
    selected
    listListener.change = function( evtobj ) {
    var nav = list.dataProvider[list.selectedIndex];
    var reset = true;
    for ( var i = 0; i < nav.childNodes.length; i++ ) {
    var stream = nav.childNodes
    if ( stream.nodeName == "stream" ) {
    attachMovie("FLVPlayback", "my_FLVPlybk", 10, {width:320,
    height:240, x:90, y:100});
    //center the FLVPlayback component when FLV is ready to play
    var listenerObject
    bject = new Object();
    listenerObject.resize = function(eventObject
    bject):Void {
    //center video in playback area
    newx = (460 - my_FLVPlybk.preferredWidth)/2;
    newy = (470 - my_FLVPlybk.preferredHeight)/2;
    my_FLVPlybk._x = newx;
    my_FLVPlybk._y = newy;
    my_FLVPlybk.addEventListener("resize", listenerObject);
    listenerObject.ready = function(eventObject
    bject):Void {
    my_FLVPlybk.setSize(250, 350);
    my_FLVPlybk.skin = "ClearExternalAll.swf";
    my_FLVPlybk.clear();
    my_FLVPlybk.contentPath =
    "rtmp://media.us.elsevierhealth.com/videosource/stream/_definst_/"
    + stream.attributes.name+".flv";
    my_FLVPlybk.autoSize = true;
    trace(my_FLVPlybk.contentPath);
    reset = false;
    //Add an event listener on the list, when it triggers, run
    the listListener function to repopulate the list
    list.addEventListener("change", listListener);
    //Function that loads the XML file, parses it, and builds the
    list of available video clips
    var xmllist = new XML(); //setup a variable to hold the XML
    xmllist.ignoreWhite = true;
    xmllist.load( "playlist-demo-1.xml" ); //load the XML file
    //The following gets called when the XML has been loaded
    xmllist.onLoad = function( status ) {
    if ( !status )
    trace( status );
    var entries = this.childNodes[0];
    var playlists = {};
    var nav = [];
    for ( var i = 0; i < entries.childNodes.length; i++ ) {
    var entry = entries.childNodes;
    if ( entry.nodeName == "listitem" )
    //builds array of video clip names
    playlists[entry.attributes.name] = entry;
    else if ( entry.nodeName == "menu" ) {
    //builds array of available videos
    for ( var j = 0; j < entry.childNodes.length; j++ )
    nav[j] = playlists[entry.childNodes[j].attributes.name];
    } //end else if
    } //end if
    //sends the array of videos to the listbox UI
    list.dataProvider = nav;
    } //end xmllist.onload
    Any advice or troubleshooting will be appreciated. Thanks in
    advance.

    I just used the server on Windows (as opposed to linux) and
    it worked great. So the issue, at least for me and my issue (could
    see the thumbnails, couldn't play the video) was windows vs. Linux.
    I guess the linux version doesn't work with this exact script. Now
    to put together something of my own to test to see if the linux
    version works right.

  • Loading Flash Video through XML

    Hello,
    I have an Flash gallery that loads dynamic content from an
    XML file. I'm trying to display a flash movie in the main display
    section, so when a user clicks a thumbnails the corresponding video
    would play in the main display area. Right now the thumbnails are
    displaying wonderfully but when I try to load an external swf file
    using the loadClip() method, that itself is the the container of an
    FLV(01.swf + 01.flv), the video doesn't play. Nothing loads. But
    the funny thing is I tried to load a simple swf file and it loads
    fine. I'm guessing it has to do with the video. There's some
    drawback to loading flash videos in this manner. I've attached the
    code, and would appreciate any help. Thanks.

    check the path to your video. it should be relative to the
    _level0 swf's embedding html.

  • Multiple FLVs loaded properly

    Ok,
    On my main timeline i have some buttons. When you click a button you are diverted to the a frame label on the main timeline.
    When the timeline stops at say frame 2 an flv is loaded into an empty movie clip on the main stage.  If you click on button 2, same thing. So in total I have about four FLV's that play when a button is pushed. If i keep clicking my buttons to test the smoothness of my flv's, after about three clicks from navigating between my frames/loaded flvs, my entire main movie becomes slower.
    Each FLV is about 5mb.
    Below is the code that gets initated when I click my button and am taken to that frame. My question is this, if i'm jumping between FLV's at every button click is the FLV that played first still playing and causing the entire main movie to slow down? Is there a better way to manage this? Do I have to unload the movie being played when i click? I'm trying to see if there an more efficient way to have smooth streaming from my flv. The flv that is getting initated is simply looping when it's done and servers a 'moving background'.
    is there something else i can implement into my code that will keep my loaded flv's playing smoothly? Thanks,
    this is the code on the main timeline that loads my external swf that will load the FLV
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("theexternal.swf");
    myLoader.load(url);
    This is the code that resides in the external SWF that will initiate the FLV.
    import fl.video.*;
    function onFLVComplete(event:VideoEvent):void {
          event.target.play();
    swl.addEventListener(VideoEvent.COMPLETE, onFLVComplete);

    ok,
    so you are saying that the "unloadAndStop() is a Loader method" should be placed on the main timeline where my button is pointed to instead of inside the button?
    example.
    my button that points to frame 2 of the main timeline will also load the flv. Frame 2 in my main timeline simply has a stop(); action
    How does the code look if i want to unload the physical movie that i created called 'night_mov'

  • AS3, 33rd FLV loaded loses sound: with solution

    Loading FLVs into an flvplayback component, the 33rd FLV
    loaded is silent, and no FLVs loaded after this will have sound.
    I had assumed that as the instance was leaving the stage and
    it's parents etc were being deleted, and there were no persistent
    references to the content, the player would deal with garbage
    collection.
    It seems this is not the case.
    I don't know why the 33rd is the one to fail, but I guess 32
    might be the maximum number that work?
    So, if loading multiple FLVs into your movie, remember to
    manually close the FLVs once they are finished, before loading the
    next one.
    I used
    myFlvPlayback.getChildAt(0).close();
    you could also use
    currentVideoPlayerIndex =
    myFlvPlayback.activeVideoPlayerIndex;
    myFlvPlayback.closeVideoPlayer(currentVideoPlayerIndex);
    but I found that this errors when you have only loaded one
    video, as you can't closeVideoPlayer where the current index is 0.
    I can't find anywhere in the documentation that states that
    you can only load a maximum of 32 videos into the player, perhaps
    it's a sound channel limitation? It would have been helpful for
    there to be a note of it in the help files!
    Maybe I should have known to manually clean up anyway, but
    hopefully this will save a few people a few hours of head
    bashing.

    Good question!
    They are all being loaded into a single component. However,
    the component is in a MC being attached dynamically using "new
    VideoPanelClass()" (the name of my specific class for the MC that
    includes the FLVPlayback), and is being removed from the stage in
    between loadings - not just for a split second but for significant
    lengths of time. I had imagined it would count as a new component
    each time, but it seems this is not the case, despite it tracing as
    a new instantiation of the parent MC each time.

  • Dynamic FLV selection

    Hello,
    I am using Flash CS4 and I created a video player with the
    Import Video function that links to an FLV video on my web server.
    It works fine, however I have several FLV files that I want to be
    able to select at runtime. I don't want the FLV video target
    hardcoded into the SWF file like it appears to be now. I want to be
    able to specify it in the calling HTML file somehow.
    How do I make it so that the SWF does not have the video
    filename hardcoded into it, and can take the filename as a
    parameter instead? Then how do I pass it that parameter from the
    HTML page?
    Thanks,
    Jim

    quote:
    Originally posted by:
    xchanin
    //You could use a flashvar to pass the URL into your .swf.
    <PARAM NAME=FlashVars
    VALUE="videoURL=http://yourdomaon.com/video.flv">
    //create a variable that will hold the value from your flash
    var:
    var videoPath =
    reference.root.loaderInfo.parameters['videoURL']
    use this variable to load your video
    I tried this, I put the flashvars in the html and I put the
    var videoPath line into the layer 1 frame 1 action script, but the
    video does not load. The progress bar under the video just shows a
    candy cane striped pattern when I load the page. I also left the
    contentPath parameter blank in the FLVPlayback instance.
    Any idea what might be wrong?

  • Load youtube video in a movieclip

    hello all,
    i m trying to load youtube videos in my flash8 application.i
    m using this code:--
    System.security.allowDomain("
    http://www.youtube.com")
    System.security.loadPolicyFile("
    http://www.youtube.com/crossdomain.xml")
    this.createEmptyMovieClip("image_mc",
    this.getNextHighestDepth())
    var mclListener:Object = new Object();
    mclListener.onLoadInit = function(target_mc:MovieClip) {
    target_mc._x = 0;
    target_mc._y = 0;
    var image_mcl:MovieClipLoader = new MovieClipLoader();
    image_mcl.addListener(mclListener);
    image_mcl.loadClip("
    http://www.youtube.com/v/818hQQmxHaM&rel=1",
    image_mc)
    This code is working fine but as i try to load other youtube
    video on same movieclip on a button click event it loads nothing.
    //code written on click event of button:--
    on(click)
    _root.image_mcl.loadClip("
    http://www.youtube.com/v/5-43Xu6wrK0&rel=1",
    _root.image_mc)
    please help me on this issue.
    thanks in advance

    thanks for your reply.I have updated my code as u told me but
    my problem is still same as before.
    First time youtube video loaded properly but if i try to load
    another video on same movieclip,it display flv player with its
    control bar, but no flv file loaded on it.
    please help me again
    thanks in advance

  • Dynamic Playlist for Streaming Video Errors

    I'm using Lisa Larson's tutorial on the adobe website to
    create a dynamic playlist from an XML file to work with out FMS
    server. After playing around with it for an hour I finally got it
    to connect to the FMS and generate the thumbs but it won't stream
    any of the videos. When I click on the list item the video player
    comes up but doesn't load a video. Any ideas? The live log in the
    FMS console is giving me this error: "
    Error:
    command msg sent before client connection has been
    accepted."
    This is the link for the tutorial
    http://www.adobe.com/devnet/flash/articles/video_player.html

    i don't even get to see the thumbnails! i've left one of the
    original addresses in the xml, and that one always loads, both
    thumbnails and stream. however, every other one i've changed a
    number of ways, i never get any thumbnails nor streams. while
    testing the movie with flash 8, i get the output that the first
    connection (the original one) is a success, but all others are
    failed. in the xml, do you have to put the port in too? cause i've
    tried that, but it makes no difference whatsoever...

  • Entire video isn't showing up after download into imovie from flip cam

    Hi there....
    I'm a new user to imovie, so am having a little trouble here....
    After I load a video from my flip cam, the program says it has downloaded the entire video (say 22') then when I go to put a project together only a short part (like 9 mins) is actually shown and available to edit.  Where did the rest go? Are there settings I need to change in order to get access to the rest of the original video. 
    Any help would be greatly appreciated!!
    -lynn

    Mac OS X
    Version 10.6.8
    iMovie '09
    Flip Video
    mino HD

  • Dynamic flv contentPath

    Hi all,
    I am writing a script that loads the path to an FLV file and
    loads it in an FLVPlayback object. The FLVPlayback object is placed
    inside a MovieClip called "theVideo" and has the instance name
    "player".
    If theVideo is already on stage when the movie loads, this
    works fine. The problem is that until I actually load the FLV file,
    the FLVPlayback object is displayed with the "loading bars" in the
    timeline, and I am guessing this is wasting CPU cycles.
    If I try to load the MC when I am ready to load the video,
    the MC loads but I cannot seem to set the contentPath since I get
    these "loading bars".
    I checked my path and I know it is correct since it works
    with the first option, but I would need to do this the second way.
    Would anyone know why I am having problems setting the contentPath
    parameter?
    Thanks for the help

    A couple of observations, maybe nothing to do with your
    problem:
    1) you attach a movieClip to _root, but you use a
    getNextHighestDepth of a different movieClip (contentMC ???
    2) did you just quickly type this from memory or did you
    copy/paste the code? You have spaces in front of and after "root."
    Other than that, I haven't understood what you mean with
    "loading bars in the timeline". Maybe you can expand on that a bit?
    Good luck
    Wolf

  • 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);

Maybe you are looking for