/// <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();
        }
示例#2
0
 private void EnableTransfer(ESPlayer.StreamType stream) =>
 EnableTransfer(stream.JuvoStreamType());
示例#3
0
 private void EnableTransfer(ESPlayer.StreamType stream, TimeSpan time) =>
 EnableTransfer(stream.JuvoStreamType());