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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 [RaisesException=Setter] attribute AppendMode mode; | 44 [RaisesException=Setter] attribute AppendMode mode; |
45 | 45 |
46 readonly attribute boolean updating; | 46 readonly attribute boolean updating; |
47 | 47 |
48 // Returns the time ranges buffered. | 48 // Returns the time ranges buffered. |
49 [RaisesException=Getter] readonly attribute TimeRanges buffered; | 49 [RaisesException=Getter] readonly attribute TimeRanges buffered; |
50 | 50 |
51 // Applies an offset to media segment timestamps. | 51 // Applies an offset to media segment timestamps. |
52 [RaisesException=Setter] attribute double timestampOffset; | 52 [RaisesException=Setter] attribute double timestampOffset; |
53 | 53 |
| 54 [RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTra
cks; |
| 55 [RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTra
cks; |
| 56 |
54 // Presentation timestamp for the start of append window. | 57 // Presentation timestamp for the start of append window. |
55 [RaisesException=Setter] attribute double appendWindowStart; | 58 [RaisesException=Setter] attribute double appendWindowStart; |
56 | 59 |
57 // Presentation timestamp for the end of append window. | 60 // Presentation timestamp for the end of append window. |
58 [RaisesException=Setter] attribute unrestricted double appendWindowEnd; | 61 [RaisesException=Setter] attribute unrestricted double appendWindowEnd; |
59 | 62 |
60 // Append segment data. | 63 // Append segment data. |
61 [RaisesException] void appendBuffer(ArrayBuffer data); | 64 [RaisesException] void appendBuffer(ArrayBuffer data); |
62 [RaisesException] void appendBuffer(ArrayBufferView data); | 65 [RaisesException] void appendBuffer(ArrayBufferView data); |
63 | 66 |
64 [RaisesException, RuntimeEnabled=ExperimentalStream] void appendStream(Strea
m stream, optional unsigned long long maxSize); | 67 [RaisesException, RuntimeEnabled=ExperimentalStream] void appendStream(Strea
m stream, optional unsigned long long maxSize); |
65 | 68 |
66 // Abort the current segment append sequence. | 69 // Abort the current segment append sequence. |
67 [RaisesException] void abort(); | 70 [RaisesException] void abort(); |
68 [RaisesException] void remove(double start, unrestricted double end); | 71 [RaisesException] void remove(double start, unrestricted double end); |
69 | 72 |
70 // Gets or sets the TrackDefaultList this SourceBuffer may consult during | 73 // Gets or sets the TrackDefaultList this SourceBuffer may consult during |
71 // the initialization segment algorithm. | 74 // the initialization segment algorithm. |
72 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T
rackDefaultList trackDefaults; | 75 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T
rackDefaultList trackDefaults; |
73 }; | 76 }; |
OLD | NEW |