Is there a way to stop the avplayer sending a range http header field

安稳与你 提交于 2021-02-08 16:43:00

问题


If you load remote files with the AVPlayer it sends a http request with a range field in the request header, something like

Range: bytes=0-8148096

I like to use the SevenDigital commercial API for streaming songs but they cannot handle this Range header. Is there a way to change the URL requests the AVPlayer sends?


回答1:


Nope, and it is an apple standard that media providers need to support http 1.1 with the range header (check out the iTunes store guidelines for podcasts for example), so I wouldn't expect it anytime soon. You'll need to roll your own here, sorry.



来源:https://stackoverflow.com/questions/7530272/is-there-a-way-to-stop-the-avplayer-sending-a-range-http-header-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!