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

Similar Messages

  • 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

  • Dynamic Flv percentage preloader

    Can anyone tell me where I can find a tutorial or somt to
    produce a percentage preloader for dynamic Flv's
    I have tried wot I know on hte subject but to know avail
    thanks for your help
    kev

    Hi
    Can you elaborate on the phrase 'Dynamic FLv's', then maybe
    we can get closer to an answer.

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

  • Dynamic FLV content path

    I'm currently displaying a Flash Video (instance name = vid)
    through a movie clip (instance name = top) in my FLA with this
    actionscript:
    top.vid.contentPath = "0207.flv";
    It works fine. But now I need to figure out how to make the
    content path dynamic. A variable will be added to the SWF's parent
    HTML file like this:
    <param name="movie" value="test.swf?videoDate=0207" />
    The goal is to make an SWF file that can play any FLV file
    based on the value of the videoDate variable. So if videoDate=0207,
    then the SWF will play 0207.flv. If videoDate=0307, then the SWF
    will play 0307.flv. And so on.
    I can see how this should work, but I'm just not enough of an
    actionscript badass to know exactly how to code it. In plain
    English, I think I need something like this:
    videoArray = value of videoDate variable from HTML + .flv
    extension
    top.vid.contentPath = videoArray
    Any help would really really be appreciated.

    videoArray = videoDate + ".flv";

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

  • Dynamic FLV/MPG - Video Player

    Hi guys,
    Thanks in advance.
    I am trying to create an online video player of short
    videoclips.
    I have an array, which has around 10+ FLV and a few MPG
    videoclips.
    The requirement-
    - Dynamically load and display these movieclips - one after
    the other.
    - After the current movie has finished playing, the next
    movie, should
    automatically start.
    - After the last movie ends, it should loopback and start
    from the first
    clip.
    Kindly help.
    Thanx again.

    You will need some server side script to be the mediator
    between your database and the SWF. Use the FLVPlayback components'
    source method to play the FLV files you want.

  • Dynamic flv player with auto resize based on content

    Hi,
    I would like to build a .flv player which can accommodate 7
    different video sizes.
    This will probably be made using php and xml to dynamically
    control content.
    What I would like to know is if and how it is possible to
    have a holder.swf (just looks for variables to display the flv)
    that can automatically resize based on the flv dimensions. I dont
    want any kind of browserscreen resolution resizing of content, just
    an swf that will change its size from say 320x240 to 450x253
    depending on the dynamically loaded flv.

    The same thing has been reported for the T410. You can see how to fix it here:
    http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/T410-unstable-screen-brightness/m-p/212492#...
    It appears to occur anytime you are on battery and the intel graphics power plan is set to anything other than 'maximum performance.' It's pretty subtle, but really annoying when it happens.

  • Dynamic FLV playlist

    Hi guys,
    Im trying to create a dynamic streaming FLV playlist using
    the list component and Flash Communication server 1.5. Ive tried
    modifying both guides by Lisa Larson (the one for FMS2 and the one
    for FCS1.5) but whenever I load the completed swf nothing plays.
    Occasionally the previews show in the list component but will just
    not play.
    Can anyone point me in the right direction?
    Thanks
    g

    Search for JW player on Google and look at that.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Dynamic Flv Player

    Hi anyone & all,
    Iam using this files for FMS testing.
    Sample
    file which iam using now
    Everything is working fine, but i need some more features.
    (i) when published i need to play the first flv in the list.
    (ii) when i click next button it should skip to the next flv.
    (iii) How can i change Flvplayback skin.
    (iv) I need a fullscreen option button in the control tab.
    Please any one help. Thanks in advance.
    Jayaraj D
    email : [email protected]:disgust;:smile;

    You will need some server side script to be the mediator
    between your database and the SWF. Use the FLVPlayback components'
    source method to play the FLV files you want.

  • Dynamic FLV StreamName using MySQL

    Hi there,
    I am trying to display a *.flv movie which has its filepath drawn from a php MySQL dataset
    The recordset works ok and is tested with just a text output of the filename but i cant get the flv player code right. 
    <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Corona_Skin_2&amp;streamName=../videos/art istvideos/<?php echo $row_selectedcharactervideo['videofile']; ?>;autoRewind=true" /> 
    or do i need to set this as a $videofile then insert that somehow am completely n00b at this one. 
    Any help is appreciated 
    Cheers

    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!

  • Flv dynamic in asp page

    Good Morning,
    i have a question:
    how i can to insert a dynamic flv in a asp page..(path is
    insert in a
    column of database)?
    When i try whit "insert flash video function>insert from
    dati source", an
    error occour:
    url can't insert because ther is not valid caracter"
    This is the string thath i try to insert..
    <%=(video.Fields.Item("videfile").Value)%>
    where "video" is the recordset and "videfile" is the path of
    video
    flv(..\video\xxx.flv)
    there is some link where i find a solution..?
    Tanks
    Paolo
    La mia Cartella di Posta in Arrivo è protetta con
    SPAMfighter
    4281 messaggi contenenti spam sono stati bloccati con
    successo.
    Scarica gratuitamente SPAMfighter!

    FLV is the video file itself. You need a player to actually
    play the
    FLV. The player is an additional SWF file. Dreamweaver
    generates its own
    SWF player, which must be uploaded to the server along with
    the
    Javascript file it creates to make the whole thing work.
    Alternatively,
    you can use another FLV player (such as Flowplayer) and
    manually insert
    the correct code. Still - you need to upload all supporting
    files such
    as the SWF player. Make sense?
    Flash (the program) doesn't enter the picture at all unless
    you are a
    Flash geek and have created your own player (SWF).
    Alec
    Adobe Community Expert

  • FLV & PHP

    Hi Flashers,
    I'm working on a flash video project and have come across an
    issue whilst requesting flv files dynamically. I was hoping you
    might be able to help.
    Basically, the swf grabs corresponding video files using
    flashvars provided by PHP. It seems when ever a question mark is
    added into the path, the path breaks and flash either doesn't know
    how to locate the file or it doesn't know what to do with it.
    flashvar from PHP:
    url=http://localhost:8888/includes/retrieve.video.php?videoID=9
    Actionscript:
    flv.contentPath = url;
    A few ideas I've tried:
    It will work if I insert a static url in the PHP but as soon
    as I implement variables (question mark or &), it doesn't know
    what to do!
    I've also tried urlencode to pass the special characters
    (questions marks, & etc.).
    I've tried adding .flv to the end of the path using php and
    then in the actionscript, no luck.
    Whilst testing, i was using absolute paths. In apache, I've
    noticed flash adds FLVPlaybackVersion=version to the url request.
    I've fixed this by using relative urls....again, no luck.
    Any ideas or help would be greatly appreciated!!
    Best regards,
    Luke.

    Using Apache web server, we managed to find the work around.
    This is the url we need to request but flash doesn't handle
    file requesting with special charters - ? or &. so this wont
    work:
    http://localhost:8888/includes/retrieve.video.php%3FvideoID%3D9
    But if we use this url, it works:
    http://localhost:8888/includes/retrieve.video.php/9/f
    Adding this to your php file, will do the trick.
    $vars = explode("/", $_SERVER["PATH_INFO"]);
    $_GET['videoID']=$vars[1];
    $_GET['type']=$vars[2];
    So at the end the url you request is
    http://localhost:8888/includes/retrieve.video.php/9/f

  • Cue Points Lost When FLV URL Is Relative

    hi all
    i've got an flv which i have put a cue point in at the end
    (to launch a new swf when the flv is finished). everything works
    fine but my contentPath displays an absolute url. when i change
    this to a relative url the cuePoints field goes blank and loses the
    information previously inserted.
    i need to upload the swf to a proof, development and live
    server so i need the url to be relative, but retain the cue point
    info.
    any help greatly appreciated.
    ;-)

    ok so i managed to get it working by bypassing the cue points
    in the flv, putting the following actionscript into the timeline
    and changing the flv contentPath to a relative location. while this
    works fine for a single action at the end of the film im still
    unsure what to do to retain the flv cuepoints when specifying a
    relative contentPath... any ideas?!
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void {
    // insert event-handling code here
    my_FLV.addEventListener("complete", listenerObject);

  • Flv dinamic in asp page

    Good Morning,
    I have a question:
    How i can to insert a dynamic flv in a asp page..(path is
    insert in a
    column of database)?
    When i try whit "insert flash video function>insert from
    dati source", an
    error occour:
    url can't insert because ther is not valid caracter"
    This is the string thath i try to insert..
    <%=(video.Fields.Item("videfile").Value)%>
    where "video" is the recordset and "videfile" is the path of
    video
    flv(..\video\xxx.flv)
    there is some link where i find a solution..?
    Tanks
    Paolo
    La mia Cartella di Posta in Arrivo è protetta con
    SPAMfighter
    4513 messaggi contenenti spam sono stati bloccati con
    successo.
    Scarica gratuitamente SPAMfighter!

    FLV is the video file itself. You need a player to actually
    play the
    FLV. The player is an additional SWF file. Dreamweaver
    generates its own
    SWF player, which must be uploaded to the server along with
    the
    Javascript file it creates to make the whole thing work.
    Alternatively,
    you can use another FLV player (such as Flowplayer) and
    manually insert
    the correct code. Still - you need to upload all supporting
    files such
    as the SWF player. Make sense?
    Flash (the program) doesn't enter the picture at all unless
    you are a
    Flash geek and have created your own player (SWF).
    Alec
    Adobe Community Expert

Maybe you are looking for