代码改变世界

UNITY 播放RTMP视频的延迟问题

2020-11-17 11:14  ilully0802  阅读(539)  评论(0)    收藏  举报

 

通过修改下面的参数来解决

private const string FILE_CACHING_KEY = ":file-caching";
private const string LIVE_CACHING_KEY = ":live-caching";
private const string DISC_CACHING_KEY = ":disc-caching";
private const string NETWORK_CACHING_KEY = ":network-caching";
private const string CR_AVERAGE_KEY = ":cr-average";
private const string CLOCK_SYNCHRO_KEY = ":clock-synchro";
private const string CLOCK_JITTER_KEY = ":clock-jitter";

private const string FLIP_VERTICALLY = "flip-vertically";
private const string VIDEO_BUFFER_SIZE = "video-buffer-size";
private const string SOUT_KEY = "--sout";
private const string HARDWARE_DECODING_STATE_KEY = "avcodec-hw-state";
private const string HARDWARE_DECODING_KEY = ":avcodec-hw";
private const string RTSP_OVER_TCP_KEY = "--rtsp-tcp";
private const string DIRECTX_AUDIO_DEVICE = "--directx-audio-device";