commit
ad63468e4e
|
@ -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
|
* baguetteBox.js
|
||||||
* @author feimosi
|
* @author feimosi
|
||||||
* @version 1.11.0
|
* @version 1.11.0
|
||||||
|
|
File diff suppressed because one or more lines are too long
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() {
|
function coverVideoIni() {
|
||||||
if ($('video').hasClass('hls')) {
|
if ($('video').hasClass('hls')) {
|
||||||
var video = addComment.I('coverVideo');
|
$.getScript("https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.3.3/cdn/js/src/16.hls.js", function(){
|
||||||
var video_src = $('#coverVideo').attr('data-src');
|
var video = addComment.I('coverVideo');
|
||||||
if (Hls.isSupported()) {
|
var video_src = $('#coverVideo').attr('data-src');
|
||||||
var hls = new Hls();
|
if (Hls.isSupported()) {
|
||||||
hls.loadSource(video_src);
|
var hls = new Hls();
|
||||||
hls.attachMedia(video);
|
hls.loadSource(video_src);
|
||||||
hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
hls.attachMedia(video);
|
||||||
video.play();
|
hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
||||||
});
|
video.play();
|
||||||
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
});
|
||||||
video.src = video_src;
|
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
||||||
video.addEventListener('loadedmetadata', function () {
|
video.src = video_src;
|
||||||
video.play();
|
video.addEventListener('loadedmetadata', function () {
|
||||||
});
|
video.play();
|
||||||
}
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
//console.info('ini:coverVideoIni()');
|
//console.info('ini:coverVideoIni()');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue