Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: media/base/android/media_source_player.h

Issue 79283006: Let only seeks reset Android MSE stream playback completion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ignore output_eos decode result if seek is pending Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void ClearDecodingData(); 112 void ClearDecodingData();
113 113
114 // Called to decode more data. 114 // Called to decode more data.
115 void DecodeMoreAudio(); 115 void DecodeMoreAudio();
116 void DecodeMoreVideo(); 116 void DecodeMoreVideo();
117 117
118 // Functions check whether audio/video is present. 118 // Functions check whether audio/video is present.
119 bool HasVideo(); 119 bool HasVideo();
120 bool HasAudio(); 120 bool HasAudio();
121 121
122 // Functions that check whether audio/video decode has reached end of output
qinmin 2013/12/06 20:34:47 s/decode/stream/?
wolenetz 2013/12/09 22:58:27 Done.
123 // or are not present in player configuration.
124 bool AudioFinishedOrNoAudio();
125 bool VideoFinishedOrNoVideo();
126
122 // Determine seekability based on duration. 127 // Determine seekability based on duration.
123 bool Seekable(); 128 bool Seekable();
124 129
125 // Called when the |decoder_starvation_callback_| times out. 130 // Called when the |decoder_starvation_callback_| times out.
126 void OnDecoderStarved(); 131 void OnDecoderStarved();
127 132
128 // Starts the |decoder_starvation_callback_| task with the timeout value. 133 // Starts the |decoder_starvation_callback_| task with the timeout value.
129 // |presentation_timestamp| - The presentation timestamp used for starvation 134 // |presentation_timestamp| - The presentation timestamp used for starvation
130 // timeout computations. It represents the timestamp of the last piece of 135 // timeout computations. It represents the timestamp of the last piece of
131 // decoded data. 136 // decoded data.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Test-only callback for hooking the completion of the next decode cycle. 280 // Test-only callback for hooking the completion of the next decode cycle.
276 base::Closure decode_callback_for_testing_; 281 base::Closure decode_callback_for_testing_;
277 282
278 friend class MediaSourcePlayerTest; 283 friend class MediaSourcePlayerTest;
279 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); 284 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer);
280 }; 285 };
281 286
282 } // namespace media 287 } // namespace media
283 288
284 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 289 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698