Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Android media player supply session id in the HTTP request headers?

I know that iOS AV player supplies a UUID session ID in the HTTP request header X-Playback-Session-Id when requesting content chunks from an HTTP streaming server.

What is the behavior of the Android media player in this case? Does it send its session ID to the server at all? If it does, what HTTP request header does it use for this purpose?

Thanks in advance for any feedback!

like image 951
Olaf Avatar asked Jan 10 '12 14:01

Olaf


Video Answer


1 Answers

Having implemented an in-app HTTP server to stream data into an Android MediaPlayer, I am reasonably certain that the HTTP request does not include any session id header. As I remember it, the HTTP request is pretty basic.

The Android component that handles all that is called "libstagefright"... you can fish through the source code to see what it actually does. Here's one version of the relevant source file that isn't too old: https://github.com/nadlabak/android_frameworks_base/blob/gingerbread/media/libstagefright/NuHTTPDataSource.cpp

like image 116
Reuben Scratton Avatar answered Sep 28 '22 05:09

Reuben Scratton