XamarinMediaManager
XamarinMediaManager copied to clipboard
Plugin Not Play on android sdk 12
##I Have Created an xamarin forms app with xamarin media manger to play hls videos. it just play perfectly on android blow 12 sdk but android sdk 12 and above not working at all. any one Know Solution
Hello. Try add the below code before start the player
CrossMediaManager.Current.Speed = 1F;
That workaround is a lifesaver @carlosanpardo !
Any idea to launch the top bar with the data of the stream?
Not sure what you mean, what is the ' top bar ' ?
Hello. Try add the below code before start the player
CrossMediaManager.Current.Speed = 1F;
Hi, yeah, that helps me, too, after hourse of debugging... maybe that would be worth mentioned on startpage/howto for android... Lots of greets, your doing a great job, thanks for all! Thies
@carlosanpardo At what time do you call this line?
CrossMediaManager.Current.Speed = 1F;
When I called soon after CrossMediaManager.Current.Init()
it tells me that the MediaSession hasn't been setup yet.
@carlosanpardo At what time do you call this line?
CrossMediaManager.Current.Speed = 1F;
When I called soon afterCrossMediaManager.Current.Init()
it tells me that the MediaSession hasn't been setup yet.
I'd like to know where to put this magic line of code also.
I put it in my PCL class right before calling play.
This seems to be working. With Google requiring targeting sdk 31+ this should be addressed soon.
Thank you @carlosanpardo your suggestion of adding CrossMediaManager.Current.Speed = 1F; solved it for my non-profit's app on Android 12 and 13!