You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timeout parameter is only allowed in a response header. The
server uses it to indicate to the client how long the server is
prepared to wait between RTSP commands before closing the session due
to lack of activity (see Section A). The timeout is measured in
seconds, with a default of 60 seconds (1 minute).
Set KeepAliveMonitor to send a keep-alive message at half the timeout value, if provided, by the RTSP Setup response.
Issue: #662
PiperOrigin-RevId: 570946237
Set KeepAliveMonitor to send a keep-alive message at half the timeout value, if provided, by the RTSP Setup response.
Issue: androidx/media#662
PiperOrigin-RevId: 570946237
I submitted a commit, 42c1846, to the androidx/media main branch. It makes the RtspClient utilize the timeout value provided in the SETUP response. Hopefully that will address your issue! Please re-open or create a new issue if it did not. Thanks for reporting your problem!
Set KeepAliveMonitor to send a keep-alive message at half the timeout value, if provided, by the RTSP Setup response.
Issue: #662
PiperOrigin-RevId: 570946237
(cherry picked from commit 42c1846)
Version
Media3 1.1.1
More version details
No response
Devices that reproduce the issue
tested on several emulators (Android Studio Emulator, MUMU12) and Redmi Note 8T
RTSP source: 70MAI Dash Cam A800S
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
according to rfc2326, the second parameter in "Session" in the response header is a timeout:
it is this timeout that must be used when creating androidx.media3.exoplayer.rtsp.RtspClient.KeepAliveMonitor instead of androidx.media3.exoplayer.rtsp.RtspClient.DEFAULT_RTSP_KEEP_ALIVE_INTERVAL_MS = 30_000.
this will allow to use servers that have a session timeout of less than 30 seconds, such as DVRs.
Expected result
video plays for a long time
Actual result
playback stops after 3 seconds
Media
video stream from 70MAI Dash Cam A800S
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: