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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 if (contentType.type().isEmpty()) { | 288 if (contentType.type().isEmpty()) { |
289 BLINK_MSLOG << __func__ << "(" << type << ") -> false (invalid mime type)"; | 289 BLINK_MSLOG << __func__ << "(" << type << ") -> false (invalid mime type)"; |
290 return false; | 290 return false; |
291 } | 291 } |
292 | 292 |
293 // Note: MediaSource.isTypeSupported() returning true implies that | 293 // Note: MediaSource.isTypeSupported() returning true implies that |
294 // HTMLMediaElement.canPlayType() will return "maybe" or "probably" since it | 294 // HTMLMediaElement.canPlayType() will return "maybe" or "probably" since it |
295 // does not make sense for a MediaSource to support a type the | 295 // does not make sense for a MediaSource to support a type the |
296 // HTMLMediaElement knows it cannot play. | 296 // HTMLMediaElement knows it cannot play. |
297 if (HTMLMediaElement::supportsType(contentType) == | 297 if (HTMLMediaElement::supportsType(contentType) == |
298 WebMimeRegistry::IsNotSupported) { | 298 MIMETypeRegistry::IsNotSupported) { |
299 BLINK_MSLOG << __func__ << "(" << type | 299 BLINK_MSLOG << __func__ << "(" << type |
300 << ") -> false (not supported by HTMLMediaElement)"; | 300 << ") -> false (not supported by HTMLMediaElement)"; |
301 return false; | 301 return false; |
302 } | 302 } |
303 | 303 |
304 // 3. If type contains a media type or media subtype that the MediaSource does | 304 // 3. If type contains a media type or media subtype that the MediaSource does |
305 // not support, then return false. | 305 // not support, then return false. |
306 // 4. If type contains at a codec that the MediaSource does not support, then | 306 // 4. If type contains at a codec that the MediaSource does not support, then |
307 // return false. | 307 // return false. |
308 // 5. If the MediaSource does not support the specified combination of media | 308 // 5. If the MediaSource does not support the specified combination of media |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 event->setTarget(this); | 815 event->setTarget(this); |
816 | 816 |
817 m_asyncEventQueue->enqueueEvent(event); | 817 m_asyncEventQueue->enqueueEvent(event); |
818 } | 818 } |
819 | 819 |
820 URLRegistry& MediaSource::registry() const { | 820 URLRegistry& MediaSource::registry() const { |
821 return MediaSourceRegistry::registry(); | 821 return MediaSourceRegistry::registry(); |
822 } | 822 } |
823 | 823 |
824 } // namespace blink | 824 } // namespace blink |
OLD | NEW |