Results 1 to 3 of 3

Thread: Stream cut

  1. #1
    Join Date
    Sep 2013

    Question Stream cut

    Hi All,
    I would like to make array of session/stream for example
    ConcurrentHashMap<Integer, HTTPStreamerSessionCupertino> ar = new ConcurrentHashMap<Integer, HTTPStreamerSessionCupertino>();

    and when i check for example stream number 1 , or i want to "kill" stream


    Problem is next: httpSession for cupertiono does not work - probably , it work only on start not in "middle"

    I know that Stream stream , if put like this would work , but i dont know how to "extract" or get Stream stream from method public void onHTTPSessionCreate or
    public void onHTTPCupertinoStreamingSessionCreate

    So my question is: How to make Stream stream from current httpSession , and "kill" stream (cupertino).
    or there is another way to put "something" that i could triggered any time I want to stop streaming for one client (in this case stream number 1 or any different ID , getSessionID )

    httpSession for cupertino does not work like this for me.
    Only on start - before playing stream.
    Last edited by vladimirc81; 09-03-2013 at 02:39 AM.

  2. #2



    You are correct. rejectSession() only works before the stream is started.

    You need to use a different approach.

    String sessionid = ar.get(1).getSessionId();
    Because http sessions are not persistent, they will try to immediately reconnect. It will get recreated with the same session id that you just closed. You also need to then reject the session in onHTTPSessionCreate.


  3. #3
    Join Date
    Sep 2013


    Ok ,
    I check - it works.
    This is what i need to have to make final plugin.

    Thank you

Similar Threads

  1. How to convert 4:3 to 16:9 live stream with cut up&down part frames?
    By Oleg39 in forum Live Streaming and Encoders
    Replies: 1
    Last Post: 05-30-2014, 03:56 AM
  2. Streams Delayed and Cut Off
    By Moresheth in forum Server Administration Discussion
    Replies: 2
    Last Post: 10-03-2012, 12:08 PM

Posting Permissions

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