草案
此页面不完整。
这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
remove()
方法在
SourceBuffer
interface removes media segments within a specific time range from the
SourceBuffer
. This method can only be called when
SourceBuffer.updating
等于
false
。若
SourceBuffer.updating
不等于
false
,调用
SourceBuffer.abort()
.
sourceBuffer.remove(start, end);
A double representing the start of the time range, in seconds.
A double representing the end of the time range, in seconds.
| 异常 | 解释 |
|---|---|
InvalidAccessError
|
MediaSource.duration
property is equal to
NaN
,
start
parameter is negative or greater than
MediaSource.duration
, or the end parameter is less than or equal to start or equal to
NaN
.
|
InvalidStateError
|
SourceBuffer.updating
property is equal to
true
, or this
SourceBuffer
has been removed from the
MediaSource
.
|
TBD.
| 规范 | 状态 | 注释 |
|---|---|---|
|
媒体源扩展
The definition of 'remove()' in that specification. |
推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
remove
|
Chrome 23 | Edge 12 | Firefox 42 | IE 11 | Opera 15 | Safari 8 | WebView Android 4.4.3 | Chrome Android 33 | Firefox Android 不支持 No | Opera Android 14 | Safari iOS 不支持 No | Samsung Internet Android 3.0 |
完整支持
不支持
见实现注意事项。
用户必须明确启用此特征。