Home > Back-end >  XamarinMediaManager pause/resume livestream
XamarinMediaManager pause/resume livestream

Time:11-24

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?

CodePudding user response:

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

CrossMediaManager.Current.Play()

CodePudding user response:

You only need to Play the resource again

// Stop the current media playing.
// Not sure if necessary...
await CrossMediaManager.Current.Stop(); 

// Play resource again. It starts playing live
await CrossMediaManager.Current.Play(url);

it will jump alone to the current time.

At least that is how i do it in my App...

  • Related