Skip to content
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

Screen Casting,miracast wifi-direct,player rtsp uri by exoplayer,throw Caused by: java.io.IOException: DESCRIBE not supported #1874

Open
1 task done
rooony opened this issue Nov 11, 2024 · 1 comment
Assignees
Labels

Comments

@rooony
Copy link

rooony commented Nov 11, 2024

Version

Media3 1.4.1

More version details

release media3 1.4.1

Devices that reproduce the issue

Must appear, all devices

Devices that do not reproduce the issue

Must appear, all devices

Reproducible in the demo app?

No

Reproduction steps

screen casting by miracast, wifi direct
source: android 14
sink: android 10

  1. wifi direct
  2. two devices are connected via wifi-direct
  3. start playing after get ip and port by wifi-direct, uri: rtsp://ip:port
private void play() {
        PlayerView playerView = findViewById(R.id.playerview);
        ExoPlayer exoPlayer = new ExoPlayer.Builder(this).build();
        playerView.setPlayer(exoPlayer);
        exoPlayer.setMediaItem(MediaItem.fromUri(Uri.parse("rtsp://192.168.49.17:7236")));
        exoPlayer.prepare();
        exoPlayer.play();
    }

throw Caused by: java.io.IOException: DESCRIBE not supported

Expected result

Screen casting successful

Actual result

screenshot-20241111-155539

Playback error
androidx.media3.exoplayer.ExoPlaybackException: Source error
at androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:736)
at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:712)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.io.IOException: DESCRIBE not supported.
at androidx.media3.exoplayer.rtsp.RtspMediaPeriod$InternalListener.onSessionTimelineRequestFailed(RtspMediaPeriod.java:697)
at androidx.media3.exoplayer.rtsp.RtspClient$MessageListener.onOptionsResponseReceived(RtspClient.java:709)
at androidx.media3.exoplayer.rtsp.RtspClient$MessageListener.handleRtspResponse(RtspClient.java:627)
at androidx.media3.exoplayer.rtsp.RtspClient$MessageListener.handleRtspMessage(RtspClient.java:527)
at androidx.media3.exoplayer.rtsp.RtspClient$MessageListener.lambda$onRtspMessageReceived$0$androidx-media3-exoplayer-rtsp-RtspClient$MessageListener(RtspClient.java:520)
at androidx.media3.exoplayer.rtsp.RtspClient$MessageListener$$ExternalSyntheticLambda0.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214) 
at android.os.HandlerThread.run(HandlerThread.java:67) 

screenshot-20241112-101500

screenshot-20241112-101919

Can DESCRIBE be set as optional? Handling non-standard rstp responses

Or there may be other reasons

Media

none

Bug Report

@microkatz
Copy link
Contributor

@rooony

Thank you for reporting your issue! Is the problem that your server does support DESCRIBE but provides a non-empty RTSP OPTIONS response without DESCRIBE? Or is it that your server does not support DESCRIBE at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants