-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTSP session timeout and keepalive #662
Labels
Comments
copybara-service bot
pushed a commit
that referenced
this issue
Oct 5, 2023
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
copybara-service bot
pushed a commit
to google/ExoPlayer
that referenced
this issue
Oct 5, 2023
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: