本文介绍了手动更改HLS带宽?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在HLS中流式传输视频时,是否可以手动切换带宽?我的意思是视频点播,而不是实时视频.

Is it possible to switch bandwidth manually when streaming Video in HLS? I mean Video on demand, not live video.

HLS: http://en.wikipedia.org/wiki/HTTP_Live_Streaming

看起来像youtube切换质量.并且有商业产品: http://www.longtailvideo.com/support/forums/jw-player/using-playlists/32487/hls-playlist/

It look like youtube switching quality.And there is commercial product: http://www.longtailvideo.com/support/forums/jw-player/using-playlists/32487/hls-playlist/

推荐答案

您可以控制播放器和向播放器的馈送逻辑,包括下载内容,确定正确的比特率流等.适用于许多设备和包括YouTube在内的许多应用/播放器.您无法在iOS上使用.对于iOS,您只能指定PreferredPeakBitRate(AVPlayerItem属性),而不能(至少尚未)手动切换视频流.

You can, as long as you control the player and the feeding logic to the player, which includes downloading the content, determining the right bit rate stream etc. This is true for many devices and many app/player including youtube.You cannot on iOS. In the case of iOS, you can only specify a PreferredPeakBitRate (AVPlayerItem property) and cannot (at least not yet) manually switch video streams.

这篇关于手动更改HLS带宽?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-13 22:16