NetStream.Play.Stop : Problem:

Hi,
I have develop video streaming application with  Flash Media server 3.5 + and Use Dynamic stream feature , this player work correct in all way but issue with NetStream.Play.Stop() command set while playing video without EOF
i.e video file .f4v format has 30 sec lenght ,
-player face NetStream.play.stop() command @ 2.30 without indicate any stop command ,its automatically halt but last 0.30 is remaning.
Any idea regarding this dobet please help me ..
Thanks ,
a

Question 1: When I put the .FLV files to play in the
"\streams\_definst_" of
the application directory of the Flash Media Server
installation, does that
automatically turn it into streaming FLV and no longer
progressive FLV?
The distinction between progressive and streaming is the
NetConnection.connect
Question 2: What's the best way to detect or to signal my app
that the
streaming FLV has completed playing?
Not sure what the best way is. But I subclass the NetStream
class similarily
to how it is presented in the Flash Communications Server
book example 5-5.
http://www.flash-communications.net/sourceCode/index.html
It uses a combination of NetStream.Play.Stop and bufferLength
== 0 as one
signal to toggle a stopped state flag and
NetStream.Buffer.Empty and that
stopped flag as another signal. The stopped flag is turned
off on the next
NetStream.Play.Start.
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"naz404" <[email protected]> wrote in
message
news:e3ffu4$a6c$[email protected]..
Hi. I built a dynamic FLV player using XML playlists but
using progressive
downloads.
I've been trying to migrate it to a Flash Media Server 2.01
solution, but
after I did,
"NetStream.Play.Stop" no longer seems to be happening
properly.
Question 1: When I put the .FLV files to play in the
"\streams\_definst_"
of
the application directory of the Flash Media Server
installation, does that
automatically turn it into streaming FLV and no longer
progressive FLV?
Question 2: What's the best way to detect or to signal my
app that the
streaming FLV has completed playing?
Also, "NetStream.Play.Complete" never seems to occur, even
if the stream
has
completed playing.
Thanks!

Similar Messages

  • Subscribe immediately followed by Netstream.Play.Stop

    We are in general successfully using Stratus with our
    redesigned, previously fully FMS3(TCP), coaching application.
    We still do all non-audio/video comms, including the
    signalling for audio/video and chat, the traditional way, using
    shared objects.
    Now we have one customer with whom we can't get audio/video
    going this way. All other things work. We get a peer id from him,
    then subscribe to that, but the subscribe is immediately followed
    by a Netstream.Play.Stop event.
    With the Stratus sample app we get nothing going at all.
    Although my suspicion goes to local firewall and NAT issues,
    I still would like to hear your interpretation of this sequence of
    events. We have lately seen no other firewall/NAT issues, so I
    wondered whether NAT is still an issue with Stratus and a potential
    cause of this type of behaviour?

    I posted the following message to the FLASHMEDIA mailing list
    about a month ago about how to use a server I run in my garage
    http://cc.rtmfp.net to test
    NAT/firewall properties:
    IF the connection to cc.rtmfp.net has the same properties as
    the connection to/from the peer, then the results can be used to
    make a good guess as to whether or not a peer-to-peer connection
    can be formed. The fact that the connection in some cases does NOT
    have the same properties is why the results can't be relied upon
    completely. (As an example, two peers in the same organization
    behind the same firewall have different properties between each
    other than they each have to cc.rtmfp.net)
    In order to guess, one needs to know that there are different
    types of NAT behavior. (I'll use the older common terminology
    below, rather than the new recommended terminology, as most people
    know the older terminology better):
    Some reuse the same address and port when talking to
    different peers
    ("cone") and some pick a new address and port ("multiple IP
    address,
    symmetric") or the same address but new port ("single IP
    address, symmetric"). There is also different filtering behavior of
    NATs and firewalls. (Note that a firewall may filter and not be a
    NAT, or a NAT can also act as a firewall and have filtering). The
    typical kinds of filtering behavior are none (for a cone NAT we
    would call that "full cone"), restrict to only talking to addresses
    we have talked to before ("address-restricted"), and restrict to
    only talking to addresses AND port numbers we have talked to before
    ("address- and port-restricted").
    There are also firewalls that block UDP entirely.
    Unfortunately, there are also even more complicated NAT and
    firewall behaviors that aren't easily characterized. For instance,
    some act as a symmetric NAT that preserves port numbers at first,
    then when they run out of resources they switch to being a cone
    NAT. Some act as one type of NAT for the first client that connects
    to a server, then a different type if a second client behind the
    NAT tries to connect to the same server. So this is another case
    where a simple analysis, like the one performed by cc.rtmfp.net,
    can fail to properly predict what will happen for the peer-to-peer
    connection.
    But, if the connection to cc.rtmfp.net has the same
    properties AND the NAT or firewall has predictable behavior, here's
    what the results mean:
    At the top, a successful RTMFP connection will result in
    "Analysis Complete". If you don't get that, UDP is probably
    blocked. (Or the cc.rtmfp.net RTMFP server has a problem... it runs
    on a machine in my garage, with no redundancy)
    The for each yes/no answer, there's the following meaning:
    "Knows public IP address of self" means that the Flash
    Player's idea of its local addresses has one address that matches
    the one that cc.rtmfp.net saw when the connection came in. If that
    is the case, there's no address translation.
    "Public UDP port number same as local UDP port number" means
    that the Flash Player's idea of which UDP port number it is using
    matches what cc.rtmfp.net saw when the connection came in. If that
    is the case, there's no port translation. So if this and the above
    are "yes", then there's probably no NAT of any kind (but there
    still might be a firewall)
    "Can receive from same IP address, same UDP port number" is
    always true, because if you couldn't do this you couldn't establish
    the initial connection.
    "Can receive from same IP address, different UDP port number"
    tells you whether or not your firewall is "port restricted",
    requiring an outbound connection to the same address AND port
    number before inbound traffic is permitted from that address and
    port number, even after traffic was sent to the same address but
    different port number previously.
    "Can receive from different IP address, different UDP port
    number" tells you whether or not your firewall is "address
    restricted", requiring an outbound connection to be made to a new
    IP address before inbound traffic is permitted from that IP
    address.
    "Can send to different IP address after server introduction"
    should always be true if the initial connection can be made
    because, unless there is very strange firewall behavior, this is
    just like opening a new RTMFP connection initially. If this fails
    then either there's a problem with how the player received or
    treated the introduction request, or the firewall is totally
    unpredictable.
    "Source IP address is preserved from original connection"
    means that either you have a cone NAT, or a symmetric NAT with only
    one IP address, or a symmetric NAT with multiple IP addresses *but*
    the same address happened to be used this time. If repeated tests
    cause this to change between yes and no, then you have a symmetric
    NAT with multiple IP addresses, and sometimes you happen to use the
    same address.
    "Source UDP port number is preserved from original
    connection" means that you have a cone NAT. If this is "no", then
    you have a symmetric NAT.
    Now, how does this tell you what will and won't work?
    Symmetric NATs break peer-to-peer connectivity in some cases.
    Flash Player can work with almost all cone NAT configurations
    (though with some caveats if there are multiple layers of NAT
    and/or lack of "hairpinning" support), and many firewall
    configurations, but symmetric NAT in combination with certain
    firewall or NAT cases at the other end blocks the ability to
    establish a peer-to-peer connection.
    If one end is a symmetric NAT with a single IP address, then
    connections to peers behind other symmetric NATs or behind
    port-restricted cone NATs (or port-restricted firewalls) are
    impossible.
    If one end is a symmetric NAT with multiple IP addresses,
    then connections to peers behind other symmetric NATs or behind
    address-restricted (and likely port-restricted) cone NATs (or
    address-restricted or port-restricted firewalls) are impossible.
    This is because no matter what the Flash Player tries to do
    to "punch a hole" through the restricted cone NAT or restricted
    firewall in order to let the other peer through, the other end
    keeps moving to a new address and/or port number that doesn't match
    up, so the hole that was created is no longer applicable.
    The best choice is to allow UDP traffic through and to use a
    NAT and/or firewall device that complies with the NAT
    implementation recommendations of the IETF BEHAVE working group.
    Alternatively, an organization may choose to use the TURN proxy
    support in the player to send traffic to a proxy in a DMZ that can
    comply with those recommendations.
    Application developers may also want to create fallbacks to
    client-server RTMP and/or RTMPT in order to cover the cases where a
    firewall or NAT blocks a direct peer-to-peer connection. It depends
    on whether you want your application to always work, or you want to
    never have to relay media through your server.
    Matthew Kaufman

  • NetStream.Play.Stop and Complete fired early on RTMPE streams

    Hi there
    I am experiencing an issue with playback on RTMPE streams. after investigation it seems that the FMS server is firing the NetStream.Play.Complete message at random points, indicating that a stream has ended. This is happening and random points during the stream,  not even close to the end.
    The order of Status messages is as follows:
    Thu Oct 20 2011 04:15:17 PM :: NetStream.Play.Start : status
    Thu Oct 20 2011 04:32:40 PM :: NetStream.Play.Stop : status
    Thu Oct 20 2011 04:32:40 PM :: NetStream.Buffer.Flush : status
    Thu Oct 20 2011 04:32:58 PM :: NetStream.Buffer.Empty : status
    Thu Oct 20 2011 04:32:58 PM :: onPlayStatus : NetStream.Play.Complete
    As you can see roughly 17mins into playback...although the stream is 1 hour 24mins long
    I have tested this numerous times, and each time it is at a different point in the stream.
    Intermittently the NetStream.Play.InsufficientBW warning is being fired prior to NetStream.Play.Stop.
    I am using a player built on OSMF 1.5.
    Just need to know why these messages would be fired and how to handle them
    Thanks
    Steve

    Hi Steve,
    Thanks for the information. Did you check with flvcheck tool to see if the file is a valid FMS file ? If not, can you do that please ?

  • NetStream with OSMF is firing NetStream.Play.Stopped too early.

    Hi,
    I've been digging into a bug report where the ends of adverts are clipped by up to three seconds in Android and, after a _lot_ of painful debugging, I have come to the conclusion that the issue is with the underlying NetStream object.
    After a bit of jiggery pokery to locate the NetStream on NetStreamLoadTrait, I was able to listen to the changes to NetStream.time and to compare against the TimeTrait values, also to see what events were happening where and when. After placing this code on an Event.ENTER_FRAME handler, I was able to see clearly that there is _ALMOST_ALWAYS_ a huge jump in the last two frames... This equates to clipping off the last few seconds of the video as the jump tends to occur a couple of seconds prior to the end. Having placed break-points in OSMF code, it appears that the end is "correct" in that it is always in response to a NetStream.Play.Stopped... just that the NetStream.Play.Stopped is firing at the wrong time.
    Does anyone have _any_ idea what could be causing this? Is it likely to be with the media being supplied (third-party advertsing video...) or the plugin itself?
    Thanks,
    G

    I have created a bug report here: https://bugbase.adobe.com/index.cfm?event=bug&id=3504086
    Please take a look, use my supplied test script, and vote for the issue if you can reproduce it.
    G

  • NetStream Class Stop Action

    Problem: When using multiple instances of a FLV player in a
    FLA AS3 and when one navigates to another frame the video still
    plays from the earlier frames as one can still hear it...
    I tried to implement loading a "phantom-light" FLV on the
    frame change to stop the video playing but I was not successful,
    note the code at the bottom...
    What can be done?

    I realize you fixed your problem but it sounds like your
    problem was not
    just that the video continued to play but that it persisted
    and you wanted
    all vestiges to be gone. For future reference, I had the same
    problem. I
    used the removeChild () call and it fixed my problem. But
    that's not saying
    much because I still don't understand the code I've grabbed
    from the
    internet to play video on my website. In Lingo it was just
    referring to a
    sprite and issuing a play () command. It's much more
    complicated in Flash
    but I'm slowly learning.
    Craig
    "Matt Abron Abron" <[email protected]> wrote
    in message
    news:[email protected]...
    > Problem: When using multiple instances of a FLV player
    in a FLA AS3 and
    > when
    > one navigates to another frame the video still plays
    from the earlier
    > frames as
    > one can still hear it...
    >
    > I tried to implement loading a "phantom-light" FLV on
    the frame change to
    > stop
    > the video playing but I was not successful, note the
    code at the bottom...
    >
    > What can be done?
    >
    > function playMyFlv(){
    > _stream.close();
    > if(autoStart == "true" || is_single_file == false)
    > {
    > //player_paused = false;
    > toolbar.btn_play.dispatchEvent(new Event("mouseDown"));
    > } else {
    > autoStart = "true";
    > if(is_single_file == true){
    > getSingleImage();
    > big_play_btn.x = bg.width/2 - big_play_btn.width/2;
    > big_play_btn.y = bg.height/2 - big_play_btn.height/2;
    > big_play_btn.visible = true;
    > }
    > }
    > first_run=false;
    > toolbar.checkPlayButton();
    > }
    >
    > function onMetaData(data:Object){
    > first_run=false;
    >
    if(contains(single_image_holder))removeChild(single_image_holder);
    > _timer.start();
    > _duration = data.duration;
    > _stream.soundTransform = toolbar.videoVolume;
    > toolbar.btn_volume.getVolume();
    > //resizeVideo();
    > }
    >
    > function onNetStatus(e:NetStatusEvent){
    > //trace(e.info.code);
    > //this resets the player on movie end
    > if(e.info.code == "NetStream.Play.Stop"){
    > toolbar.resetMovie(new Event("e"));
    > first_run=true;
    > toolbar.alpha = 1;
    > }
    > if(e.info.code == "NetStream.Play.Start"){
    > _video.attachNetStream(_stream);
    > show_buffer = true;
    > }
    >
    > if(e.info.code == "NetStream.Buffer.Empty"){
    > show_buffer = true;
    > }
    > if(e.info.code == "NetStream.Buffer.Full"){
    > show_buffer = false;
    > }
    >
    > console.appendText(e.info.code);
    > resizeVideo();
    > }
    >
    >
    > //*************************This is the Kill Video Test
    Code
    > HERE********************
    >
    > /*function killdownload(){
    > _video.attachVideo(null);
    > playMyFlv.pause();
    > playMyFlv.play("nonexist.flv");
    > }
    >
    > playMyFlv.onStatus = function (info) {
    > for (var r in info) {
    > trace ((r + " = ") + info[r]);
    > trace(my_video._height);
    > trace(my_video.height);
    > trace("-----------");
    > }
    > if(info.code == "NetStream.Play.Start"){
    > }
    > if(info.code == "NetStream.Play.Stop"){
    > stopping = true;
    > //trace("stopping");
    > }
    > if(info.code == "NetStream.Buffer.Empty" &&
    stopping){
    > //trace("stopped");
    > }
    > if(info.code == "NetStream.Buffer.Full"){
    > if(preview){
    > killdownload();
    > }
    > }
    > };
    > */
    >

  • Play / pause problem

    if i click 'Play' Button video playing normally, after i click 'Pause' button video pause,  next i click 'Play' Button video playing from starting point.
    what is the problem
    solution pls......
    Code:
    var video:String = "http://www.hagane.us/as/flv/video.flv"
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    theVideo.attachVideo(ns);
    ns.play(video);
    ns.onStatus = function(info){
              if(info.code == "NetStream.Play.Stop") {
                        ns.seek();
                        ns.close();
                        mid_play._visible = true;
    //Button Control Functions
    play_btn.onRelease = function () {
                                                      ns.play(video);
                                                      mid_play._visible = false;
    mid_play.onRelease = function () {
                                                      ns.play(video);
                                                      mid_play._visible = false;
    pause_btn.onRelease = function (){
                                                      ns.pause();
                                                      mid_play._visible = true;
    stop_btn.onRelease = function (){
                                                      ns.close();
                                                      mid_play._visible = true;

    You should look in the help documentation regarding both the pause and the play methods of the NetStream class.  You can probably solve this yourself in doing so if you take the time to read what they involve.
    The pause method info indicates:  "The first time you call this method (without sending a parameter), it pauses play; the next time, it resumes play. You might want to attach this method to a button that the user presses to pause or resume playback."
    That says you might try using pause() again in your mid_play button instead of play() because calling it a second time will resume play.
    If you need to use the play method for some reason (I don't see why you would), the play method has more arguments it can take, one being the "start" time (at what time into the video to start it playing).  The class also has a time property that you can read and assign to a variable to help remember where you stopped it.  So if you save the time value when you pause the video you can restart it using that time value as a secong argument.... ns.play(video, atTime);

  • BUG: Basic Play/Stop Function is Broken

    SETUP:
    spacebar keycommand = play/stop
    cycle = on
    By now, anyone who's been on Logic for 5 minutes should be able to tell you the expected behavior when you hit the spacebar --- it toggles between these two functions:
    • jump to left locator and play
    • stop
    PROBLEM
    I changed the icon on a track. Then I hit the spacebar, expecting my track to jump to the left locator and play. Nope... Instead, the spacebar acted like a "pause/stop" control:
    hit = play from current position
    hit = stop
    hit = play from current position
    This is incorrect behavior when cycle is on. Right? Tell me I'm not going mad...
    Can anyone confirm this behavior?

    Hmmm...
    When the movie window has focus (two clicks on the window, or, by clicking on the movie's play/pause button), the spacebar then works in the same way as a QT Player window --- play, pause. But it's not like the spacebar gives you exclusive control over the transport of the movie as it does in a QT Player window, because if cycle is on, Logic will jump back to the left locator when Logic hits the right locator point. This mixing of behaviors (1/2 QT, 1/2 Logic) is terrible. I'm not sure that there's any benefit to it.
    So, OK, (sigh) when the movie float window has focus, the operation of the spacebar changes. However, other key commands retain their pre-programmed behavior and relate to objects previously selected in non-focused windows! For example, if I have an audio file highlighted in the arrange window while the movie window has focus, I can use key commands to split at playhead, mute, open the sample editor, etc. Somehow that region object retains focus even though its containing window doesn't. Meanwhile, the most basic transport function --- play/stop --- retains focus with the movie window, and changes its behavior with respect to the rest of the program.
    Makes no sense.
    Message was edited by: iSchwartz

  • Flash CS3 Play/Stop audio button problem

    I made a play/stop audio button with this youtube tutorial (youtube.com/watch?v=XU6oMEFUFF8) but after the sound is finished I want the play button to show up agian.
    Here is the actionscript:
    import flash.events.MouseEvent;
    play_btn.addEventListener(MouseEvent.CLICK,clickha ndler);
    stop_btn.addEventListener(MouseEvent.CLICK,clickha ndler);
    function clickhandler(event:MouseEvent):void{
    swapChildren(play_btn,stop_btn);
    what code should I add to my current code?
    I also can send you the Fla.

    You should consider using the Sound class. Here's a quick overview of it:
    http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d21.html
    You'll be able to add event listeners to the sound to know when it completes so you can execute more code, such as swapping the play and stop button. There is an example in that overview of listening for the SOUND_COMPLETE event (e.g. channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);). It should contain everything you need.
    A basic example of what you'll end up with (there's many ways to do it) might look something like this:
    // just set up and wait for click
    var isPlaying:Boolean = false;
    var mySound:Sound = new MySoundInLibrary();
    var myChannel:SoundChannel = new SoundChannel();
    myChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
    // buttons
    play_btn.addEventListener(MouseEvent.CLICK,clickhandler);
    stop_btn.addEventListener(MouseEvent.CLICK,clickhandler);
    function clickhandler(event:MouseEvent):void
              swapChildren(play_btn, stop_btn);
              if (isPlaying)
                        isPlaying = false;
                        myChannel.stop();
              else
                        isPlaying = true;
                        myChannel = mySound.play();
    function onPlaybackComplete(e:Event):void
              isPlaying = false;
              swapChildren(play_btn, stop_btn);
    The basic idea is keeping a flag if the audio is currently playing. If it isn't then assign the sound to a channel and play it while setting the flag (isPlaying) to true. If it's already playing, set the flag to false and stop playing the audio.
    The swapChildren is run in the onPlaybackComplete() method so when the audio completes the play button is swapped back in front.
    Rather than swapping the children I'd urge you to toggle the .visible property instead. It's easy to run commands in the wrong order and get desynched on depth.

  • MSI GX623 Sesnsor buttoms problem [Play, stop, rewind]

    Hello,
    I installed windows 7, and noticed that sensor buttons play, stop, rewind and formard are not working. other buttons works fine, any ideas?
    Thanks for help

    hi
    do you have install this ?
    http://eu.msi.com/index.php?func=downloadfile&dno=10455&type=utility
    and what media player use windows media player or winamp etc.

  • How to know the status of stream played using NetStream.Play method ?

    I am playing stream data published by third party server
    similar to FCS by creating NetStream object and calling Play method
    on it. Now the problem is, sometimes I am not able to view the
    published stream by playing it using Play method. Also it does not
    call OnStatus method of NetSteam. How can I know the status(or
    result) of Play method ?
    Note: NetConnection gets created successfully. I get status
    of NetStream.Play.Start / Stop when I put local flv as a first
    parameter to Play method

    Hi
    There are SQL reports in the following zip which has SQLDeveloper reports for runtime objects such as mappings and process flows;
    http://www.oracle.com/technology/products/warehouse/htdocs/Experts/owb_sqldeveloper.zip
    Cheers
    David

  • Local video file (.mp4) file not play in MAC OS using netstream (NetStream.Play.StreamNotFound)

    I have developed adobe air application using adobe flash builder 4.6 for Windows and Mac OS. Application allow user to download movie (.mp4) file in his system at specific location for play  without live streaming. File downloading correctly in both OS and also file playing from download location in Window application correctly. but when start playing file Mac OS application not start playing.
    When start playing in mac OS, NetStatusEvent.Net_Status event return "NetStream.Play.StreamNotFound" event info code. I have found one solution for mac OS is use colon notation instead of slash notation. I have tried it but it also not working.
    Code:
    _nc = new NetConnection();
    _nc.addEventListener(NetStatusEvent.Net_Status, connectionHandler);
    _nc.connect(null);
    private function connectionHandler(event:NetStatusEvent):void
         trace("Connection to server: " + event.info.code);
         /// Get "NetStream.Play.StreamNotFound" code in mac OS.    
    slash notation path: /Users/mayur/Downloads/myvideo.mp4
    Colon notation path: I have tried following colon notation path
    1) :Users:mayur:Downloads:myvideo.mp4
    2) Users:mayur:Downloads:myvideo.mp4
    3) Macintosh HD:Users:mayur:Downloads:myvideo.mp4 (Macintosh HD - Drive name)
    Please help me to solve this issue.

    Finally I found a solution...
    The problem is that AIR on Android stores the application data in the protected directory /data/... which is not accessible by StageWebView (or any browser app).
    So you have to copy the video file you want to play to a temporary pubic directory on the sd-card for example and use this in StageWebView.
    You also have to create a temporary html-page with the video-tag and load this page in StageWebView (not the string) because external resources are only loaded in StageWebView when using an URL.
    On iOS the application storage directory is readable for StageWebView so you don't have to do this step.
    Hope this helps

  • Is there any way for play/stop to NOT apply to the metronome? [mainstage 2]

    I have EXS24 samplers triggered by drum pads, but like to be able to set one pad to [Play/Stop] so I can stop the samples on the fly. (in case I make a mistake or something) Problem is, I want to send the metronome to my drummer (via a different output on my interface) but I DON'T want [Play/Stop] to stop the click. Is there any way to get better control of the metronome? Does anyone with mainstage 3 know if this is an option? Can I re-wire it with logic 9 and run a click out of logic? Can't seem to get mainstage and logic to work together... Just need my click to run independently.

    What you may try is to replicate your base map but take the point theme out of its definition. Then create a second tile layer for the new base map. You can add both tile layers to the client (but set only one of them to be visible). Then simply switch the tile layers' visibility on/off based on user turning on/off the point theme. The built-in Oracle Maps tutorial #22 (Multiple Base maps) has some sample code you might be able to re-use.
    thanks
    LJ

  • NetStream.Play.InsufficientBW when streaming server side playlist

    Hi
    I am streaming pre recorded audio files (mp4) to an AIR client. I have tried two different solutions,
    streaming the file directly with the NetStream.play("mp4:xxxxx.m4a") and creating a server side playlist, adding the
    same sound clip and then streaming the playlist. The problem is, when streaming the playlist i get a few NetStream.Play.InsufficientBW, this does not happen when streaming the file direct. Both solutions uses bufferTime=1.0
    I would like to use a server side playlist to implement a simple key solution so that the client dont know the full path to
    the file, but instead sends a key to a custom server side function that looks up the file path and creates a stream for the client.
    TIA
    Ruben Chadien
    FMS 4.0(linux)

    Subscribing via playlist and playing file directly are two different things , as first one is live mode of play while other is playing recorded file - so the way streams are delivered are also quite different. Can you try setting higher buffer and see if that helps or if you don't want to set higher buffer, see if disabling AggregateMessages (you will find the tag in Application.xml under Live/Queue) helps

  • Can't detect when my netstream FLV stops.

    I want to detect when my FLV stops and jump to another video. How can I do this? My current code is:
    The first video plays fine, but it just stops when it is done.
    // Setting up my netstream and playing my video
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    var vid:Video = new Video(320, 240);
    this.addChild(vid);
    vid.attachNetStream(ns);
    ns.play("video0.flv");
    ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    // This is what I thought I had to do to detect the stop
    function netStatusHandler(event:NetStatusEvent):void {
        switch(event) {
          case "NetStream.Play.Complete":
             ns.close();
             ns.play("video2.flv");
    // Handles Async errors by ignoring them
    function asyncErrorHandler(event:AsyncErrorEvent):void {
        // Ignore
    Thanks!

    Ok, so I made the changes and now it seems the movie merely freezes when finished playing. My code that is for clicking hot spots
    and playing videos works though. I do also have some trouble with the movies either playing only a second or two, then stopping, as
    well, or still hearing some of the sound form the previous video. Before I had used the (ns.time == oldTime) to determine if the video
    had stopped or not, but it seems to get me into trouble. Any advice?
    Thanks for the help so far.
    My code
    gotoAndStop(1);
    // Loading Text File into Array
    var textFile:URLRequest = new URLRequest("info.txt");
    var textLoader:URLLoader = new URLLoader();
    textLoader.load(textFile);
    var inputArray:Array = new Array();
    var videoArray:Array = new Array();
    textLoader.addEventListener(Event.COMPLETE, loadComplete);
    var i:int = 0;
    var j:int;
    var currentSize:int = 0;
    var currentVideo:int = 0;
    addEventListener(Event.ENTER_FRAME,onEnterFrame);
    var oldTime:Number = -1;
    stage.addEventListener(MouseEvent.CLICK,mouseClick);
    var currentNumber:int = 0;
    var counter:int;
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    var vid:Video = new Video(320, 240);
    this.addChild(vid);
    vid.attachNetStream(ns);
    ns.play("video0.flv");
    function onEnterFrame(event:Event) {
        //if (ns.time == oldTime) {
            //if (videoArray[currentVideo].length <= 2) {
                //ns.close();
                //gotoAndStop(2);
            //else
                //newVideo(videoArray[currentVideo][1]);
        //oldTime = ns.time;
    function mouseClick(event:MouseEvent) {
        if (videoArray[currentVideo].length > 2) {
            for (i = 2; i < videoArray[currentVideo].length; i+=5) {
                if (mouseX >= videoArray[currentVideo][i+1] && mouseX <= videoArray[currentVideo][i+2] &&
                    mouseY >= videoArray[currentVideo][i+3] && mouseY <= videoArray[currentVideo][i+4]) {
                        newVideo(videoArray[currentVideo][i]);
    function asyncErrorHandler(event:AsyncErrorEvent):void {
        // Ignore
    function loadComplete(event:Event):void {
        textLoader.removeEventListener(Event.COMPLETE, loadComplete);
        var tempString:String = textLoader.data;
        inputArray = tempString.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s+/);
        while (i < inputArray.length) {
            videoArray[currentNumber] = new Array();
            currentSize = inputArray[i];
            counter = 0;
            for (j = i; j < (i + currentSize); j++) {
                videoArray[currentNumber][counter] = inputArray[j];
                counter++;
            i = j;
            currentNumber++;
        inputArray = null;
    function netStatusHandler(event:NetStatusEvent):void {
        switch(event.info.code) {
          case "NetStream.Play.Complete":
             ns.play("video2.flv");
             break;
    function newVideo(newTarget:int) {
            //ns.close();
            ns.play("video" + newTarget + ".flv");
            currentVideo = newTarget;

  • CS4 "play-stop" button not working

    OK hope someone might be able to help - I am trying to get CS4 working on my partners machine which is a Sony Vaio VGN-AR49G – specs here - http://vaio-online.sony.com/prod_info/vgn-ar49g/vgn-ar49g.pdf
    A bit of history...
    Recently installed Premier Pro CS4 on vista (Running CS3 previously on vista with no issues). 
    Running CS4 within days started to have conflicts between AVCHD and DV when editing in the same timeline – were recommended to upgrade to Windows 7.  Upgraded to Win 7 32 bit.  This is the course of action:
    - After upgrading from Vista to Win 7 32 bit, got the Win 7 updates;
    - Upgraded some drivers (used Driver Robot to detect driver updates required);
    - Uninstalled CS4 suite and reinstalled;
    - Downloaded CS4 upgrades…
    Things seem to be running properly now except the "play-stop" button (or space bar) in both the "Source" & "Program Sequence" Screens doesn't work.   Can scroll by moving the bar along the timeline, select in and out points etc… OK, but movie won’t play in source screen or program screen. 
    Have checked WAV, AVI, AVCHD … none will play.
    Closed Premier Pro and open Premier Elements on the same machine and it is functioning fine – can play the same footage…
    I’ve updated all drivers which Driver Robot seemed to think needed upgrading EXCEPT Intel ICH8 Family .. the upgrade failed and I haven’t been able to locate more up to date drivers on the web .. and found a note on my travels that these don’t need upgrading anyway. 
    http://communities.intel.com/message/72149;jsessionid=6169690E70B02BD075E4C1131A7ACC85.nod e5COMS
    Help please!

    Thanks!
    Really, so we're better to start from scratch rather than upgrade??  We'd have to re-load any other apps / drivers back on too after the install?  Don't run too much else on the machine as it is purely for editing.
    We have purchased the upgrade rather than straight install -- but if there's a pretty good chance that we'll solve the problem then we'll go buy that too.  Interested in any comments you have to help me understand Win 7 install vs upgrade ... thanks!

Maybe you are looking for

  • Is it possible to use an external hard drive wirelessly w Leopard?

    Upgrading to Leopard seems to have ruined my wireless home network, which worked very smoothly with Tiger. After a couple of tries, I was unable to connect wirelessly to my external hard drive (connected directly to Airport). I was then unable to eve

  • How to import .ASE color swatches into DW?

    I have exported some color palettes from Ilustrator. How can I import them into DW in order to create some website color specs in a .css file, please?

  • Error -36 Copying from NTFS Ext HDD to new IMac ver10.6.2

    Last Saturday I purchased a new Imac27. I was told that I could copy files directly from my NTFS formatted external hard drives with no issues. This was true until I tried to move large .avi files (3-9GB) When I copy these files to the Imac, the copy

  • Problem in running parallel query

    Hi All, We have an Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 installed on Microsoft Windows 2000 Advanced Server 5.0.2195 Service Pack 4 Build 2195. And we have a stored procedure which does lots of works. In this procedure, there is

  • Problem in Attachning an Excel File in Email

    Hello Everyone, I have a problem which sends an email containing an excel as an attachment. However, if I check the excel file in the email, the filename is not properly defined, and there is an error stating that the format is not recognizable in ex