/// <summary> /// ESPlayer event handler. Issued after calling AsyncPrepare. Stream type /// passed as an argument indicates stream for which data transfer has be started. /// This effectively starts playback. /// </summary> /// <param name="esPlayerStreamType">ESPlayer.StreamType</param> private async void OnReadyToStartStream(ESPlayer.StreamType esPlayerStreamType) { var streamType = esPlayerStreamType.JuvoStreamType(); logger.Info(streamType.ToString()); esStreams[(int)streamType].Start(); logger.Info($"{streamType}: Completed"); await Task.Yield(); }
private void EnableTransfer(ESPlayer.StreamType stream) => EnableTransfer(stream.JuvoStreamType());
private void EnableTransfer(ESPlayer.StreamType stream, TimeSpan time) => EnableTransfer(stream.JuvoStreamType());