Skip to content

Commit

Permalink
update script html
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Jul 14, 2024
1 parent d47b594 commit fe02626
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
15 changes: 10 additions & 5 deletions packages/docs/public/oplayer.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ html {
width: 100svw;
height: 100vh;
height: 100svh;
user-select: none !important;
-webkit-user-select: none !important;
-khtml-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
}

@media (min-width: 640px) {
* {
user-select: none !important;
-webkit-user-select: none !important;
-khtml-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
}
}

a,
Expand Down
5 changes: 4 additions & 1 deletion packages/docs/public/oplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"
/>
<meta name="referrer" content="no-referrer" />
<title>OPlayer - Start streaming now using OPlayer</title>
<meta name="keywords" content="oplayer,online player" />
Expand Down
4 changes: 3 additions & 1 deletion packages/docs/public/oplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@
fetch(txt)
.then((r) => r.text())
.then((text) => {
console.log(text.split('\n'))
playlist = text.split('\n').map((line) => {
const [title, src] = line.split(',')
return { title, src: src }
})
})
.then(applyPlaylist)
.catch((e) => {
player.emit('error', e)
})
}

var player = OPlayer.make('#oplayer', {
Expand Down

0 comments on commit fe02626

Please sign in to comment.