Results 1 to 5 of 5

Thread: distunguish between incomming and outgoing RTSP session

  1. #1

    Default distunguish between incomming and outgoing RTSP session

    Hi
    how can I check whether session in public void onRTPSessionCreate(RTPSession rtpSession) handler is connected user or incomming stream ?
    Alex

  2. #2

    Default

    Hi,

    You should be able to tell by calling

    rtpSession.getRTSPStream().isModePublish()

    You may need to experiment with .isModeUknown() or .isModePlay() just in case.

    Shamrock

  3. #3

    Default

    Shamrock,
    thank you for quick reply.
    Could you please specify the case when isModeUknown will be returned ? I checked that incomming stream return true for isModePublish() but I need to know when I can catch Uknown mode to be prepared.
    Thanks a lot.
    Alex

  4. #4

    Default

    Hi,

    I suspect ModeUknown is given when a client is connected but not playing or publishing a stream. it may be the beginning of a connection or perhaps waiting for other data. It may be a connection you have to come back later when it has completed setup so then registering the type.

    Unfortunately an unknown state is impossible to determine the reasons why, hence unknown.

    Shamrock

  5. #5

    Default

    Shamrock,
    thanks for reply. I got the point
    Alex

Similar Threads

  1. Replies: 4
    Last Post: 10-25-2012, 08:36 AM
  2. Get RTSP Session in onStreamCreate
    By asimkhan in forum Live Streaming and Encoder Discussion
    Replies: 5
    Last Post: 02-23-2012, 07:21 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
  •