question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RTSP: One of more mandatory SDP fields are not set

See original GitHub issue

When filing a question:

Describe your question in detail. use ExoPlayer play rtspUri,cant play,error is “One of more mandatory SDP fields are not set ” timing is null

the rtsp url from camera is “rtsp://192.168.1.168/main”

the reason maybe is fromthe video from the camera , how to solve it?if the reason is from the camera , how to set the camera ?or other way to solve it is?

  • Output of running $ adb bugreport in the console
Playback error
      com.google.android.exoplayer2.ExoPlaybackException: Source error
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:640)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
        at android.os.Handler.dispatchMessage(Handler.java:108)
        at android.os.Looper.loop(Looper.java:216)
        at android.os.HandlerThread.run(HandlerThread.java:65)

Caused by: java.io.IOException: com.google.android.exoplayer2.ParserException
        at com.google.android.exoplayer2.source.rtsp.RtspMediaPeriod$InternalListener.onSessionTimelineRequestFailed(RtspMediaPeriod.java:652)
        at com.google.android.exoplayer2.source.rtsp.RtspClient.dispatchRtspError(RtspClient.java:317)
        at com.google.android.exoplayer2.source.rtsp.RtspClient.access$700(RtspClient.java:75)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.handleRtspResponse(RtspClient.java:656)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.handleRtspMessage(RtspClient.java:507)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener.lambda$onRtspMessageReceived$0$com-google-android-exoplayer2-source-rtsp-RtspClient$MessageListener(RtspClient.java:500)
        at com.google.android.exoplayer2.source.rtsp.RtspClient$MessageListener$$ExternalSyntheticLambda0.run(Unknown Source:4)
        at android.os.Handler.handleCallback(Handler.java:907)

 Caused by: com.google.android.exoplayer2.source.rtsp.RtspMediaSource$RtspPlaybackException: com.google.android.exoplayer2.ParserException

Caused by: com.google.android.exoplayer2.ParserException
        at com.google.android.exoplayer2.source.rtsp.SessionDescriptionParser.parse

 Caused by: java.lang.IllegalStateException: One of more mandatory SDP fields are not set.

In case your question is related to a piece of media:

video from camera cant cant provide

Don’t forget to check supported formats and devices nothing to do with devices

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
clainclycommented, Apr 20, 2022

If you look at RFC2327 Section 6, those fields are mandatory. That said, we don’t use these fields in the RTSP logic, so it’s safe to remove the check.

We’ll have a change to remove this check.

0reactions
NicolasGodfathercommented, Apr 21, 2022

Thanks! Will be perfect if you remove this check.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC 2326: Real Time Streaming Protocol (RTSP) - IETF
RTSP requests may be handled by proxies, tunnels and caches as in HTTP/1.1 [2]. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL...
Read more >
RFC 4566: SDP: Session Description Protocol
An RTSP client and server negotiate an appropriate set of parameters for media delivery, partially using SDP syntax to describe those parameters. 3.3....
Read more >
Session Description Protocol - Wikipedia
The Session Description Protocol (SDP) is a format for describing multimedia communication sessions for the purposes of announcement and invitation.
Read more >
Use of SDP for RTSP Session Descriptions - CS @ Columbia
aggregate control: A presentation composed of streams from one or more ... Codec-specific parameters are not specified in this field, but rather in...
Read more >
Session Description - an overview | ScienceDirect Topics
An SDP message is composed of a series of lines, called fields, whose names are abbreviated by a single lowercase letter and are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found