XamarinMediaManager pause/resume livestream

242 Views Asked by At

I am using Baseflow's XamarinMediaManager and I can't figure out a way to resume to the "live" marker of a livestream when the player is paused.

When I pause a live streamed source, there is no way I can find to jump back to live. I tried this, but it doesn't work:

await CrossMediaManager.Current.SeekTo(TimeSpan.FromHours(9999));

Is there a method i'm missing to jump to the live marker?

2

There are 2 best solutions below

2
Louis Betsche On

I cant comment due to low REP but maybe try this:

CrossMediaManager.Current.Play()
0
Jaime Santos On

You only need to reassign the content of CrossMediaManager and play it, this will reassign the resource starting in its default position which in your case is live mode.

To do this you only need to implement the following code:

await CrossMediaManager.Current.Play(url);

Have a great day Chris, hope it helps!