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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 static double invalidTime() { return -1.0; } | 92 static double invalidTime() { return -1.0; } |
93 | 93 |
94 MediaPlayer() { } | 94 MediaPlayer() { } |
95 virtual ~MediaPlayer() { } | 95 virtual ~MediaPlayer() { } |
96 | 96 |
97 virtual void load(WebMediaPlayer::LoadType, const String& url, WebMediaPlaye
r::CORSMode) = 0; | 97 virtual void load(WebMediaPlayer::LoadType, const String& url, WebMediaPlaye
r::CORSMode) = 0; |
98 | 98 |
99 enum Preload { None, MetaData, Auto }; | 99 enum Preload { None, MetaData, Auto }; |
100 virtual void setPreload(Preload) = 0; | 100 virtual void setPreload(Preload) = 0; |
101 | 101 |
102 #if ENABLE(WEB_AUDIO) | |
103 virtual AudioSourceProvider* audioSourceProvider() = 0; | 102 virtual AudioSourceProvider* audioSourceProvider() = 0; |
104 #endif | |
105 virtual WebMediaPlayer* webMediaPlayer() const = 0; | 103 virtual WebMediaPlayer* webMediaPlayer() const = 0; |
106 }; | 104 }; |
107 | 105 |
108 } // namespace blink | 106 } // namespace blink |
109 | 107 |
110 #endif // MediaPlayer_h | 108 #endif // MediaPlayer_h |
OLD | NEW |