Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Visitor
BB1312
Posts: 1
Registered: ‎11-02-2012
My Device: Blackberry Torch
My Carrier: Airtel

Tunneling RTSP over HTTP

Hi,

 

We are trying to implement RTSP streaming over HTTP tunneling. 

We tried below options

  • Blackberry Streaming directly through Player:
    1. Player created using rtsp url rtsp: // <media server>:554
    2. The player is issuing all the commands (OPTIONS, DESCRIBE, SETUP)But, the player is sending OPTIONS command repeatedly (even after getting the response) and no response is received for PLAY.

At this step, we are unable to proceed due to lack of help on how Blackberry Player works.

 

  • RTP over RTSP does not work in our case. Since, the media server doesn’t support.
  • Tunneling RTSP over HTTP

Created Custom Data source and Stream source. Overridden connect, start methods to perform below actions.

Inside Connect method

Created a socket connection to the server. Sent GET command to the server.

-    Received HTTP OK response from server.

    • Created another socket connection to server to POST the RTSP commands.
    • Sent POST command
    • Sent DESCRIBE command

-          Received RTSP OK response from server.

Inside Start method

Sent SETUP command

-    Received RTSP OK response from server.

          • Sent PLAY command

-     Receiving the data (RTP Packets).

 

Here we are following below approaches, to play the data received

  1. Directly passing the input stream to the Player is not working.
  2. Then we tried creating a custom data source and feed it to player, in this case Player is buffering but not playing.
  3. We followed the approach given this below link; this example does not stream RTP packets.

http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255

 

Links provided by blackberry does not give much information about RTSP over HTTP.

http://supportforums.blackberry.com/t5/Java-Development/problem-with-playing-rtsp-media-link/td-p/60...

http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255

https://github.com/mjrusso/videostreaming-blackberry

 

 

We are using below approach for Tunneling RTSP through HTTP

https://developer.apple.com/quicktime/icefloe/dispatch028.html

 

Queries:

  1. Does Blackberry media player can stream RTP packets directly?
  2. If we need to parse the RTP packets, is there any recommended approach to do this?
  3. Is there any blackberry documentation to do rtsp over http tunneling?
Please use plain text.
Administrator
MSohm
Posts: 14,241
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Tunneling RTSP over HTTP

Neither the Player class nor the built in media player application supports RTP.  If you wish to use RTP you'd have to extract the payload and pass it to the Player as a custom data source.  We don't have any examples of how to do this, but there are samples out on the web that show how to extract the payload.

 

You can find a complete list of supported media types as well as which ones can be streamed over RTSP here:

 

Supported Media Types on BlackBerry Smartphones

 

HTTP tunneling of RTSP isn't really supported either, and could likely run into issues at the carrier/firewall/etc levels doing this.  Can you explain why you can use straight RTSP?

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.