更改 MPEG-dash 格式的最大缓冲区长度
change max Buffer Length in MPEG-dash format
我正在尝试更改 clappr 视频播放器中视频流的最大缓冲区长度。
我知道在 HLS 格式中,这样做的方式是这样的:
player = new Clappr.Player({
playback: {
hlsjsConfig: {
maxMaxBufferLength: 30
}}})
它真的适用于 HLS 视频,
我正在寻找使用 MPEG-dash foramt
的等效方法
你在 Clappr 中玩 DASH 怎么样?
如果您使用的是 Shaka,https://github.com/clappr/dash-shaka-playback, set it up as shown at https://github.com/clappr/dash-shaka-playback, using the buffer settings you require as described at https://github.com/google/shaka-player/blob/master/docs/tutorials/network-and-buffering-config.md#buffering-configuration
例如:
player = new Clappr.Player({
source: '//storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd',
plugins: [DashShakaPlayback],
shakaConfiguration: {
preferredAudioLanguage: 'pt-BR',
streaming: {
bufferingGoal: 30,
rebufferingGoal: 15,
bufferBehind: 60
}
}
});
我正在尝试更改 clappr 视频播放器中视频流的最大缓冲区长度。 我知道在 HLS 格式中,这样做的方式是这样的:
player = new Clappr.Player({
playback: {
hlsjsConfig: {
maxMaxBufferLength: 30
}}})
它真的适用于 HLS 视频, 我正在寻找使用 MPEG-dash foramt
的等效方法你在 Clappr 中玩 DASH 怎么样?
如果您使用的是 Shaka,https://github.com/clappr/dash-shaka-playback, set it up as shown at https://github.com/clappr/dash-shaka-playback, using the buffer settings you require as described at https://github.com/google/shaka-player/blob/master/docs/tutorials/network-and-buffering-config.md#buffering-configuration
例如:
player = new Clappr.Player({
source: '//storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd',
plugins: [DashShakaPlayback],
shakaConfiguration: {
preferredAudioLanguage: 'pt-BR',
streaming: {
bufferingGoal: 30,
rebufferingGoal: 15,
bufferBehind: 60
}
}
});