AndroidX icon indicating copy to clipboard operation
AndroidX copied to clipboard

[AndroidX.Media3.ExoPlayer] Removing MediaSourceFactory causes MediaSources not to inherit IMediaSourceFactory

Open ArchangelWTF opened this issue 1 year ago • 1 comments

Android application type

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

Affected platform version

VS 2022

Description

Your supposed to be able to set MediaSources in ExoPlayer, however this is currently not possible as no MediaSource inherits IMediaSourceFactory (Due to it being removed)

I've been hitting my head into a wall on this issue for quite some time with your bindings, yet when I try to replicate them in ExoPlayerXamarin I never get the issue error CS0101: The namespace 'AndroidX.Media3.ExoPlayer.Source' already co ntains a definition for 'MediaSourceFactory' [D:\Jesse\AndroidX\generated\androidx.media3.media3-exoplayer\androidx.med ia3.media3-exoplayer.csproj::TargetFramework=net8.0-android] which seems to make me believe something else in this project is causing it to fail.

Steps to Reproduce

Using SetMediaSourceFactory will not work on any of the MediaSources (As they dont inherit IMediaSourceFactory)

Build a new instance of ExoPlayer with ExoPlayerBuilder and try to use SetMediaSourceFactory to set a MediaSource.

Did you find any workaround?

No response

Relevant log output

No response

ArchangelWTF avatar Sep 04 '24 12:09 ArchangelWTF

Found a fix for this, will PR it soon as well as some other changes to the media3 bindings

ArchangelWTF avatar Sep 05 '24 08:09 ArchangelWTF

This should be fixed in latest versions.

If not open new issue please

moljac avatar Jan 27 '25 10:01 moljac