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; | 54 readonly attribute AudioTrackList audioTracks; |
55 [RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTra
cks; | 55 readonly attribute VideoTrackList videoTracks; |
56 | 56 |
57 // Presentation timestamp for the start of append window. | 57 // Presentation timestamp for the start of append window. |
58 [RaisesException=Setter] attribute double appendWindowStart; | 58 [RaisesException=Setter] attribute double appendWindowStart; |
59 | 59 |
60 // Presentation timestamp for the end of append window. | 60 // Presentation timestamp for the end of append window. |
61 [RaisesException=Setter] attribute unrestricted double appendWindowEnd; | 61 [RaisesException=Setter] attribute unrestricted double appendWindowEnd; |
62 | 62 |
63 attribute EventHandler onupdatestart; | 63 attribute EventHandler onupdatestart; |
64 attribute EventHandler onupdate; | 64 attribute EventHandler onupdate; |
65 attribute EventHandler onupdateend; | 65 attribute EventHandler onupdateend; |
66 attribute EventHandler onerror; | 66 attribute EventHandler onerror; |
67 attribute EventHandler onabort; | 67 attribute EventHandler onabort; |
68 | 68 |
69 // Append segment data. | 69 // Append segment data. |
70 [RaisesException] void appendBuffer(ArrayBuffer data); | 70 [RaisesException] void appendBuffer(ArrayBuffer data); |
71 [RaisesException] void appendBuffer(ArrayBufferView data); | 71 [RaisesException] void appendBuffer(ArrayBufferView data); |
72 | 72 |
73 [RaisesException, RuntimeEnabled=ExperimentalStream] void appendStream(Strea
m stream, optional unsigned long long maxSize); | 73 [RaisesException, RuntimeEnabled=ExperimentalStream] void appendStream(Strea
m stream, optional unsigned long long maxSize); |
74 | 74 |
75 // Abort the current segment append sequence. | 75 // Abort the current segment append sequence. |
76 [RaisesException] void abort(); | 76 [RaisesException] void abort(); |
77 [RaisesException] void remove(double start, unrestricted double end); | 77 [RaisesException] void remove(double start, unrestricted double end); |
78 | 78 |
79 // Gets or sets the TrackDefaultList this SourceBuffer may consult during | 79 // Gets or sets the TrackDefaultList this SourceBuffer may consult during |
80 // the initialization segment algorithm. | 80 // the initialization segment algorithm. |
81 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T
rackDefaultList trackDefaults; | 81 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T
rackDefaultList trackDefaults; |
82 }; | 82 }; |
OLD | NEW |