Bug 1554699 - Report real duration after playing a MediaStream ended. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D33649
This commit is contained in:
@@ -2797,6 +2797,9 @@ already_AddRefed<Promise> HTMLMediaElement::Seek(double aTime,
|
||||
|
||||
double HTMLMediaElement::Duration() const {
|
||||
if (mSrcStream) {
|
||||
if (mSrcStreamPlaybackEnded) {
|
||||
return CurrentTime();
|
||||
}
|
||||
return std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user