33

i just want to know what is the difference between rtsp and rtmp protocol and if there are mp3s on my server and i am playing it in my android using http,how these differs in work.

In android if i want to implement rtmp or rtsp ,which is the best? what are the limitation of rtmp & rtsp in android?

can anybody give me brief answer for above?

Dheeraj Vepakomma
  • 26,870
  • 17
  • 81
  • 104
Hitendra
  • 3,218
  • 7
  • 45
  • 74

2 Answers2

39

The Real Time Streaming Protocol (RTSP) is a network control protocol designed for use in entertainment and communications systems to control streaming media servers. The protocol is used for establishing and controlling media sessions between end points. Clients of media servers issue VCR-like commands, such as play and pause, to facilitate real-time control of playback of media files from the server.

Real Time Messaging Protocol (RTMP) was initially a proprietary protocol developed by Macromedia for streaming audio, video and data over the Internet, between a Flash player and a server.

I would use HTTP to stream MP3.

evilone
  • 22,410
  • 7
  • 80
  • 107
14

They are both protocols for Streaming Media and on a high level achieve the same thing - Specify a standard to stream media. Although RTMP was developed and owned by Adobe before being made public , whereas RTSP was a public standard from the beginning. Since RTMP is mostly used by Flash player , i would assume that the android media player class streams using RTSP.

Abhijith
  • 2,592
  • 5
  • 18
  • 30
  • The Android Media Player class can indeed be used for playing RTSP streams, but this does not mean that all Android devices can play the video since that depends on the capabilities of the device's chipset. The H.264 codec knows different [profiles](https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Profiles) and [levels](https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels) and not every Android device can decode the same profiles/levels. To make sure every device can decode the video, a framework could be used. – Matthijs Jun 21 '16 at 08:16
  • The question is about MP3-streaming. – frodeborli Nov 26 '16 at 10:25