Former-commit-id: 2444881fea571aa6f7be6133f260d7c6856d1ad6
Former-commit-id: 1e9b1db22a0f6ac789d04560590afc19fc22f1e6
1.0
wanggang 4 years ago
parent a73cbef028
commit a1172d8140

@ -124,7 +124,6 @@
this.flvPlayer.muted = this.muted;
var vm = this;
this.timer = setInterval(function () {
console.log('.');
if (vm.flvPlayer.statisticsInfo.speed === 0) {
console.log('reload1');
clearInterval(vm.timer);
@ -135,12 +134,12 @@
clearInterval(vm.timer);
vm.playByFlvJs();
}
else if (vm.flvPlayer.buffered.length > 0 && vm.flvPlayer.buffered.end(0) - vm.flvPlayer.currentTime > 2) {
else if (vm.flvPlayer.buffered.length > 0 && vm.flvPlayer.buffered.end(0) - vm.flvPlayer.currentTime > 5) {
console.log('reset currentTime');
vm.flvPlayer.currentTime = vm.flvPlayer.buffered.end(0) - 0.001;
}
vm.decodedFrames = vm.flvPlayer.statisticsInfo.decodedFrames;
}, 30 * 1000);
}, 10 * 1000);
} catch (e) {
console.log('error:');
console.log(e);

@ -83,7 +83,6 @@
color: function () {
var h = Math.round(parseInt(this.hue || 128) * 360 / 255);
var result = 'hsl(' + h + ',100%,50%)';
console.log('color:' + result);
return result;
},
hsl: function () {
@ -91,8 +90,6 @@
var s = Math.round(parseInt(this.saturation || 128) * 100 / 254);
var l = Math.round(parseInt(this.brightness || 128) * 100 / 254);
var result = 'hsl(' + h + ',' + s + '%,' + l + '%)';
console.warn('raw:'+this.hue+' '+this.saturation+' '+this.brightness);
console.warn('hsl:' + result);
return result;
},
color: function () {

Loading…
Cancel
Save