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

HlsMediaSource.Factory is missing? #1061

Open
wilsonvargas opened this issue Dec 16, 2024 · 1 comment
Open

HlsMediaSource.Factory is missing? #1061

wilsonvargas opened this issue Dec 16, 2024 · 1 comment

Comments

@wilsonvargas
Copy link

wilsonvargas commented Dec 16, 2024

Android framework version

net8.0-android

Affected platform version

net8.0-android, Xamarin.AndroidX.Media3.ExoPlayer.Hls 1.5.0

Description

Following this guide, I need to use HlsMediaSource.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 HlsMediaSourceFactory anywhere.

Steps to Reproduce

  1. Install Xamarin.AndroidX.Media3.ExoPlayer.Hls Nuget package.
  2. Try accessing HlsMediaSource.Factory or HlsMediaSourceFactory.
DefaultDataSource.Factory defaultDataSourceFactory = new DefaultDataSource.Factory(Context);
_trackSelector = new DefaultTrackSelector(Context);

//Here get error: The type name 'Factory' does not exist in the type 'HlsMediaSource'
var mediaSource = new HlsMediaSource.Factory(defaultDataSourceFactory);

var _exoPlayer = new ExoPlayerBuilder(Context).SetMediaSourceFactory(mediaSource).SetTrackSelector(_trackSelector).Build();
_exoPlayer.Prepare();
_videoView.Player = _exoPlayer;

Did you find any workaround?

No response

Relevant log output

No response

@moljac
Copy link
Contributor

moljac commented Dec 16, 2024

@wilsonvargas Thanks for the feedback.

I need to take a look. Sometimes I have to use remove-node, because bindings get overly complicated and take too much time. OTOH, our tooling is not ideal and API is skipped sometimes by tool[s] itself.

I will take a look and report it here and then see how to fix it.

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

No branches or pull requests

2 participants