@grfzhl/vue-hls-player 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -213,15 +213,22 @@ async function startFullscreen() {
|
|
|
213
213
|
screen.orientation.unlock();
|
|
214
214
|
}
|
|
215
215
|
await document.exitFullscreen();
|
|
216
|
+
if (/iPhone|iPad|AppleWebKit/i.test(navigator.userAgent)) {
|
|
217
|
+
vpVideoBlock = document.querySelector('video');
|
|
218
|
+
vpVideoBlock.addAttribute("playsinline");
|
|
219
|
+
vpVideoBlock.addAttribute("webkit-playsinline");
|
|
220
|
+
}
|
|
216
221
|
isFullscreen.value = false;
|
|
217
222
|
} else {
|
|
218
223
|
isFullscreen.value = true;
|
|
219
224
|
try {
|
|
220
225
|
if (vpVideoBlock.requestFullscreen) {
|
|
221
226
|
await vpVideoBlock.requestFullscreen();
|
|
222
|
-
} else if (
|
|
227
|
+
} else if (/iPhone|iPad|AppleWebKit/i.test(navigator.userAgent)) {
|
|
223
228
|
vpVideoBlock = document.querySelector('video');
|
|
224
|
-
|
|
229
|
+
vpVideoBlock.removeAttribute("playsinline");
|
|
230
|
+
vpVideoBlock.removeAttribute("webkit-playsinline");
|
|
231
|
+
await vpVideoBlock.webkitRequestFullscreen(); // iOS snot
|
|
225
232
|
} else if (vpVideoBlock.mozRequestFullScreen) {
|
|
226
233
|
await vpVideoBlock.mozRequestFullScreen(); // Firefox
|
|
227
234
|
} else if (vpVideoBlock.msRequestFullscreen) {
|