mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
commit
ad63468e4e
2
cdn/css/lib.css
Normal file → Executable file
2
cdn/css/lib.css
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
/*! Generate by Mashiro. Fri Jan 25 09:41:42 2019*//*!
|
||||
/*! Generate by Mashiro. Mon Dec 23 09:48:25 2019*//*!
|
||||
* baguetteBox.js
|
||||
* @author feimosi
|
||||
* @version 1.11.0
|
||||
|
11
cdn/js/lib.js
Normal file → Executable file
11
cdn/js/lib.js
Normal file → Executable file
File diff suppressed because one or more lines are too long
6
cdn/js/src/10.materialize.min.js
vendored
6
cdn/js/src/10.materialize.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -525,21 +525,23 @@ function killCoverVideo() {
|
||||
|
||||
function coverVideoIni() {
|
||||
if ($('video').hasClass('hls')) {
|
||||
var video = addComment.I('coverVideo');
|
||||
var video_src = $('#coverVideo').attr('data-src');
|
||||
if (Hls.isSupported()) {
|
||||
var hls = new Hls();
|
||||
hls.loadSource(video_src);
|
||||
hls.attachMedia(video);
|
||||
hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
||||
video.play();
|
||||
});
|
||||
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
||||
video.src = video_src;
|
||||
video.addEventListener('loadedmetadata', function () {
|
||||
video.play();
|
||||
});
|
||||
}
|
||||
$.getScript("https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.3.3/cdn/js/src/16.hls.js", function(){
|
||||
var video = addComment.I('coverVideo');
|
||||
var video_src = $('#coverVideo').attr('data-src');
|
||||
if (Hls.isSupported()) {
|
||||
var hls = new Hls();
|
||||
hls.loadSource(video_src);
|
||||
hls.attachMedia(video);
|
||||
hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
||||
video.play();
|
||||
});
|
||||
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
||||
video.src = video_src;
|
||||
video.addEventListener('loadedmetadata', function () {
|
||||
video.play();
|
||||
});
|
||||
}
|
||||
});
|
||||
//console.info('ini:coverVideoIni()');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user