dotnet/android-libraries

RtspMediaSource.Factory is missing?

datvm opened this issue · 0 comments

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