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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 [RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTra
cks; | 54 [RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTra
cks; |
55 [RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTra
cks; | 55 [RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTra
cks; |
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; |
| 64 attribute EventHandler onupdate; |
| 65 attribute EventHandler onupdateend; |
| 66 attribute EventHandler onerror; |
| 67 attribute EventHandler onabort; |
| 68 |
63 // Append segment data. | 69 // Append segment data. |
64 [RaisesException] void appendBuffer(ArrayBuffer data); | 70 [RaisesException] void appendBuffer(ArrayBuffer data); |
65 [RaisesException] void appendBuffer(ArrayBufferView data); | 71 [RaisesException] void appendBuffer(ArrayBufferView data); |
66 | 72 |
67 [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); |
68 | 74 |
69 // Abort the current segment append sequence. | 75 // Abort the current segment append sequence. |
70 [RaisesException] void abort(); | 76 [RaisesException] void abort(); |
71 [RaisesException] void remove(double start, unrestricted double end); | 77 [RaisesException] void remove(double start, unrestricted double end); |
72 | 78 |
73 // Gets or sets the TrackDefaultList this SourceBuffer may consult during | 79 // Gets or sets the TrackDefaultList this SourceBuffer may consult during |
74 // the initialization segment algorithm. | 80 // the initialization segment algorithm. |
75 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T
rackDefaultList trackDefaults; | 81 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T
rackDefaultList trackDefaults; |
76 }; | 82 }; |
OLD | NEW |