detect-audio-video
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -776,4 +776,7 @@ const AAC_CONTENT_TYPE = 'audio/mp4; codecs="mp4a.40.2"'; | ||
} | ||
const video = document.createElement('video'); | ||
return Boolean((_a = video.remote) === null || _a === void 0 ? void 0 : _a.watchAvailability); | ||
const video = getDefaultVideoElement(); | ||
return Boolean( | ||
// @ts-ignore | ||
video.webkitShowPlaybackTargetPicker || // Safari | ||
((_a = video.remote) === null || _a === void 0 ? void 0 : _a.watchAvailability)); | ||
} | ||
@@ -787,3 +790,3 @@ function isPipSupported() { | ||
} | ||
const video = document.createElement('video'); | ||
const video = getDefaultVideoElement(); | ||
return 'pictureInPictureEnabled' in document || 'webkitPresentationMode' in video; | ||
@@ -790,0 +793,0 @@ } |
{ | ||
"name": "detect-audio-video", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Detect audio and video features in browser", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -39,6 +39,9 @@ # detect-audio-video | ||
- Media Source Extensions | ||
- Media Source Extensions in Workers | ||
- Encrypted Media Extensions | ||
- Managed Media Source | ||
- Managed Media Source in Workers | ||
- Picture-in-picture | ||
- Cast to AirPlay | ||
- Remote Playback API | ||
@@ -45,0 +48,0 @@ ### 📹 Video codecs |
55271
1250
98