示例#1
0
        private void RegisterVideoStreamChangedCallback()
        {
            _videoStreamChangedCallback = (width, height, fps, bitrate, _) =>
            {
                Log.Debug(PlayerLog.Tag, $"height={height}, width={width}, fps={fps}, bitrate={bitrate}");

                VideoStreamChanged?.Invoke(this, new VideoStreamChangedEventArgs(height, width, fps, bitrate));
            };

            NativePlayer.SetVideoStreamChangedCb(Handle, _videoStreamChangedCallback).
            ThrowIfFailed(this, "Failed to set the video stream changed callback");
        }
示例#2
0
        private void RegisterVideoStreamChangedCallback()
        {
            _videoStreamChangedCallback = (width, height, fps, bitrate, _) =>
            {
                Log.Debug(PlayerLog.Tag, "height : " + height + ", width : " + width
                          + ", fps : " + fps + ", bitrate : " + bitrate);

                VideoStreamChanged?.Invoke(this, new VideoStreamChangedEventArgs(height, width, fps, bitrate));
            };

            NativePlayer.SetVideoStreamChangedCb(Handle, _videoStreamChangedCallback).
            ThrowIfFailed("Failed to set the video stream changed callback");
        }