Bind "androidx.media3"
Description
Media3 is stable now! https://developer.android.com/jetpack/androidx/releases/media3
Any news on this?
Any news on this?
I made some progress, but still quite a lot to do.
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
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.
@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.
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 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.
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
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.
Almost done. Few weird issues I am investigating, but...
https://github.com/xamarin/AndroidX/pull/779
Ready for review.
Release most likely next week
@moljac This is awesome, please let me know when this is out I plan on working on a .NET MAUI Lib for this
Published
https://www.nuget.org/packages?q=AndroidX.Media3
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?
I noticed that IPlayer.IListener is missing? Unless it was replaced with IPlayerListener?
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.Transformerpackage 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#startvar inputMediaItem = MediaItem.FromUri(uri); var editedMediaItem = new EditedMediaItem.Builder(inputMediaItem).SetRemoveAudio(true).Build();
Please open the issue.
The
EditedMediaItemclass 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.
I noticed that
IPlayer.IListeneris 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 I created an issue here
I noticed that
IPlayer.IListeneris missing? Unless it was replaced withIPlayerListener?
It's replaced with IPlayerListener
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.