OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 // https://www.w3.org/TR/media-source/#idl-def-SourceBuffer | 31 // https://www.w3.org/TR/media-source/#idl-def-SourceBuffer |
32 | 32 |
33 enum AppendMode { | 33 enum AppendMode { |
34 "segments", | 34 "segments", |
35 "sequence" | 35 "sequence" |
36 }; | 36 }; |
37 | 37 |
38 [ | 38 [ |
| 39 ActiveScriptWrappable, |
39 DependentLifetime, | 40 DependentLifetime, |
40 ] interface SourceBuffer : EventTarget { | 41 ] interface SourceBuffer : EventTarget { |
41 | 42 |
42 // Gets or sets the AppendMode. | 43 // Gets or sets the AppendMode. |
43 [RaisesException=Setter] attribute AppendMode mode; | 44 [RaisesException=Setter] attribute AppendMode mode; |
44 | 45 |
45 readonly attribute boolean updating; | 46 readonly attribute boolean updating; |
46 | 47 |
47 // Returns the time ranges buffered. | 48 // Returns the time ranges buffered. |
48 [RaisesException=Getter] readonly attribute TimeRanges buffered; | 49 [RaisesException=Getter] readonly attribute TimeRanges buffered; |
(...skipping 14 matching lines...) Expand all Loading... |
63 [RaisesException, RuntimeEnabled=ExperimentalStream] void appendStream(Strea
m stream, optional unsigned long long maxSize); | 64 [RaisesException, RuntimeEnabled=ExperimentalStream] void appendStream(Strea
m stream, optional unsigned long long maxSize); |
64 | 65 |
65 // Abort the current segment append sequence. | 66 // Abort the current segment append sequence. |
66 [RaisesException] void abort(); | 67 [RaisesException] void abort(); |
67 [RaisesException] void remove(double start, unrestricted double end); | 68 [RaisesException] void remove(double start, unrestricted double end); |
68 | 69 |
69 // Gets or sets the TrackDefaultList this SourceBuffer may consult during | 70 // Gets or sets the TrackDefaultList this SourceBuffer may consult during |
70 // the initialization segment algorithm. | 71 // the initialization segment algorithm. |
71 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T
rackDefaultList trackDefaults; | 72 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T
rackDefaultList trackDefaults; |
72 }; | 73 }; |
OLD | NEW |