Index: media/filters/source_buffer_stream.cc |
diff --git a/media/filters/source_buffer_stream.cc b/media/filters/source_buffer_stream.cc |
index 61b2501330e28a359608eee6a9a3705b5454fc46..608253b2d87bc5fa38873fbc36a6a6b26f9d7203 100644 |
--- a/media/filters/source_buffer_stream.cc |
+++ b/media/filters/source_buffer_stream.cc |
@@ -1401,6 +1401,15 @@ Ranges<base::TimeDelta> SourceBufferStream::GetBufferedTime() const { |
return ranges; |
} |
+base::TimeDelta SourceBufferStream::GetHighestPresentationTimestamp() const { |
+ if (ranges_.empty()) |
+ return base::TimeDelta(); |
+ |
+ // TODO(wolenetz): Report actual highest PTS here, not DTS cast to PTS. See |
+ // https://crbug.com/398130. |
+ return ranges_.back()->GetEndTimestamp().ToPresentationTime(); |
+} |
+ |
base::TimeDelta SourceBufferStream::GetBufferedDuration() const { |
if (ranges_.empty()) |
return base::TimeDelta(); |