Video Stream Quality http in VideoView (Adaptive Streaming)

I am working on a video streaming application. I have to transmit * .wvm, which is an adaptive stream and protected by DRM. Since a search and buffering function is required, I have a custom VideoView.

PROBLEM:

1) In almost every Android device, a video has poor video quality. On other platforms (SmartTV, iOS), it seems that the same video is in HD quality. Why is it of such poor quality? How can I affect the quality of the video stream?

2) But sometimes the video is downloaded in HD quality, but if so, the search does not work:

08-16 17:02:58.255: E/MediaPlayer(18024): error (1, -110) 
  • I was looking for MediaPlayer error code descriptions, but I could not find anything (there was some * .h file with some error codes in GitHub, but that was not complete).
  • I have a SeekBar with OnSeekListener . When seeek is finished, I call MediaPlayer.seek(int offset); . This works great when a video is downloaded with low quality, but high quality video cannot be found with the error above.

3) Target devices are almost all new Samsung devices for Android (SIII, SIV, TAB3, etc.) with JB 4.1 +.

4) There is a specification of the video stream (WVMetaPrint output)

Thank you for any suggestions or comments.

+4
source share

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


All Articles