Fix canPlayType/isTypeSupported for AV1 content

This commit is contained in:
trav90 2018-10-20 14:49:17 -05:00 • committed by Roy Tam
commit cbacc81f82
6 changed files with 35 additions and 33 deletions

View file

@ -345,6 +345,11 @@ IsVP8CodecString(const nsAString& aCodec);
bool
IsVP9CodecString(const nsAString& aCodec);
#ifdef MOZ_AV1
bool
IsAV1CodecString(const nsAString& aCodec);
#endif
// Try and create a TrackInfo with a given codec MIME type.
UniquePtr<TrackInfo>
CreateTrackInfoWithMIMEType(const nsACString& aCodecMIMEType);