Bug 1124491 - Add HTMLMediaElement.isEncrypted attribute - r=cpearce,bz

This commit is contained in:
Edwin Flores
2015-01-27 19:10:11 +13:00
parent 66157a23d5
commit eb33200996
6 changed files with 19 additions and 1 deletions

View File

@@ -2069,6 +2069,7 @@ HTMLMediaElement::HTMLMediaElement(already_AddRefed<mozilla::dom::NodeInfo>& aNo
mCORSMode(CORS_NONE),
mHasAudio(false),
mHasVideo(false),
mIsEncrypted(false),
mDownloadSuspendedByCache(false),
mAudioChannelFaded(false),
mPlayingThroughTheAudioChannel(false),
@@ -3003,6 +3004,7 @@ void HTMLMediaElement::MetadataLoaded(const MediaInfo* aInfo,
{
mHasAudio = aInfo->HasAudio();
mHasVideo = aInfo->HasVideo();
mIsEncrypted = aInfo->mIsEncrypted;
mTags = aTags.forget();
mLoadedDataFired = false;
ChangeReadyState(nsIDOMHTMLMediaElement::HAVE_METADATA);