修复工作
This commit is contained in:
@@ -92,6 +92,24 @@ export default {
|
||||
console.log('✅ 播放器对象已创建:', this.player);
|
||||
console.log('🎬 播放器底层视频元素:', this.player.video);
|
||||
|
||||
// 监听 flv.js 的统计信息和错误
|
||||
if (this.player.flv) {
|
||||
console.log('📊 flv.js 实例:', this.player.flv);
|
||||
|
||||
// 监听 flv.js 的统计信息
|
||||
this.player.flv.on('statistics_info', (stats) => {
|
||||
console.log('📈 flv.js 统计:', stats);
|
||||
});
|
||||
|
||||
// 监听 flv.js 的错误
|
||||
this.player.flv.on('error', (errorType, errorDetail, errorInfo) => {
|
||||
console.error('💥 flv.js 错误:');
|
||||
console.error(' 类型:', errorType);
|
||||
console.error(' 详情:', errorDetail);
|
||||
console.error(' 信息:', errorInfo);
|
||||
});
|
||||
}
|
||||
|
||||
// 监听播放器错误
|
||||
this.player.on('error', (error) => {
|
||||
console.error('❌ 播放器错误:', error);
|
||||
@@ -101,7 +119,9 @@ export default {
|
||||
currentTime: this.player.video.currentTime,
|
||||
duration: this.player.video.duration,
|
||||
readyState: this.player.video.readyState,
|
||||
networkState: this.player.video.networkState
|
||||
networkState: this.player.video.networkState,
|
||||
buffered: this.player.video.buffered.length > 0 ?
|
||||
`${this.player.video.buffered.start(0)} - ${this.player.video.buffered.end(0)}` : 'none'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user