Baseflow / XamarinMediaManager

Cross platform Xamarin plugin to play and control Audio and Video
https://baseflow.com
MIT License
761 stars 304 forks source link

Can I load media items to the queue from mp3 files on disk #869

Closed ngreyes closed 1 year ago

ngreyes commented 1 year ago

💬 Questions and Help

There is a Queue which I can use like CrossMediaManager.Current.Queue.Add(MediaItem). However, I'm loading my music from mp3 files on folders. I would like to load a whole mp3 file folder to a queue if possible. I've been playing my playlist like this: await CrossMediaManager.Current.Play(playList); playlist being a DirectoryInfo object, It seems as if I need to have something in the queue before I can set the queue to toggle/repeat, etc. Is there a way to do this? I currently have to stop play and set those properties before I can continue playing.

ngreyes commented 1 year ago

Realized that I can use the extractor to convert MediaItem directly from file path.