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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // the network state has changed | 48 // the network state has changed |
49 virtual void mediaPlayerNetworkStateChanged() = 0; | 49 virtual void mediaPlayerNetworkStateChanged() = 0; |
50 | 50 |
51 // the ready state has changed | 51 // the ready state has changed |
52 virtual void mediaPlayerReadyStateChanged() = 0; | 52 virtual void mediaPlayerReadyStateChanged() = 0; |
53 | 53 |
54 // time has jumped, eg. not as a result of normal playback | 54 // time has jumped, eg. not as a result of normal playback |
55 virtual void mediaPlayerTimeChanged() = 0; | 55 virtual void mediaPlayerTimeChanged() = 0; |
56 | 56 |
| 57 // the media has reached the end |
| 58 virtual void mediaPlayerEnded() = 0; |
| 59 |
57 // the media file duration has changed, or is now known | 60 // the media file duration has changed, or is now known |
58 virtual void mediaPlayerDurationChanged() = 0; | 61 virtual void mediaPlayerDurationChanged() = 0; |
59 | 62 |
60 // the play/pause status changed | 63 // the play/pause status changed |
61 virtual void mediaPlayerPlaybackStateChanged() = 0; | 64 virtual void mediaPlayerPlaybackStateChanged() = 0; |
62 | 65 |
63 virtual void mediaPlayerRequestFullscreen() = 0; | 66 virtual void mediaPlayerRequestFullscreen() = 0; |
64 | 67 |
65 virtual void mediaPlayerRequestSeek(double) = 0; | 68 virtual void mediaPlayerRequestSeek(double) = 0; |
66 | 69 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 106 |
104 #if ENABLE(WEB_AUDIO) | 107 #if ENABLE(WEB_AUDIO) |
105 virtual AudioSourceProvider* audioSourceProvider() = 0; | 108 virtual AudioSourceProvider* audioSourceProvider() = 0; |
106 #endif | 109 #endif |
107 virtual WebMediaPlayer* webMediaPlayer() const = 0; | 110 virtual WebMediaPlayer* webMediaPlayer() const = 0; |
108 }; | 111 }; |
109 | 112 |
110 } // namespace blink | 113 } // namespace blink |
111 | 114 |
112 #endif // MediaPlayer_h | 115 #endif // MediaPlayer_h |
OLD | NEW |