-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7954b1f
commit 8a2a4ee
Showing
9 changed files
with
114 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
## 更新日志 | ||
|
||
### v1.0.3 | ||
|
||
* 增加频道 | ||
* 优化样式 | ||
* 优化速度 | ||
|
||
### v1.0.0 | ||
|
||
* 基本视频播放 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
(function () { | ||
return new Promise(function (resolve, reject) { | ||
const body = document.querySelector('body'); | ||
body.style.position = 'fixed'; | ||
body.style.left = '100%'; | ||
body.style.backgroundColor = '#000'; | ||
|
||
const count = 0; | ||
const interval = setInterval(() => { | ||
const video = document.querySelector('video'); | ||
if (video !== null) { | ||
video.attributes.controls = 'false'; | ||
video.style.objectFit = 'contain'; | ||
video.style.position = 'fixed'; | ||
video.style.width = "100vw"; | ||
video.style.height = "100vh"; | ||
video.style.top = '0'; | ||
video.style.left = '0'; | ||
video.style.zIndex = '9999'; | ||
clearInterval(interval); | ||
setTimeout(function () { | ||
console.log('success'); | ||
}, 0) | ||
} | ||
count ++; | ||
if (count > 6 * 1000) { | ||
clearInterval(interval); | ||
console.log('timeout'); | ||
} | ||
}, 10); | ||
}); | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
(function () { | ||
return new Promise(function (resolve, reject) { | ||
const body = document.querySelector('body'); | ||
body.style.position = 'fixed'; | ||
body.style.left = '100%'; | ||
body.style.backgroundColor = '#000'; | ||
|
||
const count = 0; | ||
const interval = setInterval(() => { | ||
const video = document.querySelector('video'); | ||
if (video !== null) { | ||
video.attributes.controls = 'false'; | ||
video.style.objectFit = 'contain'; | ||
video.style.position = 'fixed'; | ||
video.style.width = "100vw"; | ||
video.style.height = "100vh"; | ||
video.style.top = '0'; | ||
video.style.left = '0'; | ||
video.style.zIndex = '9999'; | ||
clearInterval(interval); | ||
setTimeout(function () { | ||
console.log('success'); | ||
}, 0) | ||
} | ||
count ++; | ||
if (count > 6 * 1000) { | ||
clearInterval(interval); | ||
console.log('timeout'); | ||
} | ||
}, 10); | ||
}); | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version_code": 16777216, "version_name": "v1.0.0"} | ||
{"version_code": 16777984, "version_name": "v1.0.3"} |