diff --git a/public/react/public/index.html b/public/react/public/index.html index 976791e90..ddf1ed4a9 100755 --- a/public/react/public/index.html +++ b/public/react/public/index.html @@ -16,6 +16,7 @@ Content=”EduCoder翻转课堂教学模式,颠覆了传统教学模式,让教师与学生的关系由“权威”变成了“伙伴”。将学习的主动权转交给学生,使学生可个性化化学,学生的学习主体得到了彰显。”> +<<<<<<< HEAD @@ -105,6 +106,20 @@ + + + + + + + + + + + +<<<<<<< HEAD +======= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +>>>>>>> dc8805b... webpack 构建flv.js 报错,估计是webpack版本过低,不支持typescript等 \ No newline at end of file diff --git a/public/react/src/modules/courses/Video/video-play/flv.min.js b/public/react/public/js/flv.min.js similarity index 100% rename from public/react/src/modules/courses/Video/video-play/flv.min.js rename to public/react/public/js/flv.min.js diff --git a/public/react/src/modules/courses/Video/video-play/flv-player.jsx b/public/react/src/modules/courses/Video/video-play/flv-player.jsx index e01f9fb31..bbb762762 100644 --- a/public/react/src/modules/courses/Video/video-play/flv-player.jsx +++ b/public/react/src/modules/courses/Video/video-play/flv-player.jsx @@ -1,13 +1,12 @@ import React, { useEffect, useRef } from 'react' -import Flv from './flv.min.js' export default ({ url }) => { const ref = useRef() useEffect(() => { let player = null - if (Flv.isSupported) { - player = Flv.createPlayer({ + if (window.flvjs.isSupported) { + player = window.flvjs.createPlayer({ type: 'flv', volume: 0.8, url,