本文介绍了iOS中的GStreamer AAC音频流延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用GStreamer SDK在iOS设备上播放 aac音频流,它可以正常工作,但延迟超过2.0秒.
I'm playing aac audio stream on my iOS device using GStreamer SDK, its working fine, but delay is above 2.0 seconds.
我可以将延迟降低到2.0秒以下吗?
Can I make this delay lower then 2.0 seconds?
可能存在一些缓冲问题.
There may be some buffering issue.
这就是我创建管道的方式
This is how I'm creating the pipeline
pipeline = gst_parse_launch("playbin2", &error);
推荐答案
尝试设置延迟,如下所示:
try setting the latency like this:
g_object_set(G_OBJECT(pipeline.source), "latency", 250, NULL);
这篇关于iOS中的GStreamer AAC音频流延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!