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

RtspMediaSource.Factory is missing? #985

Open
datvm opened this issue Sep 28, 2024 · 0 comments
Open

RtspMediaSource.Factory is missing? #985

datvm opened this issue Sep 28, 2024 · 0 comments
Labels
missing-api Java types/members not available in binding

Comments

@datvm
Copy link

datvm commented Sep 28, 2024

Android application type

Android for .NET (net6.0-android, etc.)

Affected platform version

net8.0-android, Xamarin.AndroidX.Media3.ExoPlayer.Rtsp 1.4.1

Description

Following this guide, I need to use RtspMediaSource.Factory but I can't find it anywhere. Sorry if there is a convention I do not know but I see there is ExoPlayerBuilder for ExoPlayer.Builder but no RtspMediaSourceFactory anywhere.

Steps to Reproduce

  1. Install Xamarin.AndroidX.Media3.ExoPlayer.Rtsp Nuget package.
  2. Try accessing RtspMediaSource.Factory or RtspMediaSourceFactory. Java guide code:
// Create an RTSP media source pointing to an RTSP uri.
MediaSource mediaSource =
    new RtspMediaSource.Factory().createMediaSource(MediaItem.fromUri(rtspUri));
// Create a player instance.
ExoPlayer player = new ExoPlayer.Builder(context).build();
// Set the media source to be played.
player.setMediaSource(mediaSource);
// Prepare the player.
player.prepare();

Did you find any workaround?

No response

Relevant log output

No response

@jpobst jpobst added the missing-api Java types/members not available in binding label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing-api Java types/members not available in binding
Projects
None yet
Development

No branches or pull requests

2 participants