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

Unified Diff: media/blink/websourcebuffer_impl.cc

Issue 2102323002: MSE: Experimental support for new abort and duration behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Basic structure. Needs lots of test fixing and some new tests. Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: media/blink/websourcebuffer_impl.cc
diff --git a/media/blink/websourcebuffer_impl.cc b/media/blink/websourcebuffer_impl.cc
index 78e9290af999994d5171c6fe9b021f536395dfbe..db547158673dced0174bc91a31a5c428271fbed1 100644
--- a/media/blink/websourcebuffer_impl.cc
+++ b/media/blink/websourcebuffer_impl.cc
@@ -91,6 +91,10 @@ blink::WebTimeRanges WebSourceBufferImpl::buffered() {
return result;
}
+double WebSourceBufferImpl::highestPresentationTimestamp() {
+ return demuxer_->GetHighestPresentationTimestamp(id_).InSecondsF();
+}
+
bool WebSourceBufferImpl::evictCodedFrames(double currentPlaybackTime,
size_t newDataSize) {
return demuxer_->EvictCodedFrames(

Powered by Google App Engine
This is Rietveld 408576698