Comments (16)
Yeah I get this too, the screen just turns white
from miyou.
from miyou.
Mine works fine, can't seem to reproduce the issue. What browser are you using?
from miyou.
Safari
What browser and phone are you using?
from miyou.
Safari What browser and phone are you using?
I read about this. And the issue is with iOS devices, all iOS browsers are all build upon safari, and safari doesn't support HLS video streaming, that's why It errors out.
There are work arounds for that, but currently I don't have a iOS device, so can't test those.
from miyou.
Dang
from miyou.
I could test it for you
from miyou.
I could test it for you
well, without having a physical device in hand can't implement those. So for now I can't do anything๐.
from miyou.
D:
from miyou.
I changed the lines to the one I saw from the Stackoverflow, I think I did something but I don't think I'm quite there yet, this is what I see on the watch page now:
from miyou.
Oh but hey when I switch to external it works now
External is mid I need my delicious internal to work :3
from miyou.
Something weird and mind blowing happened when I switched back
I opened Attack on Titan
Internal video was blank, so I switched to external, which worked
When I switched back to internal, something weird happens...
https://streamable.com/s3cvam
from miyou.
How do I make the video fit where it's supposed to go?
from miyou.
How do I make the video fit where it's supposed to go?
I have used https://plyr.io/ for the video player, I think you have to set up that
from miyou.
I think you have to do something similar like this, not so sure
else if (video.canPlayType("application/vnd.apple.mpegurl")) {
video.src = src;
const defaultOptions = {
captions: { active: true, update: true, language: "en" },
};
let player = new plyr(video, defaultOptions);
setPlayer(new plyr(video, defaultOptions));
player.on("enterfullscreen", (event) => {
window.screen.orientation.lock("landscape");
});
player.on("exitfullscreen", (event) => {
window.screen.orientation.lock("portrait");
});
player.on("timeupdate", function (e) {
var time = player.currentTime,
lastTime = localStorage.getItem(title);
if (time > lastTime) {
localStorage.setItem(title, Math.round(player.currentTime));
}
if (player.ended) {
localStorage.removeItem(title);
}
});
player.on("play", function (e) {
if (flag) {
var lastTime = localStorage.getItem(title);
if (lastTime !== null && lastTime > player.currentTime) {
player.forward(parseInt(lastTime));
}
flag = false;
}
});
player.on("seeking", (event) => {
localStorage.setItem(title, Math.round(player.currentTime));
});
} else {
const player = new plyr(src, defaultOptions);
player.source = {
type: "video",
title: "Example title",
sources: [
{
src: src,
type: "video/mp4",
},
],
};
}
from miyou.
I think you have to do something similar like this, not so sure
else if (video.canPlayType("application/vnd.apple.mpegurl")) { video.src = src; const defaultOptions = { captions: { active: true, update: true, language: "en" }, }; let player = new plyr(video, defaultOptions); setPlayer(new plyr(video, defaultOptions)); player.on("enterfullscreen", (event) => { window.screen.orientation.lock("landscape"); }); player.on("exitfullscreen", (event) => { window.screen.orientation.lock("portrait"); }); player.on("timeupdate", function (e) { var time = player.currentTime, lastTime = localStorage.getItem(title); if (time > lastTime) { localStorage.setItem(title, Math.round(player.currentTime)); } if (player.ended) { localStorage.removeItem(title); } }); player.on("play", function (e) { if (flag) { var lastTime = localStorage.getItem(title); if (lastTime !== null && lastTime > player.currentTime) { player.forward(parseInt(lastTime)); } flag = false; } }); player.on("seeking", (event) => { localStorage.setItem(title, Math.round(player.currentTime)); }); } else { const player = new plyr(src, defaultOptions); player.source = { type: "video", title: "Example title", sources: [ { src: src, type: "video/mp4", }, ], }; }
Yea that works you should probably merge that thank you!
from miyou.
Related Issues (18)
- Info Page Not Working (Animixplay is down forever). HOT 6
- Hey ,can i convert your react app into next js?? HOT 1
- Blue Lock Episode 12 is not working ? HOT 1
- Hi, May you please allow CORS ? HOT 1
- any backends I can implement the frontend with? HOT 3
- Player not working HOT 2
- Player not working HOT 1
- Self-hosted API HOT 3
- Host API
- Source code of api
- Watch URL gets scuffed sometimes HOT 2
- Fast forward button for mobile HOT 3
- Cant seem to load HOT 3
- Dynamic Page Title HOT 5
- manga HOT 9
- movies and tv series? HOT 1
- Telegram bot & login ? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miyou.