AndroidX icon indicating copy to clipboard operation
AndroidX copied to clipboard

Bind "androidx.media3"

Open ivs88 opened this issue 2 years ago • 12 comments

Description

Media3 is stable now! https://developer.android.com/jetpack/androidx/releases/media3

ivs88 avatar Mar 24 '23 04:03 ivs88

Any news on this?

Soap-141 avatar Jul 18 '23 15:07 Soap-141

Any news on this?

I made some progress, but still quite a lot to do.

moljac avatar Jul 24 '23 12:07 moljac

Any news on this?

I made some progress, but still quite a lot to do.

Just in case this helps there is this project with ExoPlayer bindings https://github.com/Baseflow/ExoPlayerXamarin

ivs88 avatar Jul 24 '23 13:07 ivs88

Howdy, sorry to be that guy. Has there been any progress made on this?

Specifically I wish to consume the Media3.Transformer set of classes. Or if anyone knows of an alternative that can be used in the meantime.

Much appreciated.

thomasphillipsgb avatar Oct 03 '23 16:10 thomasphillipsgb

@Maxgamerboy1 There's a PR that I've made in ExoPlayerXamarin https://github.com/Baseflow/ExoPlayerXamarin/pull/166 that should fully work for most stuff Media3, when Media3 finally gets it's bindings here it should be fully compatible too due to having no changing namespaces.

@moljac If it's any help feel free to take from those bindings as well, I'd also be glad to help out in binding Media3 if it's needed.

ArchangelWTF avatar Oct 03 '23 17:10 ArchangelWTF

Howdy, sorry to be that guy.

Someone has to be that guy, but it is OK.

Has there been any progress made on this?

Yes. I managed to grab some extra time to finish it in last few weeks.

moljac avatar Oct 04 '23 09:10 moljac

@moljac If it's any help feel free to take from those bindings as well, I'd also be glad to help out in binding Media3 if it's needed.

@ArchangelWTF Thanks a lot. I will take a look for sure.

moljac avatar Oct 04 '23 09:10 moljac

Happy to see this is being worked on! Is there any estimate on how long it might take approx. until it's released? Just so that I can decide if I should try to bind it myself based on the existing branch or if I should rather wait for the official bindings

tipa avatar Dec 07 '23 11:12 tipa

Happy to see this is being worked on!

I wish I could do it faster, but

Is there any estimate on how long it might take approx. until it's released?

I have some troubles with idioms. I could nuke (remove-node), but my religious beliefs are against it.

Just so that I can decide if I should try to bind it myself based on the existing branch or if I should rather wait for the official bindings

You can try and teach me.

I hope - january. Holidays and I need mental challenge to heal my PTSD.

moljac avatar Dec 15 '23 12:12 moljac

Almost done. Few weird issues I am investigating, but...

https://github.com/xamarin/AndroidX/pull/779

moljac avatar Jan 04 '24 06:01 moljac

Ready for review.

Release most likely next week

moljac avatar Mar 02 '24 21:03 moljac

@moljac This is awesome, please let me know when this is out I plan on working on a .NET MAUI Lib for this

FreakyAli avatar Mar 08 '24 06:03 FreakyAli

Published

https://www.nuget.org/packages?q=AndroidX.Media3

moljac avatar Jul 30 '24 18:07 moljac

Thanks for releasing @moljac! Looks like this wasn't the most trivial package to bind :)

I am planning to use the AndroidX.Media3.Transformer package to transcode video & audio. Unfortunately, I am hitting a problem right away, when trying to follow the guides from Google: https://developer.android.com/media/media3/transformer/getting-started#start

var inputMediaItem = MediaItem.FromUri(uri);
var editedMediaItem = new EditedMediaItem.Builder(inputMediaItem).SetRemoveAudio(true).Build();

The EditedMediaItem class doesn't seem to be present (not bound?), the same seems to be the case for many other classes in the same package/namespace. Am I missing something or is this still work in progress?

tipa avatar Jul 31 '24 08:07 tipa

I noticed that IPlayer.IListener is missing? Unless it was replaced with IPlayerListener?

ne0rrmatrix avatar Aug 01 '24 23:08 ne0rrmatrix

Sorry for late answer

Thanks for releasing @moljac! Looks like this wasn't the most trivial package to bind :)

True. Started more than 15 months ago. Maybe 18. As sideproject. I recall 900+ errors. OK, it was 2 TFMs so 400+. I did hit all kinds of issues, but our tooling got better. The worst was context switching when coming back after few days/weeks: where was I? Even had thoughts to restart everythng. At the end JPobst did clean restart with my metdata and we were able to finish it.

I am planning to use the AndroidX.Media3.Transformer package to transcode video & audio. Unfortunately, I am hitting a problem right away, when trying to follow the guides from Google: https://developer.android.com/media/media3/transformer/getting-started#start

var inputMediaItem = MediaItem.FromUri(uri);
var editedMediaItem = new EditedMediaItem.Builder(inputMediaItem).SetRemoveAudio(true).Build();

Please open the issue.

The EditedMediaItem class doesn't seem to be present (not bound?),

Could be. I did resort to remove-node quite a lot and I don't like it, but I didn't have time.

the same seems to be the case for many other classes in the same package/namespace. Am I missing something or is this still work in progress?

Most likely my shortcuts. I need to check, so please open the issue with minimal repro sample and maybe list of missing types.

moljac avatar Aug 04 '24 15:08 moljac

I noticed that IPlayer.IListener is missing?

Could be. I am not SDK expert. PLease open the issue, so I can track it.

Unless it was replaced with IPlayerListener?

Not sure. I have no ideas about media3 APIs. Sorry.

moljac avatar Aug 04 '24 15:08 moljac

@moljac I created an issue here

tipa avatar Aug 15 '24 16:08 tipa

@moljac I created an issue here

Danke @tipa

I saw that one. I will take a look.

moljac avatar Aug 16 '24 07:08 moljac

I noticed that IPlayer.IListener is missing? Unless it was replaced with IPlayerListener?

It's replaced with IPlayerListener

ArchangelWTF avatar Aug 20 '24 10:08 ArchangelWTF

Im hoping on the next build released that this is fixed. ATM the listener does not work. I tested against another library that I can't use to see if it was my code.

ne0rrmatrix avatar Aug 20 '24 10:08 ne0rrmatrix