Stoping a client live published stream, server side

Hello buddies,
I have a very very important and urgent question.
Suppose in some client a stream is being published live with
the name 'A'. now, if some other client should and tries to publish
with the same name ('A'), it will encounter a 'NetStream.BadName'
status error code, to avoid that I think there should be some way
to stop the stream('A') server side, and then let the 2nd client
starts publishing with name 'A'. if so, how can I stop 'A' stream
on server?
Thank you so much for any help

Let your server call a function (on the first client that
publishes the stream A) that stops the publishing and shows show
local message to that client e.g. "another client has started to
publish a stream with the same name".
It's unclear why you want such a system because you don't fix
the problem ; you fix the symptoms. If you let clients publish a
stream related to their loginname for example you will always have
unique streams on your server.
If you let them connect to an unique instance of your
application you don't even have the problem of non-unique
stream-names because inside every instance you can publish stream A
again.
Viewing clients would connect to each instance if they want
to see that particular stream, like
rtmp://yourserver.com/appnameXYZ/instancenameABC/A
where A is the name of your published stream in instance
"instancenameABC" , which is a child of application called
"appnameXYZ".

Similar Messages

  • Can i build custom p2p stream server-side app

    Can i build custom p2p stream server-side app

    Hi,
    Here are some links that might help you :
    http://help.adobe.com/en_US/flashmediaserver/devguide/WSa4cb07693d123884520b86f312a354ba36 d-8000.html
    Thanks,
    Apurva

  • 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

  • How JMS client operate on JMS server side objects?

    For example, JMS client got an instance of ConnecitonFactory by JNDI call from a remote side JMS server. Thereafter, the client uses this object to set upconnections. My question is that what kind of remote tech this is? Is it RMI or CORBA or something?

    I suspect it boils down to who your JMS Provider is.

  • Server-Side onDemand streamName

    Hi,
    I am trying to get the vod filename clients are playing using server-side scripting. I am able to get the client ip, uri & protocol etc but can only find live streamname examples.
    Thanks.

    See if Admin API listed below are of any help for you:
    http://help.adobe.com/en_US/flashmediaserver/adminapi/WSa4cb07693d12388431df580a12a34991eb c-8000.html#WS5b3ccc516d4fbf351e63e3d11a0d3edb98-7fcf
    http://help.adobe.com/en_US/flashmediaserver/adminapi/WSa4cb07693d12388431df580a12a34991eb c-8000.html#WS5b3ccc516d4fbf351e63e3d11a0d3edb98-7fe5

  • How to refresh a client's browser from server without using Timer !

    Hi,
    can anyone have the code for refreshing the client's browser from server side with out setting the timer . U can do this by setting the Timer from server. but we need some other solution for this problem.
    Thanks.

    There's a meta tag for it.
    Kind regards,
      Levi

  • How to start streaming from server side after applet initialized on client

    Hi,
    I am using JSP for on demand streaming server.
    I have included an applet in jsp page which start new player on client side after on streamreceive event.
    But my problem is how to give call to server that applet on client side has been initialized and now streaming can go on.
    Is there any method / way to call class file which will start streaming?

    Oracle is designed to support connection from client to server. The client originates the connection.
    If you want the server to initiate the connection, you need to make the server pretend it is a client. Oracle even does this internally, when they want to use 'External Procedures'
    You may also use Oracle's Message Queue mechanism, called 'Advanced Queueing' to use a 'publish subscribe' model instead of a connection model. That is discussed in the Advanced Queue manual in the documentation at http://docs.oracle.com
    Finally, you can explore the possibility of using RMI from the database, as discussed in the Java related documentation at the same location.

  • Live video stream play permission on server-side

    I have a live video stream application one-to-many for
    example, and i want to send video only to few clients, not to all.
    Like:
    quote:
    application.onConnect = function(client, canSeeVideo) {
    // canSeeVideo = boolean
    this.acceptConnection(client);
    if (!canSeeVideo) client.receiveVideo(false);
    // and after this, can be swich to TRUE or FALSE ?
    client.receiveVideo(true);
    I only want to do restriction for Video, from server-side
    with FMS, or if can't be possible.. how can i put for example a
    black screen on video ? :) and after can be removed, etc...

    1.
    necesary client.receiveVideo() and client.receiveAudio()
    server-side functions
    Thank you fmslove for you trying to help me but
    client.readAccess property can NOT be set after client
    connection was accepted, and for me is useless. Any other
    solution(s) ? i strong recomend to Adobe FMS dev staff to implement
    this feature because is refering to security client-side solution
    from server-side. I have bad experience with users trying to modify
    the Flash Player (plug-in) run memory and set values for my swf
    without my accept, and is nothing that i can do from client-side
    like NetSream.receiveVideo(false) on many-to-many or one-to-many
    live A/V stream.
    2.
    a necesary server-side video encoder solution better than
    Sorenson Spark
    If in future FMS staff from Adobe will implement this
    necesary security feature on server-side like a copy of
    NetSream.receiveVideo() function from client-side, i will be happy
    if i see a solution to encode LIVE video stream on server-side
    because
    Sorenson Spark video encoder built-in Flash Player (plug-in) is
    very old and unuseful.
    If this can't be possible i hope the future Flash Player
    version (10) will have a better video encoder built-in than
    Sorenson Spark !!!

  • Microsoft Expression Encoder 4 crashes when clicking Start button to begin live smooth streaming to a publishing point created in Windows Server 2012

    Microsoft Expression Encoder 4 crashes when clicking Start button to begin live smooth streaming to a publishing point created in Windows Server 2012, I've got the following error. Can anyone help me with this? Thanks in advance!
    Nombre del evento de problema:    CLR20r3
      Firma del problema 01:    encoder.exe
      Firma del problema 02:    4.0.4276.0
      Firma del problema 03:    4eafa0d7
      Firma del problema 04:    mscorlib
      Firma del problema 05:    4.0.30319.18408
      Firma del problema 06:    52310b91
      Firma del problema 07:    3e69
      Firma del problema 08:    0
      Firma del problema 09:    System.InvalidCastException
      Versión del sistema operativo:    6.2.9200.2.0.0.272.7
      Id. de configuración regional:    3082
      Información adicional 1:    5861
      Información adicional 2:    5861822e1919d7c014bbb064c64908b2
      Información adicional 3:    dac6
      Información adicional 4:    dac6c2650fa14dd558bd9f448e23afd1
    Lea nuestra declaración de privacidad en línea:
      http://go.microsoft.com/fwlink/?linkid=190175
    Si la declaración de privacidad en línea no está disponible, lea la declaración de privacidad sin conexión:
      C:\Windows\system32\es-ES\erofflps.txt

    2014-12-17 16:05:41  Msg 5170, Level 16, State 1, Server \\.\pipe\Microsoft##WID\tsql\query,  Line 2
    Cannot create file 'C:\Windows\WID\Data\SUSDB.mdf' because it already exists
    Looks like somebody forgot to remove the database from the last time WSUS was installed.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Strobe Media Playback Server-Side ABR live streaming

    Does the Strobe Media Playback support server side Adaptive Bit Rate (ABR) streaming for live RTMP streaming? If so, how?

    http://osmf.org/configurator/fmp/
    Use this configurator, and use the same code it generates with your strobemediaplayback.swf
    Also make sure the domain where strobemediaplayback.swf is being called from and resides, is in your /webroot/crossdomain.xml  file, or it will not work.

  • How to get the publish method with server side actionscript?

    We publish this way at client side:
    ns.publish(name, howToPublish);
    How to get this howToPublish at server side?
    application.onPublish = function(){
        //how to know whether the stream's publishing method(live,record,append) here?

    I am not sure whether you can know mode of publish via SSAS, best way would be to use Authorisation Plug-in which can intercept you publish request and get the information which you need - in this case mode of publishing.

  • RTMP & Flash Media Streaming Server Live application

    I'm running Flash Media Streaming Server and have only been serving VOD up until now.  I had my network administrator open up port 1935 to the outside world during the setup process and now I can't remember if that was actually required for streaming VOD to clients.  Most documentation I've read says that this port should be open, but I seem to recall reading something at one point that suggested it wasn't necessary.
    I've just started messing around with publishing live streams using Flash Media Live Encoder to the Flash Media Streaming Server.  I have that working without issue but was surprised to find that no authentication is required before a client running the live encoder can publish a stream to the Flash Media Streaming Server.  An authentication module is available however it only works with Flash Media Interactive Server and Flash Media Development Server.
    If I leave port 1935 open to the outside world, there would be nothing to stop anybody anywhere from streaming video via my server.  Anyone else running a default install of Flash Media Streaming Server and with port 1935 open to the outside should see that this is true of their setup as well.  I'm wondering if I can safely close port 1935 without limiting the functionality of the server or if there's some way I can require authentication prior to publishing a live stream even though I'm not on the four-and-a-half-times-more-expensive edition of the product.

    Now with so many publishers being present its not that trivial to
    design single module which would suffice for whole set of
    publishers.And according to me blocking all publishers right away and
    just allowing FMLE using this plug-in might not be best solution. So it
    is best left to the onus of one who is building solution to customise
    things according to his own needs.
    Bear in mind that not everybody is using FMIS.  Users of FMSS didn't buy this product with the expectation of having to build applications and develop plug-ins (in fact, in the case of the former they explicitly cannot do so) - they bought it so that they could have a streaming server.  As far as users of FMSS are concerned, I would think, the solution has already been built - by Adobe - and it's been found to be lacking a very basic element.
    As it stands, even the authentication add-in that was developed for use with FMLE clients provides no security whatsoever.  It would need to be modified in such a way as to permit access only to FMLE and block other client software before it served any useful purpose.
    So yes, what I think would be useful would be a change at the protocol level / on the server side.  An option to prompt all clients for credentials and allow or deny them access based on their response would be useful.  Otherwise server admins will have to know about each and every piece of client software that may wish to publish a stream to their server and then . . . what - make modifications to their authentication module every time a new client pops up?  Yes, a central, standard authentication system (like what is employed in pretty much every other client-server system that makes provisions for the requirement of authentication) makes a lot of sense.

  • What event does FMS server fire when a clients starts/stops streaming

    I want to log activities on my stream (both live and recorded) using a web service I've made. In the FMS server side AS3 documentation I can find events for onconnect/ondisconnect, but that is not quite what I want. What I want is and event that fires when a user start viewing a stream, or stops viewing.  Today I'm using the following code:
    application.onConnect = function(client)
              client.getStreamLength = function( streamName ) {
                        LogStart('', this.id, this.ip, streamName);
                        return Stream.length( streamName );
       this.acceptConnection(client);
    However not all clients uses the getStreamLength, so this does not realy work. The problem is that in the "onConnect" even I do not have access to the streamname, else I think I could have used this event.
    Thanks in advance

    Hi Wujemurray,
    If you'd be so kind as to email me offlist we'll get a support incident opened for this and can get to the bottom of the issue you're facing.
    Asa
    [email protected]

  • Streaming Live Video using Flash Media Encoder/Flash Media Streaming Server

    We currently get a video feed from local cable channel that gets streamed live to our internet website. It gets encoded first on our Windows 2003 server running Windows Media Encoder and then gets published on another Windows 2003 server running Windows Media Services. We are trying to replace these two servers with another solution and the two things driving this project are:
    1. These two servers are coming to an end of life cycle so we need to replace the hardware and upgrade the OS.
    2. They currently only support Windows compatible file formats. Just like other organizations out there, iPAD users are popping up and they want to view these video streaming from their iPAD.
    That's why we are looking at Adobe Flash Media Encoder3 and Flash Media Streaming Server 4.5. My questions for the experts out there are:
    1. Can Adobe Flash Media Encoder and Adobe Flash Media Streaming Server can replace our current solution?
    2. Do we need both Flash Media Encoder and Flash Media Streaming Server or can Flash Media Streaming Server also can encode video feed?
    3. Can Flash Media Encoder and Flash Media Streaming Server can run on the same server?
    4. Our Windows Media Services server also has few on-demand publishing points along with a live video streaming. Can above mentioned Adobe products support having live streaming publishing point along with on-demand video publishing points?
    5. Does Adobe Flash Media Encoder only support Flash and Quicktime or does it also support .wmv?
    I called the sales to find the answers to these questions but he basically read the features listed on the Adobe product website and couldn't really answer these questions.
    Any help in find the answers to these questions will be greatly appreciated.
    Thanks you.

    FYI - I was able to do it by using the "onFI" handler of the embedded NetStream object.
    myVideo.addEventListener(fl.video.VideoEvent.STATE_CHANGE, onVideoStateChange);
    function onVideoStateChange(evt:fl.video.VideoEvent)
      // trace("State = " + evt.state);
      if ( evt.state == "playing" )
      if (!ns)
      ns = myVideo.getVideoPlayer(evt.vp).netStream;
      ns.client.onFI = onFIHandler;
    function onFIHandler(infoObj:Object):void
      var ts:String = infoObj.st;
      trace("system time: " + ts);
      ExternalInterface.call("updateTimeStamp", ts);

  • Server-Side stream play problem

    Hello,
    I have a problem, which I am trying to solve for many nights already without any success.
    Everytime I try to switch or change a server-side stream, it starts lagging after 2 seconds of playing and sound disappears.
    Here are scenarios that result in that terrible lag:
    1. I create server-side playlist with stream.play() with reset=false; when it is time to play the next movie in the playlist, it starts lagging after 2 seconds.
    2. The same problems appears when I just switch streams. I installed FMF Feature Explorer and tried to launch SwitchStreams sample application: the same problem - server stream starts lagging after I switch streams with stream.play().
    I tried on different servers (local and remote), with different players (debug player of FMS Admin Console, Standard Flash videoplayer component, OSMF player, Flex video player). I also tried all possible flv, f4v and mp4 file compression options for video files - still the same problem.
    I have also tried literally thousands of Application.xml settings: changing buffer, buffer ration etc.
    Is there any tip where I should search for a solution?
    Thank you in advance

    JayCharles,
    Thank you for your reply.
    But in my case the client is subscribed to a stream on the FMS. And that stream is switching video files and handling the playlist. So, I don't see any possibility to listen to onPlayStatus on a client-side, as my client is only playing live stream and has no clue what is happening on the server side.
    Or I am wrong?

Maybe you are looking for

  • Message: To play this movie in HD, you must have a computer with a built-in display ...

    I rarely use iTunes, prefer, for obvious reasons to own physical media (which is prompting this question). But I do have an iPad 4 so I have to use it. I bought a movie on iTunes and have downloaded it to a new brand new Windows 8 laptop. I am gettin

  • Using visibleCells to reference a cells image

    I am trying to set the image a cell - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView NSArray *visibleCells = [tableView visibleCells]; int i; for (i=0; i<visibleCells count; i++) { UITableViewCell *currentCell = [visibleCells objectAtI

  • Poor focus on close up photos SX280HS

    Hi. I have a 6 month old SX280HS which replaced a similar 3 year old Canon P&S (identity forgotten). Both have had the same problem, which caused me to replace the first, thinking it had gone wrong and was just out of warantee. I use these cameras fo

  • Cisco 1811W stopped allowing wireless connection of domain laptops

    I have a Cisco 1811W that after several years in service suddenly stopped allowing any wireless connection to laptops on the domain. It allows hard wired connections and devices that are just using the wireless hot spot like iPads and Iphones but not

  • Sd split billing document

    hi all, If I have to work with a flow sales order - billing (no delivery), is it possible to process different billing document for each item inserted in the sales order? what I hve to set in customizing?? thanks in advance