What is the difference between RTP or RTSP in a streaming server?

You are getting something wrong… RTSP is a realtime streaming protocol. Meaning, you can stream whatever you want in real time. So you can use it to stream LIVE content (no matter what it is, video, audio, text, presentation…). RTP is a transport protocol which is used to transport media data which is negotiated over … Read more

HTML5 – How to stream large .mp4 files?

Ensure that the moov (metadata) is before the mdat (audio/video data). This is also called “fast start” or “web optimized”. For example, Handbrake has a “Web Optimized” checkbox, and ffmpeg and avconv have the output option -movflags faststart. Ensure that your web server is reporting the correct Content-Type (video/mp4). Ensure that your web server is … Read more

What is the difference between MediaPlayer and VideoView in Android

Was asking the same question and as I understood from what Mark (CommonsWare) advised on numerous threads here, VideoView is a wrapper (200 hundred lines of code) for MediaPlayer and SurfaceView to provide embedded controls. He also kindly shared some examples: https://github.com/commonsguy/cw-advandroid/blob/master/Media/Video/src/com/commonsware/android/video/VideoDemo.java https://github.com/commonsguy/vidtry/blob/master/src/com/commonsware/android/vidtry/Player.java and example from android sdk http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo.html Also some people had issues playing … Read more

Chrome hangs after certain amount of data transfered – waiting for available socket

Explanation: This problem occurs because Chrome allows up to 6 open connections by default. So if you’re streaming multiple media files simultaneously from 6 <video> or <audio> tags, the 7th connection (for example, an image) will just hang, until one of the sockets opens up. Usually, an open connection will close after 5 minutes of … Read more

Live-stream video from one android phone to another over WiFi

If you do not need the recording and playback functionality in your app, using off-the-shelf streaming app and player is a reasonable choice. If you do need them to be in your app, however, you will have to look into MediaRecorder API (for the server/camera app) and MediaPlayer (for client/player app). Quick sample code for … Read more

Streaming via RTSP or RTP in HTML5

Technically ‘Yes’ (but not really…) HTML 5’s <video> tag is protocol agnostic—it does not care. You place the protocol in the src attribute as part of the URL. E.g.: <video src=”rtp://myserver.com/path/to/stream”> Your browser does not support the VIDEO tag and/or RTP streams. </video> or maybe <video src=”http://myserver.com:1935/path/to/stream/myPlaylist.m3u8″> Your browser does not support the VIDEO tag … Read more