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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void setReadyState(const AtomicString&); | 125 void setReadyState(const AtomicString&); |
126 void onReadyStateChange(const AtomicString&, const AtomicString&); | 126 void onReadyStateChange(const AtomicString&, const AtomicString&); |
127 | 127 |
128 bool isUpdating() const; | 128 bool isUpdating() const; |
129 | 129 |
130 std::unique_ptr<WebSourceBuffer> createWebSourceBuffer(const String& type, c
onst String& codecs, ExceptionState&); | 130 std::unique_ptr<WebSourceBuffer> createWebSourceBuffer(const String& type, c
onst String& codecs, ExceptionState&); |
131 void scheduleEvent(const AtomicString& eventName); | 131 void scheduleEvent(const AtomicString& eventName); |
132 void endOfStreamInternal(const WebMediaSource::EndOfStreamStatus, ExceptionS
tate&); | 132 void endOfStreamInternal(const WebMediaSource::EndOfStreamStatus, ExceptionS
tate&); |
133 | 133 |
134 // Implements the duration change algorithm. | 134 // Implements the duration change algorithm. |
135 // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-sou
rce.html#duration-change-algorithm | 135 // http://w3c.github.io/media-source/#duration-change-algorithm |
136 void durationChangeAlgorithm(double newDuration); | 136 void durationChangeAlgorithm(double newDuration, ExceptionState&); |
137 | 137 |
138 std::unique_ptr<WebMediaSource> m_webMediaSource; | 138 std::unique_ptr<WebMediaSource> m_webMediaSource; |
139 AtomicString m_readyState; | 139 AtomicString m_readyState; |
140 Member<GenericEventQueue> m_asyncEventQueue; | 140 Member<GenericEventQueue> m_asyncEventQueue; |
141 WeakMember<HTMLMediaElement> m_attachedElement; | 141 WeakMember<HTMLMediaElement> m_attachedElement; |
142 | 142 |
143 Member<SourceBufferList> m_sourceBuffers; | 143 Member<SourceBufferList> m_sourceBuffers; |
144 Member<SourceBufferList> m_activeSourceBuffers; | 144 Member<SourceBufferList> m_activeSourceBuffers; |
145 | 145 |
146 Member<TimeRanges> m_liveSeekableRange; | 146 Member<TimeRanges> m_liveSeekableRange; |
147 | 147 |
148 bool m_isAddedToRegistry; | 148 bool m_isAddedToRegistry; |
149 }; | 149 }; |
150 | 150 |
151 } // namespace blink | 151 } // namespace blink |
152 | 152 |
153 #endif // MediaSource_h | 153 #endif // MediaSource_h |
OLD | NEW |