Results 1 to 4 of 4

Thread: How to stop liverepeater-edge stream from Java?

  1. #1

    Question How to stop liverepeater-edge stream from Java?

    Hi!

    There is a stream running through edge application. How can we stop it from java? Stream source is provided by AliasProvider, so it wont launch again as AliasProvider will return wrong URL upon future client requests. But those who were already connected while it had proper alias resolve, keep watching it. Stream is not in MediaCasterStreamManager, we cant stop it from there.

    We need to stop the stream, disconnect all clients connected to this stream, and completely purge it from edge application.

    Any advice?

    Many thanks, Alex.

  2. #2
    Join Date
    May 2013
    Posts
    681

    Default

    Hello Alex,

    If you are looking for some code to get you started in that direction, I'd suggest viewing our ModuleTimeDisconnect module in our collection. Take a look at the Disconnecter class as it demonstrates how to disconnect clients and you could use that as a starter for your new module.

    Otherwise you can control the process by which the edge resolves the stream. Take a look at our event listeners for IMediaStreamNameAliasProvider2 interface. You can then make the determination of which streams are to be resolved by the respective origin(s) by handling the resolvePlayAlias and/or resolveStreamAlias events.

    Thanks,

    Matt

  3. #3

    Default

    Hello Matt,

    we already have IMediaStreamNameAliasProvider2 implemented, so we do control the way streams are resolved. But not resolving stream does not help with one that was already resolved and is being played. Do you say proper way to stop it is to just go through the clients/sessions and disconnect/shutdown everybody connected to this stream?

    Thanks,

    Alex.
    Last edited by AlexeyTs; 07-31-2014 at 04:24 AM.

  4. #4
    Join Date
    May 2013
    Posts
    681

    Default

    Hello Alex

    That in conjunction with handling future requests via the IMediaStreamNameAliasProvider2 (as you are already) should handle it.

    Thanks,

    Matt

Similar Threads

  1. Replies: 11
    Last Post: 08-21-2013, 07:36 AM
  2. Replies: 3
    Last Post: 02-01-2013, 12:36 PM
  3. Stream class on liverepeater-edge application
    By notreg in forum Server-side Modules and Code Samples Discussion
    Replies: 6
    Last Post: 07-31-2012, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •