BufferTime for FLVPLayBack

I am working with Playing FLVPlayBack Video. i was wondering about what is best practice to use buffer time? and how exactly buffer behaves while video is in play , pause and stop states?
If i set my FLVPlayBack instance buffer time to 30 sec,
Is it contiguously keep 30 secs video in buffer. for e.g
if video is on 15 sec , then it will be having upto 45 sec stream in buffer ,
for 25 it will have 55 sec stream ,
for 1.10 it have 1.40 sec stream and so on.. ??
do it behave same as of in play  , in pause and stop states . and if behaves diff. then what is the diff.

I thought that might be the answer, as it is the answer for
the AS 2.0 way of doing it.
I figured the AS 3.0 equivalent would be something much more
complicated and crazy.

Similar Messages

  • Need Preloader for FLVplayback Component

    Hi,
    I'm playing external .flv videos using the 'FLVplayback'
    component. My client's complaining that they stall and stutter a
    bit when they start to stream, and wants to know if I can create a
    preloader for them.
    Can anyone help or point me in the right direction to create
    preloaders for this component? Since the .flv is not on the
    timeline, I don't know where to begin. I found some info on this in
    the Flash Help files, but it's a little over my head.
    Thanks very much

    Hey metrov,
    ActionScripting is the way to go for this situation. Try this
    link (hope it helps)...
    http://www.actionscript.org/forums/showthread.php3?t=105158
    Jaythan

  • Using a SMIL file for FLVPlayback

    Hi All,
    I am using an SMIL file referred to a few variable bitrate
    clips, like
    <smil>
    <head>
    <meta base="rtmp:/vod/" />
    </head>
    <body>
    <switch>
    <video src="mp4:sample1_150kbps.f4v"
    system-bitrate="150000"/>
    <video src="mp4:sample1_500kbps.f4v"
    system-bitrate="500000"/>
    <video src="mp4:sample1_700kbps.f4v"
    system-bitrate="700000"/>
    <video src="mp4:sample1_1000kbps.f4v"
    system-bitrate="1000000"/>
    <video src="mp4:sample1_1500kbps.f4v"
    system-bitrate="1500000"/>
    </switch>
    </body>
    </smil>
    The Adobe
    live
    docs state that it could be integrated into FLVPlayback
    component.
    My question: How can I add a switch between diff bitrates
    clips to a player skin? There is no switch for bandwidth as such.
    When I add a SMIL list, it works fin, but plays only the 1st
    clip.
    How can i switch to the 2nd etc?
    Thanks

    It didn't work. I still get this error:
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/InternAdressen-InternAdresProj-context-root/internadres.jsp
    Exception:
    java.lang.NoClassDefFoundError: _InternAdres
         java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, byte[], int, int, java.security.ProtectionDomain)
              native code
         java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain)
              ClassLoader.java:493
         java.lang.Class java.security.SecureClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource)
              SecureClassLoader.java:111
         java.lang.Class oracle.jsp.app.JspClassLoader.loadClass(java.lang.String, boolean)
              JspClassLoader.java:682
         java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
              ClassLoader.java:255
         oracle.jsp.runtimev2.JspPageInstFacade oracle.jsp.runtimev2.JspPageInfo.getInstFacade(oracle.jsp.provider.JspClassProvider, javax.servlet.http.HttpServletRequest)
              JspPageInfo.java:160
         oracle.jsp.runtimev2.JspPageInstFacade oracle.jsp.runtimev2.JspPageTable.getInstFacade(javax.servlet.htt[i]Long postings are being truncated to ~1 kB at this time.

  • Custom skin for FLVPlayback

    Hi ..
    I am trying to create a custom skin for the FLVPlayback componenet... I was wondering if someone could point me in a direction of a comprehensive tutorial..
    Thanks a bunch!!

    Hello,
    I have been attempting to use this code with the FLVPlayback
    component - when tested, the component and placeholder image both
    load, but once the user hits the play button I get an error code:
    ArgumentError: Error #2025: The supplied DisplayObject must
    be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at video_fla::MainTimeline/removePF()
    The video still plays, but the placeholder image doesn't get
    removed.
    This is the actionscript I'm using:
    import fl.video.VideoEvent;
    var pfContainer:MovieClip = new MovieClip();
    myPlayer.addChildAt(pfContainer, 1);
    var pf:Loader = new Loader();
    pf.load(new URLRequest('slatepf.png'));
    pfContainer.addChild(pf);
    pfContainer.x = 0;
    pfContainer.y = 0;
    myPlayer.addEventListener(VideoEvent.PLAYING_STATE_ENTERED,
    removePF);
    function removePF(e:Event):void{
    removeChild(pfContainer);
    Any help would be appreciated. Thanks!

  • Skin for flvplayback?

    im looking for a skin whitout rounded corners and that looks more discreet and square.
    does someone have a clue where to find such a skin for the flvplayback with this kind of graphic?
    for flash cs4 ac 3.0
    thanks for taking time

    Here is a $6 skin pack from Flash-Den that you could try:
    http://flashden.net/item/flvplayback-skin-pack-v1-as3/20804
    One on Flash-Components:
    http://www.flashcomponents.net/component/flash_flv_playback_component_black_finish_skin_bl ue.html
    A tutorial about customizing the video component skins:
    http://www.adobe.com/devnet/flash/articles/custom_flvcomp.html
    Hope they help!

  • What is the default bufferTime for the OSMF player?

    Hi,
    I want to know what is the default buffer time for the OSMF player. And can we set it using NetMocker package using netStream.bufferTime? And when we set it once does it remain that afterwards?
    Regards,
    Amit

    NetMocker is used for unit testing OSMF features that depend on NetStream, it's not something that would be of much use in a production application.
    OSMFPlayer (and OSMF) uses the default values for the buffer for  progressive and RTMP streaming video.  For HTTP streaming video, OSMFPlayer (but not OSMF) uses an adapative algorithm to set the buffer (see HTTPStreamingNetLoaderWithBufferControl). You can set the buffer time via MediaPlayer.bufferTime, and it should retain its value.

  • Addeventlistener for FLVPlayback VideoError

    Hello
    I am really stuck on finding a solution to detect when a connection problem is present on the FLVPlayback component:
    If I try the following:
    V1.addEventListener (VideoError.NO_CONNECTION, sourceFailed);
    function sourceFailed (e:VideoError):void
        var vError:uint = 1000;
        if (e == VideoError(vError))
            trace("3 - VideoError: " + e)
           trace("3b - VideoError: " + e)
    I get the error: Scene 1, Layer 'Scripts', Frame 1, Line 96 1067: Implicit coercion of a value of type uint to an unrelated type String.
    can anyone suggest a code snipplet that works?
    Many many thanks

    apologies, but in the code above gives these errors:
    Scene 1, Layer 'Scripts', Frame 1, Line 105 1061: Call to a possibly undefined method toString through a reference with static type fl.video:VideoError.          (line 105 is :  trace("3 - VideoError: " + e.toString());)
    Scene 1, Layer 'Scripts', Frame 1, Line 108 1061: Call to a possibly undefined method toString through a reference with static type fl.video:VideoError.          (line 108 is :  trace("3 - VideoError: " + e.toString());)
    Scene 1, Layer 'Scripts', Frame 1, Line 96 1067: Implicit coercion of a value of type uint to an unrelated type String.                                                                     (line 96 is: V1.addEventListener (VideoError.NO_CONNECTION, sourceFailed);)
    The issue seems to be in the VideoError listener, even leaving just something like:
              V1.addEventListener (VideoError.NO_CONNECTION, sourceFailed);
              function sourceFailed (e:VideoError):void     { trace ("VideoError") }
    Still gives the eror: Scene 1, Layer 'Scripts', Frame 1, Line 96 1067: Implicit coercion of a value of type uint to an unrelated type String.

  • AS3 - 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place; 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true - ActionScript 3 - flash cs3 cs4

    Hi folks,
    Ronny's here again on forums, having particularly 2 (two) questions/problems to resolve:
    1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place
    2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true
    attached is the .zip file (as3_Countdown Timer_ver 1.0.1_by Ronny Depp.zip) with all flash source files containing:
    a) The FLash Source (file: timer_module.fla) - (FLA flash source file - Flash CS3 Professional, Flash Player 9, actionscript 3.0)
    b) com.othenticmedia.utils.dateAndTimeManagement package including 2 .as actionscript 3.0 Class files.
           i) com.othenticmedia.utils.dateAndTimeManagement.DateAndTimeManager Class in the said package. (file: DateAndTimeManager.as)
           ii) com.othenticmedia.utils.dateAndTimeManagement.CountdownTimer Class in the package. (file: CountdownTimer.as)
    c) The compiled SWF file version of this Application's blueprint. (file: timer_module.swf).
    What i need to confirm is: ........................................................ see the next post of mine. (for Problems  need to be Resolved)

    Problems to Resolve:
    Problem#1) - Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place.
    Problem#2) - Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true;
    Problem#1 Description:
    I need to pinpoint the Logical TimeSync Exception, i am still unable to figure out. That is I'm using a webservice in my Application to Synchronize the Time with the actual ET (eastern time) with accomodation of auto-adjustment for EDT GMT-4 (eastern daylight time) & EST GMT-5 (eastern standard time), times. I am using the zipcode: "10012" to pass it to the Web Service in urlRequest object, to retrieve the Current ET eastern time according to EDT & EST time settings for Manhattan/Brooklyn areas or others within  New York, NY 10012.
    Currently the Web Service is returning accurate date/time based on local EDT GMT-4 daylight time.
    Is there some defined set of dates for EDT & EST times for New York region that I can check for to ensure the correct Dates/Times for Eastern Time in New York area ??? I am using NY zipcodes because i am sure to get correct ET values.
    The Major Problem Part: is I need to correct the time by 2 seconds or approx. 2 secs, some millisecs.
    When I retrieve the Time Value from WebService, it lags behind for 2 seconds as compared to DateObj i create using computer's local time, on my Windows XP Service Pack 2 with Automatic Updates turned-on. And I'm sure about my Windows will be having latest updates for Time Management already installed. I also added the 2 secs. to the TimeSync(ed) Date to make correction to this Date obj.
    I call my custom fucntion addSeconds(dateObj:Date, secs:int) to add 2 seconds to the Date by Converting Seconds to Milliseconds.
    Please comb through the as code in files attached and Help Me Out !!!
    Problem#2 Description:
    Secondly I need to Detect the End of Stream state while using FLVPlayback component, an rtmp:// live Stream from FLASH MEDIA SERVER.
    I need to Play a YuMe Post-Roll Ad when Steam Finishes/Ends.
    Live Broadcast Stream Event starts every night on Wednesdays & Saturdays exactly  at 10:59 PM EDT GMT-4.
    Live Events only Streams/Broadcasts the stream for 50secs. exactly. When [playback stopped] it plays a PostRoll Ad and after the CountdownTimer again comes back to life. The Next upcoming Event is calculated & the Countdown begins until Next Event's time/date is reached.
    Here is the  code on the frame 1 on the MainTimeline: (rest of the params like source, volume, skinAutoHide are Set using Property Inspector for FLVPlayback instance on Stage)
    //myStream instance of FLVPlayback is on the Stage
    myStream.isLive = true;// Frame 1 Actions in the FLA
    myStream.addEventListener(VideoEvent.COMPLETE, onEndOfStream);
    myStream.addEventListener(VideoEvent.STATE_CHANGE, onState);
    myStream.addEventListener(String(VideoError.NO_CONNECTION), onStreamError);
    myStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    /*if(myStream.stopped){
         trace("tracy: "+myStream.state);
    } else if(myStream.state == VideoState.STOPPED){
         trace("tracy: "+myStream.state);
    function onStreamError(event:VideoError) {
         trace(event.code + "\n\t" + event);
    function onState(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function onEndOfStream(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function netStatusHandler(event:NetStatusEvent):void {
         switch (event.info.code) {
              case "NetConnection.Connect.Success":
                   //connectStream();
                   break;
              case "NetStream.Play.StreamNotFound":
                   trace("Stream not found: "/* + myStream.source*/);
                   break;

  • FLVplayback Seekbar problem

    Hello,
    I'm having issues with the seekbar handle for FLVplayback
    components. I have separate videos in separate movieclips and when
    I click to a new one the seekbar handle gets left from the previous
    one. I've noticed other people having the same problem but haven't
    found a solution as yet, can anyone help? Is there code to prevent
    this and if so would it go into the button, component or AS frame??
    Any help would be greatly appreciated.
    David

    That is my plan to use playheadupdate. I have been able to add a mouse click to the seekbar itself and can seek the the correct place in the flv on demand. My problem is that I am unable to display the handle rectangle.  I am also unable to add a mouse event to the SeekBarHandle class I have.

  • Flash CS3 FlvPlayback Skin Stop Button is working as pause

    Hi,
         I am using the skin for FlvPlayback player I have selected the sking from given list of skin.
         The issue is When I select the skin which is having Stop Button, Stop Button is not stopping the video is it just pause the video and after click of play button it should start from begining of the video which is expected bevhaviour of Stop button.
        any one can help me to resolve this issue.
    Thanks in advance.
    Sangati

    Yup, that is how it works. You can't control which state a button is in. So when you click on it, it will go to the down state and when you let go it will go back to over (or up if you release outside).
    Not sure exactly what the "fix" is. It depends upon what you are trying to do. Generally you would need to use MovieClips instead of buttons with event handlers to tell you "button" what to do. Very few people I know actually use buttons.

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

  • FLVPlayback component connection

    I would like to specify my own NetConnection instance for
    FLVPlayback connection to Flash media Server 2. Is this possible,
    perhaps by using the FLVPlayback.ncMgr property?
    Thanks in advance as this is really stalling development of
    my application, which uses multiple instances of FLVPlayback over
    multiple pages... therefore I really need just one NetConnection to
    FMS2.
    Please note that I'm looking into the FLVPlayback component
    as a more robust player inplace of my NetStream setup.
    I really am stuck on this and need some help.

    apologies, but in the code above gives these errors:
    Scene 1, Layer 'Scripts', Frame 1, Line 105 1061: Call to a possibly undefined method toString through a reference with static type fl.video:VideoError.          (line 105 is :  trace("3 - VideoError: " + e.toString());)
    Scene 1, Layer 'Scripts', Frame 1, Line 108 1061: Call to a possibly undefined method toString through a reference with static type fl.video:VideoError.          (line 108 is :  trace("3 - VideoError: " + e.toString());)
    Scene 1, Layer 'Scripts', Frame 1, Line 96 1067: Implicit coercion of a value of type uint to an unrelated type String.                                                                     (line 96 is: V1.addEventListener (VideoError.NO_CONNECTION, sourceFailed);)
    The issue seems to be in the VideoError listener, even leaving just something like:
              V1.addEventListener (VideoError.NO_CONNECTION, sourceFailed);
              function sourceFailed (e:VideoError):void     { trace ("VideoError") }
    Still gives the eror: Scene 1, Layer 'Scripts', Frame 1, Line 96 1067: Implicit coercion of a value of type uint to an unrelated type String.

  • FLVPlayback Bandwidth Detection??

    I've searched the web and found very little on bandwidth
    detection for FLVPlayback components UNLESS it's in relation to a
    streaming server. Is there no efficient way to accomplish this with
    a regular server and a few FLVs? The documentation is really thin
    on all of the netConnection stuff.
    Any help or direction would be greatly appreciated. A quick
    example is all I need.
    Thanks Anyone.
    Jim

    Originally, I was trying to detect the bandwidth using the
    method outlined
    here.
    Then, depending on either Lo or Hi bandwidth, define an array of
    associated FLVs to play. The problem I'm having is that when the
    SWF hits the SMIL, it will only play the FLV that's first in the
    list, ignoring any bandwidth attributes.
    I just can't seem to find anything that's definite about
    doing this. The INCManager and associated classes are thinly
    described in the documentation.

  • FLVPlayback with cue Points (2.0)

    HI,
    I'm new to working with cuePoints and listeners. i using
    actionscript 2.0 and i want to make a video clip (called "video")
    to stop playing and become invisible after playing for 30 seconds.
    does anyone no a good cut and dry way to pull this off?
    thanks.

    Xero000,
    > great. that will certainly do the trick.
    > any suggestions on making use out of the 'complete()'
    event?
    > could i use that instead of having to hard code in the
    milliseconds?
    Sure. The events all work the same for FLVPlayback, so once
    you get the
    process, you'll be good.
    var listener:Object = new Object();
    listener.complete = function(evt:Object):Void {
    video.stop();
    video.visible = false;
    video.addEventListener("complete", listener);
    Still assuming an FLVPlayback instance name of "video," the
    above should
    do it. In AS2, there are at least four ways to handle events
    -- much more
    simplified in AS3 -- but the above shows how to do it for
    FLVPlayback.
    You need a generic Object instance, which you may as well
    call
    "listener," because it listens for the events. You'll assign
    a function to
    the complete event, which gets stored as a property of your
    listener object.
    The funtion, in this case, stops, the video and hides it.
    Finally, you subscribe the complete event, and that listner
    object, to
    the FLVPlayback instance.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • FLVplayback Seekbar

    Hello,
    I'm having issues with the seekbar handle for FLVplayback
    components. I have separate videos in separate movieclips and when
    I click to a new one the seekbar handle gets left from the previous
    one. I've noticed other people having the same problem but haven't
    found a solution as yet, can anyone help? Is there code to prevent
    this and if so would it go into the button, component or AS frame??
    Any help would be greatly appreciated.
    David

    Oh! Okay!
    So, I did try your solution. Changed the code to that :
    import fl.video.*;
    import fl.controls.ProgressBarMode;
    var flvDisplay : FLVPlayback;
    var flvSource : String = "videos/P01_Intro.flv";
    var flvCaption : FLVPlaybackCaptioning;
    var flvCaptionSource : String = "intro.xml"
    flvDisplay = new FLVPlayback();
    flvDisplay.skin = "SkinUnderPlaySeekCaption.swf";
    flvDisplay.source = flvSource;
    flvDisplay.width = 757;
    flvDisplay.height = 530;
    flvCaption = new FLVPlaybackCaptioning();
    flvCaption.source = flvCaptionSource;
    flvCaption.showCaptions = true;
    addChild(flvDisplay);
    addChild(flvCaption);
    I temporarily put the code related to the progress bar in comment, so I didn't add it to the post.
    You know what's bizarre? The caption button still doesn't appear! The captions do work though. I just can't turn them off since the button isn't there. :/
    So basically, I return to my first problem : is there any way to "access" the seekbar scroller trough code? Then my first solution would "work".

Maybe you are looking for

  • CMR and Transaction Attribute

    I got two ReadOnly CMP entity beans with a 1:N relationship, and one session facade, all with the TX attribute of NotSupported. When I tried to get the CMR collection in the session bean, WebLogic 6.1 SP3 threw an EJBException saying the CMR collecti

  • Why am I getting Emails from Apple in turkish to an Email-address that isn't used for my Apple ID anymore ?

    Hi everybody, I already apologize if this isn't the right community for my problem.This whole thing is very confusing  so I really hope someone can help me I used Gmail as my official email account and it was also the Email address for my Apple-ID (f

  • Accessing a specific tab and/or region via an URL ?

    Is there a way to change the tab of a page using an URL ? I have the same question concerning the regions of a page (if so it would be working like a frameset) ?My situtation: I have a HTML Portlet containing a custom Menu using Javascript, and I wan

  • Error: Adobe Acrobat 7.0 Standard

    When I try to convert a powerpoint presentation into Adobe PDF I get the error message "Missing PDFMaker files" Then asks "Do you want to run the installer in repair mode"    I have clicked yes. But continues to get the same error message "Missing PD

  • None of my updates except after effects will update

    When I try to transfer a photo from Lightroom to Photoshop, Photoshop will open but I get no picture.  Nor will any image open in Photoshop. I noticed I had an update reminder so thought that might be why.  However none of  my updates will install ap