ubuntu 12.04 32位系统
使用如下命令(uri设置是对的,可能通过浏览器访问这个文件):
gst-launch-0.10 playbin -v uri="http://10.4.47.249:8000/music.ogg"
错误信息:
[test]$ gst-launch-0.10 playbin -v uri="http://10.4.47.249:8000/music.ogg"
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPlayBin:playbin0/GstSoupHTTPSrc:source: Cannot resolve proxy hostname (http)
Additional debug info:
gstsouphttpsrc.c(924): gst_soup_http_src_finished_cb (): /GstPlayBin:playbin0/GstSoupHTTPSrc:source:
libsoup status code 3
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
而uri设置为file:///xxxx/xxx则能够正常播放
这是缺少什么东西吗,如何解决.谢谢.
已解决
产生这个问题的原因是公司网络需要代理,我之前在系统设置中http/https代理填写的是http://xxx,实际上设置的是环境变量http_proxy,这样的话环境变量http_proxy的值是"http://http://xxx"
因此修改环境变量后上面问题就没有了
然后变成了新的问题,研究一下,不行再开贴提问.