mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1130948: Part1. Use mediasource duration to determine media element duration. r=cajbir
This commit is contained in:
parent
51f02c8f33
commit
1ea130aa5a
@ -309,4 +309,11 @@ MediaSourceDecoder::IsActiveReader(MediaDecoderReader* aReader)
|
||||
return mReader->IsActiveReader(aReader);
|
||||
}
|
||||
|
||||
double
|
||||
MediaSourceDecoder::GetDuration()
|
||||
{
|
||||
ReentrantMonitorAutoEnter mon(GetReentrantMonitor());
|
||||
return mMediaSourceDuration;
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
@ -56,6 +56,9 @@ public:
|
||||
void Ended();
|
||||
bool IsExpectingMoreData() MOZ_OVERRIDE;
|
||||
|
||||
// Return the duration of the video in seconds.
|
||||
virtual double GetDuration() MOZ_OVERRIDE;
|
||||
|
||||
void SetInitialDuration(int64_t aDuration);
|
||||
void SetMediaSourceDuration(double aDuration, MSRangeRemovalAction aAction);
|
||||
double GetMediaSourceDuration();
|
||||
|
Loading…
Reference in New Issue
Block a user