Buffer full

HI Everybody, I get an error (see attachment)

I don't know who's going to cause this problem. Can someone please proposed no solution or what things should take care to make this problem won't get out.

Thank you

William Lee

William,

without the code, we are unable to pinpoint the reason for this message.

You should look for excessive use of the "generation array" and similar features, because they are known for creating this error by misuse.

hope this helps,

Norbert

Tags: NI Software

Similar Questions

  • Problem reading the buffer full

    I made a simple VI and it works pretty well. The only problem is that when I give it some commands that I can't read all of the buffer. The best example is based on the command 'instr name' the answer is supposed to be "instr name / SO2 Analyzer / monitor SO2" (with the / a new line). However, when I press the button the command execute, I get only the first part of the answer, and then when I press once again I get the second part, and so on. Is it possible to ensure that the whole of the buffer is read?

    Any help is greatly appreciated

    Look for VISA help configure a Serial Port. See the entries called "Termination character allow" and "chariot of termination? When set to true, the option enable playback VISA expires as soon as the tank of the term (default is 0xA or LF character). You will need set the option activate to forgery and just the VISA to the Serial Port bytes.

  • Trigger via exported RTSI1 signal

    Hello

    I have four PCIe6535s and synchronizing with 'sample clock' and 'start trigger' exported via the RTSI line 7 and 1 respectively of one of the rooms, operating in the Master configuration (4) Slave (1-3) with the last Board of the clock and release of the shipment.

    The trigger fires 3 - 5 times on all the boards and then only the master card will trigger and others will not trigger.

    I've also seen when one or two fires and the rest won't.

    Because the captain still fires, may not be the trigger signal quality, but something at the level of the RTSI.

    Where can I find and where to search them?

    Thank you

    OK, found the problem.

    The last Board being display the sample clock, the boards of three slaves from time to time failed at the end of the buffer full (a short sample).

    Now, the solution is to configure the slave clock to use an example less for the output data. The buffer will be short a sample, but at least all the tasks are completed.

    However, it would be nice if the error indicates that the buffer and the sample clock have incompatibility, I would save a day.

  • Video streaming buffering

    Hello I have a problem with my HP pavilion slimline. When I try to show videos of YouTube streaming (youtube for example, yahoo.com, google, com etc...) The video will play for a few seconds/minutes, but then begins the buffering again. I wonder if anyone has had this problem and if there is a solution to the problem. My apologies if I posted in the wrong forum. Please direct me to the right so I have.

    Hello

    Please tell us how your computer is connected to the internet?  What service of speed do you get?

    If the data rate becomes insufficient to keep the buffer full, the buffer is emptied within minutes. In this case, video playback is stopped and a phase rebuffering again.

  • Is there a window display and the data window as in Nuke for sequels?

    Not sure what the best way to Word this, but that's.  I wonder if there is a comparable feature in After Effects to what Nuke called the "showcase" and the data window".  I will do my best to explain my problem.  I'm jumping backwards between After Effects and Nuke.  I used After Effects extensively since version 6.5 to 2005 or 2006.  I've been tinkering with Nuke for years now, but now I'm determined to get competent in it.  One of the features I noticed Nuke who seems to be lacking in After Effects is the "bounding box/display window" that appears as a white dotted line around an image in the display window.

    Right now I'm working on a show that is My.cnf anamorphic linear exr with a deliverable 2158 x 2272 resolution.  There is a pixel 233 pad/mat up and down so that the image is actually 2158 x 1806.  If I open one of these files/shots in Nuke, I get the picture, 2158 x 1806 in the display window with a blank line dotted around her, within the metadata of the node, Nuke reading tab called the "exr/data window.  It's floating in a sturdy white box that defines the full resolution of the photo (2158 x 2272), which includes 233 pixel black padding up and down.  The anamorphic 2:1 ' squeeze' automatically' corresponds to the image in the display window 2158 x 1806 and remaining leaves 466 pixels up and down black and calls this overview read full resolution the "showcase" in the metadata tab of the node.  Nuke reads metadata exr and performs the anamorphic compression. 

    If I open the same file in after effects CC, it cannot read the exr metadata so it does not apply a squeeze anamorphic and it stretches the image of 2158 x 1806 to fit the area of 2158 x 2272 complete resolution.  I have to shrink the image to 79.5% on the Y axis to get it's good aspect ratio.  After effects 2014 and 2015 WILL read the metadata and do the squeeze automatically, BUT when you return, he makes the black bars on the top and the bottom, Cook in the file.  If this file is read Nuke, it opens fine but it will no longer be a data window around the image because the entire image is defined by both the 2158 x 1806 and 466 pixels of padding.  If I turn of Nuke, it does NOT the black padding but stretches the image 2158 x 1806 in the "data window" to mount a 2158 x 2272, defined as the size of the file "window" that gets pressed again to a 2:1 ratio when it is read in Nuke.

    It's exhausting to write so I would be surprised if anyone makes it all through in this.  Since I have to do, I'll leave this here, in the hope, I gave enough information for someone to recognize this situation.  I hope I'm missing something for After Effects to read and write these files in the same way Nuke.  I am new to the exr world.  I have always used the DPXs in the NEWSPAPER.  In order to work with linear files above them in EXRs is kinda weird too.  Thanks for reading if make you throughout this, I hope that he has no sense at all.

    With version 1.9, the plugin EXR changed its treatment of displayWindow. He used to ignore it, but now it crops the displayWindow throughout. Most people prefer this, but you can be the exception. Fortunately, there is a way to restore the old behavior with the instructions in this message.

    AE does not have this notion of dataWindow/displayWindow together, so there is no way to make an EXR this way. I suggest to make the buffer full off-AE, then perform an adjustment in Nuke to re - define the displayWindow. There is also the EXR command-line tools that can do.

    If an EXR file has a pixel aspect ratio other than 1.0 (square), which should be reflected in AE. If it wasn't for some reason, you should always be able to enforce in interpreting the film.

  • How to have a swf file to play outside video?

    Hello! I would like to upload a SWF to google reader or something similar and have it call a video outdoors during playback (that way the video doesn't have to be in FLV format, and I can just distribute a private link to view the SWF on Google Reader). The SWF works fine on my computer, but I can't understand the steps necessary to transfer the thing to the internet. I Park video in Google Reader, alongside the swf, or video must be a kind of streaming service? I should mention that I have experimented with the conversion of video to FLV format and quality losses makes me cringe. Concern is also on the audio sync. I tried to convert the video into a sequence of images in After Effects and distribute just the pictures keys in Flash CC, but the resulting images of 5000 are unwieldy and prompt my beginning of computer curse me. If all goes well, there is a simple solution to all this, but at this point so complicated is that there have been, I will take pleasure that too. In case it is important, the video coming from a few scenes in 3D, which were then brought together in After Effects, and Flash is used to add minimal interactivity. If I need to provide more information or clarify anything, let me know.

    Yes seek (#) works in a few seconds, and you can use fractions as seek (20.5).

    To ensure that the video button appears only when you want, the buffer is an easy way to know.

    Set the size of the buffer on the NetStream with bufferTime:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/NET/NetStream.htm l #bufferTime

    so:

    ns.bufferTime = 10; buffer 10 seconds of video

    The default value is 0.1 (or virtually no buffer).

    Here's a caveat. During playback progressive (not in streaming-server), any time that a person seeking a new position in the video, if the video has not downloaded the number of seconds that you specify in the buffer beyond where they're looking, this event occurs again to let you know the buffer filled again. You do not want your game key accidentally show new so for your homework, you should develop a plan so that you know if the play button should appear only once at the beginning or whenever the buffer is full. A second clue is that if the connection of users is slow a buffer could escape, forcing him to fill to the top, pull out of the buffer full event again.

    You'll want to a listener on the type NetStream NetStatusEvent object, listening "NetStream.Buffer.Full", indicating that he has your desired amount of video in your current position of playback buffer to begin reading.

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/events/NetStatusE vent.html

    You should be listening to the NetStatusEvent NetStreams for a variety of codes, you can find I n the link above as well (play, stop, etc.).

    An example of a listener:

    ns.addEventListener (NetStatusEvent.NET_STATUS, nsHandler);

    function nsHandler(event:NetStatusEvent):void

    {

    If (event.info.code is "NetStream.Buffer.Full")

    {

    view the 'play' button

    }

    }

  • Bad NetStatusEvent codes for player of multicast

    I created a simple player of multicast using actinscript 3 which works very well and plays well the multicast stream. Although when the stream must fail. Or even if I stop Flash Media server returns success codes: "NetConnection.Connect.Success", "NetStream.Connect.Success" and "NetStream.Play.Start". I can't detect it when the multicast stream fails in flash player. I need to switch to unicast streams if multicasting goes down and I can't detect a failure due to the poor condition.

    Why I'm getting bad state?

    "NetStream.MulticastStream.Reset" is not in the version of FMS. In addition, "NetStream.MulticastStream.Reset" event is dispatched if the Publisher for this named instance of the stream stops, game client resets to another instance of the named stream.

    In your case if you are able to playback of the stream, you will certainly "NetStream.Buffer.Full" before the start of playback. If you do not receive this event, playback does not start.

  • Audio IOS RTMP live stream

    Hi guys I hope that some of you will be able to help me.

    I'm trying to stream audio from a live RTMP stream using the NetConnection and NetStream classes. I managed to get my app works without problem on Android, but I have some major difficulty make him play the audio back on iPad. Interestingly, it works in the device emulators when you are debugging, but I guess this isn't really an accurate representation. I tried streaming RTMP in AAC and MP3, but without success to be. I check through debugging that there haven't connected to the stream, however I just get no audio playback.

    Everything I read on door to believe that this is possible on IOS that I'm only interested by audio and video not. Can anyone help?

    Code example below (it's quick and dirty! ).

    Thanks in advance!

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:View ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark" title = "Audio" creationComplete = "init ()" >

    < s:layout >

    < s:VerticalLayout paddingLeft = "10" paddingRight = "10".

    paddingTop = "10" paddingBottom = "10" / >

    < / s:layout >

    < fx:Script >

    <! [CDATA]

    import flash.media.Video;

    import flash.net.NetConnection;

    to import flash.net.NetStream;

    Import mx.core.UIComponent;

    private var vid:Video;

    private var videoHolder:UIComponent;

    private var nc:NetConnection;

    private var defaultURL:String = '[STREAM]. "

    private var streamName:String = '[STREAMNAME]. "

    private var ns:NetStream;

    private var msg:Boolean;

    private var intervalMonitorBufferLengthEverySecond:uint;

    private function init (): void

    {

    vid = new Video();

    VID. Width = 864;

    VID. Height = 576;

    VID. Smoothing = true;

    Join the video of the scene

    videoHolder = new UIComponent();

    videoHolder.addChild (vid);

    addEventListener (SecurityErrorEvent.SECURITY_ERROR, onSecurityError);

    grpVideo.addElement (videoHolder);

    Connect();

    }

    public void onSecurityError(e:SecurityError):void

    {

    trace ("error in security :");

    }

    public void connect (): void

    {

    NC = new NetConnection();

    NC.client = this;

    nc.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);

    nc.objectEncoding = flash.net.ObjectEncoding.AMF0;

    NC. Connect (defaultURL);

    }

    public void netStatusHandler(e:NetStatusEvent):void

    {

    Switch (e.info.code) {}

    case "NetConnection.Connect.Success":

    trace ("audio - connected successfully");

    createNS();

    break;

    case "NetConnection.Connect.Closed":

    trace ("audio - Connection closed");

    Connect();

    break;

    case "NetConnection.Connect.Failed":

    trace ("audio - connection failed");

    break;

    case "NetConnection.Connect.Rejected":

    trace ("audio - connection rejected");

    break;

    case 'NetConnection.Connect.AppShutdown ':

    trace ("audio - application shutdown");

    break;

    case 'NetConnection.Connect.InvalidApp ':

    trace ("audio - app connection not valid");

    break;

    by default:

    trace ("audio-" + e.info.code + "-" + e.info.description);

    break;

    }

    }

    public function createNS (): void

    {

    trace ("NetStream creation");

    NS = new NetStream (nc);

    NC. Call ("FCSubscribe", null, "live_production"); Do not use this option if your CA requires it

    ns.addEventListener (NetStatusEvent.NET_STATUS, netStreamStatusHandler);

    vid.attachNetStream (ns);

    OnMetaData and onCuePoint //Handle event reminders: solution to http://tinyurl.com/mkadas

    //See another solution to http://www.Adobe.com/devnet/flash/QuickStart/metadata_cue_points/

    var infoClient:Object = new Object();

    infoClient.onMetaData = function MDGs (): void {};

    infoClient.onCuePoint = function oCP (): void {};

    NS.client = clientside;

    ns.bufferTime = 0;

    NS. Play (StreamName);

    ns.addEventListener (AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);

    function asyncErrorHandler(event:AsyncErrorEvent):void {}

    trace (Event.Text);

    }

    intervalMonitorBufferLengthEverySecond = setInterval (monPlayback, 1000);

    }

    public void netStreamStatusHandler(e:NetStatusEvent):void

    {

    Switch (e.info.code) {}

    case "NetStream.Buffer.Empty":

    trace ("audio - buffer empty :");

    break;

    case "NetStream.Buffer.Full":

    trace ("audio - buffer full :");

    break;

    case "NetStream.Play.Start":

    trace ("audio - beginning of the game :"); ")

    break;

    by default:

    trace ("audio-" + e.info.code + "-" + e.info.description);

    break;

    }

    }

    public function monPlayback (): void {}

    Print the current length of the buffer

    trace ("audio - buffer length:" + ns.bufferLength);

    trace ("audio - FPS:" + ns.currentFPS);

    trace ("audio - delay Live:" + ns.liveDelay);

    }

    public function onBWDone (): void {}

    Do nothing

    }

    public void onFCSubscribe(info:Object):void {}

    Do nothing. Prevents the error if connection to CDN.

    }

    public void onFCUnsubscribe(info:Object):void {}

    Do nothing. Prevents the error if connection to CDN.

    }

    []] >

    < / fx:Script >

    < s:Group id = "grpVideo" >

    < / s:Group >

    < / s:View >

    Just an update on this for all of you who come along after me.

    I managed to get this working on the MP3 but not AAC (I guess just AAC is not taken in charge?).

    My problem was the buffertime. Docs seemed to indicate that it should be set to 0 for live streaming, however he switch to "1" has solved my problem on the particular flow I pointed at.

    So, essentially above the justchanged line:

    ns.bufferTime = 0;

    TO

    ns.bufferTime = 1;

    Would be nice to know if someone got AAFC works though...

  • NetStream.resume () has no effect

    Hello world

    I'm developing a video slideshow in AS3. Here my Video.as class this connection handles & flow of each player:

    package com.dm.player
    {
        import flash.display.Sprite;
        import flash.media.SoundTransform;
        import flash.net.NetConnection;
        import flash.net.NetStream;
        import flash.events.Event;
        import flash.events.NetStatusEvent;
        import flash.events.SecurityErrorEvent;
    
        public class Video extends Sprite
        {
            private var config : Object;
            private var connection : NetConnection;
            private var stream : NetStream;
            private var video : flash.media.Video;
            private var addedToStage : Boolean = false;
    
            public function Video(config : Object)
            {
                this.config = config;
    
                this.addEventListener(Event.ADDED_TO_STAGE, this.onAddedToStage);
            }
    
            private function onAddedToStage(event : Event) : void
            {
                if (this.addedToStage)
                {
                    return;
                }
    
                this.addedToStage = true;
    
                this.video = new flash.media.Video();
    
                this.connection = new NetConnection();
    
                this.addChild(this.video);
            }
    
            private function onStreamNetStatus(event : NetStatusEvent) : void
            {
                switch (event.info.code)
                {
                    case 'NetStream.Buffer.Flush':
                        if (this.paused)
                        {
                            this.paused = false;
    
                            this.stream.play();
                        }
                        break;
    
                    case 'NetStream.Buffer.Full':
                        this.paused = true;
    
                        this.stream.pause();
                        break;
    
                    case 'NetStream.Play.Stop':
                        this.paused = false;
    
                        this.connection.close();
                        this.stream.close();
                        this.video.attachNetStream(null);
                        break;
                }
            }
    
            public function cue(streamURL : String) : void
            {
                this.connection.connect(null);
                this.stream = new NetStream(this.connection);
    
                this.stream.addEventListener(NetStatusEvent.NET_STATUS, this.onStreamNetStatus);
                this.stream.client = this;
    
                // mute sound
                var newSoundTransform : SoundTransform = this.stream.soundTransform;
                newSoundTransform.volume = 0;
                this.stream.soundTransform = newSoundTransform;
                this.stream.receiveAudio(false);
    
                this.video.attachNetStream(this.stream);
                this.video.width = this.config.width;
                this.video.height = this.config.height;
    
                this.stream.play(streamURL);
            }
    
            public function onMetaData(info : Object) : void {}
        }
    }
    

    Sometimes this.stream.resume () has no effect on videos. The slide show stops on a video and nothing happens: no event.info.code of onStreamNetStatus.

    Any ideas?

    Thanks for your help.

    Yvan

    I finally solved the problem by adding this.stream.seek (0) when I flow pause().

  • smooth video stream

    Hello

    I created a web application that records the video to users of webcam and stores.

    Once the user has registered his video he can will prefigure it.

    All the features works well locally but not in internet.

    In internet when I preview the video it takes a long time for the play.some time that he stops in the middle.

    Is it possible to play video smp\oothly or show a loading animation while he puts in buffer.


    Here is the link to my site http://www.jobtardis.com/wowcv/assets/SWF/1.swf

    Please help me solve this problem.

    Thank you

    Shanthi

    Since you are using Flash Player publishing workflows - there is no reliable way, you can publish the three components of different bitrate at the same time. This means that you can use Dynamic Streaming function or several flows.

    What I would say is that you have enough buffer set so that your game is more smooth. However, there would be a delay in starting but reading would be much smoother.

    Also, you can see an animation as you suggest when you are waiting for buffer get full - you can use the NetStream State messages to let you know when the buffer is empty (NetStream.Buffer.Empty) and when the buffer is full (NetStream.Buffer.Full)

  • create a preloader for flv

    I don't know why the following code does not work. If I keep the ns.play("flv/movie/flv"); line outside the PlayerStatusHandler the film plays very well, but I am trying to create a preloader for the flv file using ns.bufferTime. My first switch statement works very well, but the latter is never called.

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    Create an object to contain metadata

    var md_obj:Object = new Object();

    md_obj.onMetaData = metadata;

    md_obj.onCuePoint = onCue;

    NS.client = md_obj;

    ns.bufferTime = 5;

    Create an event listener to listen to the status Net (event video)

    ns.addEventListener (NetStatusEvent.NET_STATUS, PlayerStatusHandler);

    function PlayerStatusHandler(event:NetStatusEvent):void {}

    switch (event.info.code) {}

    "NetStream.Play.Stop" case:

    replay_mc.visible = true;

    break;

    case "NetSream.Buffer.Full":

    NS. Play("FLVS/Movie.flv");

    break;

    }

    }

    Start and stop your flv outside your check for buffer.

  • Netstream AS2/CS4 problem...

    I'm building a custom flv player and need help.  Maybe I'm missing something, I'm not sure.  The main problem is that the FLV file doesn't load/play, which probably causes secondary problems, such as the bufferClip always visible and no way to test the scrubbers of video and audio.

    -CODE-

    var nc: NetConnection = new NetConnection();
    NC. Connect (null);
    var NS: NetStream = new NetStream (nc);
    ns.setBufferTime (5);

    ns.onStatus = {function (info)}
    If (info.code == "NetStream.Buffer.Full") {}
    bufferClip._visible = false;
    }
    If (info.code == "NetStream.Buffer.Empty") {}
    bufferClip._visible = true;
    }
    If (info.code == "NetStream.Play.Stop") {}
    gotoAndStop ("end");
    }
    }

    video card
    videoPlace.attachVideo (ns);
    NS. Play ('the FLV URL');

    audio control
    _root.createEmptyMovieClip ("vSound", _root.getNextHighestDepth ())
    vSound.attachAudio (ns);

    var so: Sound = new Sound (vSound);
    {audioControl.audioScrub.onEnterFrame = function ()}
    so.setVolume(100-this._y);
    }

    {audioControl.audioScrub.onPress = function ()}
    this.startDrag(false,this._x,0,this._y,100);
    }

    audioControl.audioScrub.onRelease = audioControl.audioScrub.onReleaseOutside = function() {}
    this.stopDrag ();
    }

    Restart button
    controlBar.restartBtn.onRelease = function() {}
    NS. Seek (0);
    }

    Play and Pause button
    controlBar.playpause.onRelease = function() {}
    NS.pause ();
    }

    Configure the interval of video
    var vidInt = setInterval (videoStatus, 100);
    var amtLoad: Number;
    var duration: number;
    NS ["onMetaData"] = {function (obj.)}
    duration = obj.duration;
    }

    function videoStatus() {}
    amtLoad = ns.bytesLoaded/ns.bytesTotal;
    loader_mc.loadBar._width = amtLoad * 560;
    loader_mc.scrubber._x = ns.time/duration * 560;
    }

    the cleaner code
    var scrubInt;

    loader_mc.scrubber.onPress = function() {}
    clearInterval (vidInt);
    scrubInt = setInterval(scrubIt,10);
    this.startDrag(false,0,this._y,560,this._y);
    }

    loader_mc.scrubber.onRelease = loader_mc.scrubber.onReleaseOutside = function() {}
    clearInterval (vidInt);
    vidInt = setInterval(videoStatus,100);
    this.stopDrag ();
    }

    function scrubIt() {}
    NS. Seek(math.floor((controlBar.loader_mc.scrubber._x/560) * duration));
    }

    -CODE OF END-

    Thanks in advance for your help.  If you would like more information, let me know.
    ~ gray14

    put a flv in the same directory as your html integration and use this file name in your method of reading and repeat the test.  Make sure you have an instance of the video class on stage with the instance name:

    videoPlace

  • infoObject conflict or status?

    I have a video player that shows a picture of "buffering video" during the loading of the video. I added the code to get to randomly select a different video to play at the end of the first, and this causes the image of the video always buffer the. If I move the code buffer to the bottom, the buffer will work, but the same video will play instead of loading a new. I think that there is a conflict with my ns.onStatus parts; can someone help me out here?

    Thanks in advance.

    Here is the code:

    Create the connection to the network
    var nc:NetConnection = new NetConnection();
    NC. Connect (null);

    Create the net flow
    var ns:NetStream = new NetStream (nc);

    Attach the net stream to the video object
    theVideo.attachVideo (ns);

    Play the video at random on load
    filename = ['video2.flv', 'video3.flv', 'video1.flv', 'video4.flv'];
    path = "" http://mydomain.com/videos/ "; "
    I have = filename.length;
    k = Math.floor (Math.random () * i);

    NS. Play (Path + filename [k]);

    Play random video on end video
    ns.onStatus = {function (infoObject:Object)}
    If (infoObject.code == "NetStream.Play.Stop" & & infoObject.level == 'status') {}
    NS. Seek (0);
    filename = ['video2.flv', 'video3.flv', 'video1.flv', 'video4.flv'];
    path = "" http://mydomain.com/videos/ "; "
    I have = filename.length;
    k = Math.floor (Math.random () * i);
    NS. Play (Path + filename [k]);
    }
    ns.setBufferTime (10);
    }

    Code for buffer/scrubber
    ns.setBufferTime (10);

    ns.onStatus = {function (info)}
    If (info.code == "NetStream.Buffer.Full") {}
    bufferClip._visible = false;
    }
    If (info.code == "NetStream.Buffer.Empty") {}
    bufferClip._visible = true;
    }
    If (info.code == "NetStream.Play.Stop") {}
    NS. Seek (0);
    }
    }

    Fixed by combining all the elements onStatus like this:

    ns.onStatus = {function (info)}
    If (info.code == "NetStream.Buffer.Full") {}
    bufferClip._visible = false;
    }
    If (info.code == "NetStream.Buffer.Empty") {}
    bufferClip._visible = true;
    }
    If (info.code == "NetStream.Play.Stop" & info.level == 'status') {}
    filename = ['video2.flv', 'video3.flv', 'video1.flv', 'video4.flv'];
    path = "" http://mydomain.com/videos/ "; "
    I have = filename.length;
    k = Math.floor (Math.random () * i);
    NS. Play (Path + filename [k]);
    vidTitle.text = is [k];
    }
    }

  • The play/pause button States

    I am creating a video player customized for an ad and try to get the play/pause button to work properly. I did drag an instance of the button pause on the stage with the name of the instance 'pause_but' and inside this clip of film created a second image with the play button. Frame 1 contains an image tag "pausestate" and part 2 has the play with the image tag «playstate» button

    My code is:

    var nc:NetConnection = new NetConnection();
    NC. Connect ("rtmp://cp22943.edgefcs.net/ondemand");
    var ns:NetStream = new NetStream (nc);

    Buffer
    ns.setBufferTime (15);
    ns.onStatus = {function (info)}
    If (info.code == "NetStream.Buffer.Full") {}
    bufferClip._visible = false;
    }
    If (info.code == "NetStream.Buffer.Empty") {}
    bufferClip._visible = false;
    }
    }

    _root. Video.theVideo.attachVideo (NS);
    NS. Play("ads/rosenthalvideoad2");
    _Global.ifplaying = true;
    trace (ifplaying);


    Video controls
    rewind_but.onRelease = function() {}
    NS. Seek (0);
    }

    play_but.onRelease = function() {}
    NS. Play();
    }


    If (ifplaying = true) {}
    pause_but.onRelease = function() {}
    _root.pause_but.gotoAndStop ("playState");
    NS.pause ();
    ifplaying = false;
    trace (ifplaying);
    }
    }
    If (ifplaying = false) {}
    pause_but.onRelease = function() {}
    _root.pause_but.gotoAndStop ("pausestate");
    ifplaying = true;
    trace (ifplaying);
    }
    }


    MUTE button
    _root.createEmptyMovieClip ("vSound", _root.getNextHighestDepth ());
    vSound.attachAudio (ns);

    var so: Sound = new Sound (vSound);

    so.setVolume (100);

    mute_but. Press = function() {}
    If (SO.getVolume () == 100) {}
    this.gotoAndStop ("onOver");
    so.setVolume (0);
    }
    else {}
    this.gotoAndStop ("muteOver");
    so.setVolume (100);
    }
    }

    mute_but.onRollOut = function() {}
    If (SO.getVolume () == 100) {}
    this.gotoAndStop("on");
    }
    else {}
    this.gotoAndStop ("mute");
    }
    }

    mute.onRelease = function() {}
    If (SO.getVolume () == 100) {}
    so.setVolume (0);
    this.gotoAndStop ("muteOver");
    }
    else {}
    so.setVolume (100);
    this.gotoAndStop ("onOver");
    }
    }
    Stop();

    Can someone please try and help me solve this problem?

    Use this code to toggle:

  • Does not: NetStream NetStatusEvent &amp; quot; NetStream.Play.StreamNotFound &amp; quot;

    While loading FLV files even if work of all other NetStatusEvent to the listener, "NetStream.Play.StreamNotFound" does not work.

    I listen to "NetStream.Play.StreamNotFound" but it does not work.

    If (e.info.code is "NetStream.Play.StreamNotFound")
    {
    trace ("FLV NOT BORN");
    }

    What is interesting is all of my other listeners work. Here is a partial list of those who work (in the same actionscript class).

    "NetStream.Buffer.Full".
    "NetConnection.Connect.Failed".
    "NetConnection.Connect.Success".
    'NetStream.Play.Reset '.
    "NetStream.Play.Start".

    Does anyone have any ideas why it does not work? What is special about "NetStream.Play.StreamNotFound"?

    By the way: it is to play the FLV in Flash Media Server 2. He never uses sharedObjects anytime. All files FLV, all the time.

    The application works fine when it is requested an existing FLV. But fails to receive the "NetStream.Play.StreamNotFound" event when an FLV is requested that does not exist. Flash Media Server never sends me an event "NetStream.Play.StreamNotFound".

    Help, please.

    Thank you
    William Chadwick

    I discovered the answer.

    It is an example of how the Adobe documentation is not always quite as useful as you expect it to be.

    Fmsguru Forum, there is a station where it is recommended to use the following code when you play a netstream:

    NS. Play ("myStream", 0, -1);

    "The first 0 must indicate a prerecorded stream. If you pass that SGF will then pick up a live stream. " http://fmsguru.com/Forum/messages.cfm?ThreadID=625A2813-2004-C4F4-F5048DCE694B3C6F

    Of course in the documentation from Adobe using Flex Builder 2, you will notice that the settings (or arguments) are not at all. It's I guess that part of the handshake process secret Adobe documentation.

    However, now that I found the answer, and while I was looking for a link to the online version of the help file for this question, I discovered that Adobe online lists the parameters and describes them. Here: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html#play)

    William Chadwick
    Frustrated programmer

Maybe you are looking for

  • What is the advantage of Apple Watch Nike + Apple Watch Sport?  Vice versa?

    I am looking to buy a 2 Apple Watch series and contemplating on whether to get Apple Watch regular Sport or a Apple Watch Nike +. What are the benefits of a Nike + Apple Watch Sport vs? What are the benefits of Apple Watch Sport vs a Nike +? The soft

  • Some web pages are not available with Satellite Pro 4600

    Installed a new hard drive and Windows 2000 in my laptop and now a weird problem. Both Ie6 and Firefox accesses some Google Web sites (I can get on and get results), some sites UK & US, etc., but toshiba support page I can't seem to ebay, bbc, most o

  • Drive hard squeal

    I have a Satelite PSA10E - 018G 3 - SO with a hard drive that suddenly during a session of Windows XP ordinary slowed to a halt, causing the machine to freeze, and whenever I tried it from now to the top, it will alternate between doing weird little

  • Mouse SideWinder 3 failure

    I have a usb sidewinder gaming mouse, left-sife canned button power off.  Is it a design/hardware problem that I reinstalled the drivers/software, nothing and I noticed this problem on other forums.  Can it be fixed or guess who will never buy again

  • Factory default backup (USB Noo - Noo of?)

    Quick question, I created a backup of USB factory default and it has become corrupted somehow and I have a small question. When you create a key recovery USB with a 32 GB USB Flash drive, will be corrupted recovery if I put additional files on the US