| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d
epend on it. | 85 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d
epend on it. |
| 86 virtual KURL mediaPlayerPosterURL() = 0; | 86 virtual KURL mediaPlayerPosterURL() = 0; |
| 87 | 87 |
| 88 // Presentation-related methods | 88 // Presentation-related methods |
| 89 // a new frame of video is available | 89 // a new frame of video is available |
| 90 virtual void mediaPlayerRepaint() = 0; | 90 virtual void mediaPlayerRepaint() = 0; |
| 91 | 91 |
| 92 // the movie size has changed | 92 // the movie size has changed |
| 93 virtual void mediaPlayerSizeChanged() = 0; | 93 virtual void mediaPlayerSizeChanged() = 0; |
| 94 | 94 |
| 95 enum MediaKeyErrorCode { UnknownError = 1, ClientError, ServiceError, Output
Error, HardwareChangeError, DomainError }; | |
| 96 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String
& /* sessionId */) = 0; | |
| 97 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String
& /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0; | |
| 98 virtual void mediaPlayerKeyMessage(const String& /* keySystem */, const Stri
ng& /* sessionId */, const unsigned char* /* message */, unsigned /* messageLeng
th */, const KURL& /* defaultURL */) = 0; | |
| 99 virtual bool mediaPlayerKeyNeeded(const String& /* contentType */, const uns
igned char* /* initData */, unsigned /* initDataLength */) = 0; | |
| 100 | |
| 101 virtual CORSMode mediaPlayerCORSMode() const = 0; | 95 virtual CORSMode mediaPlayerCORSMode() const = 0; |
| 102 | 96 |
| 103 virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0; | 97 virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0; |
| 104 virtual void mediaPlayerSetOpaque(bool) = 0; | 98 virtual void mediaPlayerSetOpaque(bool) = 0; |
| 105 | 99 |
| 106 virtual void mediaPlayerDidAddTrack(blink::WebInbandTextTrack*) = 0; | 100 virtual void mediaPlayerDidAddTrack(blink::WebInbandTextTrack*) = 0; |
| 107 virtual void mediaPlayerDidRemoveTrack(blink::WebInbandTextTrack*) = 0; | 101 virtual void mediaPlayerDidRemoveTrack(blink::WebInbandTextTrack*) = 0; |
| 108 | 102 |
| 109 virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0; | 103 virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0; |
| 110 }; | 104 }; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 178 |
| 185 virtual unsigned decodedFrameCount() const = 0; | 179 virtual unsigned decodedFrameCount() const = 0; |
| 186 virtual unsigned droppedFrameCount() const = 0; | 180 virtual unsigned droppedFrameCount() const = 0; |
| 187 virtual unsigned corruptedFrameCount() const = 0; | 181 virtual unsigned corruptedFrameCount() const = 0; |
| 188 virtual unsigned audioDecodedByteCount() const = 0; | 182 virtual unsigned audioDecodedByteCount() const = 0; |
| 189 virtual unsigned videoDecodedByteCount() const = 0; | 183 virtual unsigned videoDecodedByteCount() const = 0; |
| 190 | 184 |
| 191 #if ENABLE(WEB_AUDIO) | 185 #if ENABLE(WEB_AUDIO) |
| 192 virtual AudioSourceProvider* audioSourceProvider() = 0; | 186 virtual AudioSourceProvider* audioSourceProvider() = 0; |
| 193 #endif | 187 #endif |
| 194 | 188 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0; |
| 195 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported,
InvalidAccess }; | |
| 196 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign
ed, const unsigned char*, unsigned, const String&) = 0; | |
| 197 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c
har*, unsigned) = 0; | |
| 198 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0
; | |
| 199 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*)
= 0; | |
| 200 }; | 189 }; |
| 201 | 190 |
| 202 } | 191 } |
| 203 | 192 |
| 204 #endif // MediaPlayer_h | 193 #endif // MediaPlayer_h |
| OLD | NEW |