Page 1 of 1

Pause rtsp for change android screen orientation. Android

Posted: 31 Mar 2023 17:35
by ge0graff
I get the URL of the rtsp video stream and start playing the video on TextureView. Next, when flipping the phone, I would like to recreate the VIew and continue watching the video from the place of interruption. To do this, I use pause() detachView() - setView... attachView() play(). But in this case I get: libvlc demux: SETUP of' video/H264' failed This computer has an invalid IP address: 0.0.0.0. What could be the error? Is it my fault or is it the server's fault? When using HLS, everything is fine! Thanks for the answer!

Expected behavior
The video continues from the stop point after changing the View.

Actual behavior
The video does not play.
Error: libvlc demux: SETUP of' video/H264' failed This computer has an invalid IP address: 0.0.0.0.
or libvlc demux: SETUP of'video/H264' failed 500 Internal Server Error
logs:
https://gist.github.com/ge0graff/ace9de ... 858a2ec5dc

Steps to reproduce
1.Get a link of the form rtsp://....:8080/rtsp/58779179/szODmfJsevzyXMOJ2aEF
2.Display video on TextureView
3.Perform a screen flip.