Does the Android Android player support session identifiers in HTTP request headers?

I know that iOS AV Player provides the UUID of the session identifier in the X-Playback-Session-Id HTTP request header when requesting fragments of content from a streaming HTTP 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 so, which HTTP request header does this use?

Thanks in advance for any feedback!

+4
source share
1 answer

Having implemented the HTTP server in the streaming application in Android MediaPlayer, I am sure that the HTTP request does not include the session identifier header. As I recall, the HTTP request is quite simple.

An Android component that handles everything called "libstagefright" ... you can fish through the source code to see what it actually does. Here is one version of the corresponding source file that is not too senile: https://github.com/nadlabak/android_frameworks_base/blob/gingerbread/media/libstagefright/NuHTTPDataSource.cpp

+4
source

Source: https://habr.com/ru/post/1390251/


All Articles