From 5c47f58fea715234a9013116bc8ef59b9aecab23 Mon Sep 17 00:00:00 2001 From: songyumeng Date: Mon, 29 Apr 2024 21:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91include=E4=B8=AD=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0opencv=20flv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/mapboxgl/include-mapboxgl.js | 7 +++++++ examples/mapboxgl/videoLayer.html | 16 +++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/dist/mapboxgl/include-mapboxgl.js b/dist/mapboxgl/include-mapboxgl.js index 0dc74f150..2cf4ff1aa 100644 --- a/dist/mapboxgl/include-mapboxgl.js +++ b/dist/mapboxgl/include-mapboxgl.js @@ -185,6 +185,13 @@ inputCSS(libsurl + '/video-js/7.10.2/video-js.min.css'); inputScript(libsurl + '/video-js/7.10.2/video.min.js'); } + if (inArray(includes, 'flvjs')) { + inputScript(libsurl + '/flvjs/1.6.2/flv.js'); + inputScript(libsurl + '/videojs-flvjs-es6/1.0.1/videojs-flvjs-es6.js'); + } + if (inArray(includes, 'opencv')) { + inputScript(libsurl + '/opencv/3.4/opencv.js'); + } // dist if (!inArray(excludes, 'iclient-mapboxgl')) { if (supportES6()) { diff --git a/examples/mapboxgl/videoLayer.html b/examples/mapboxgl/videoLayer.html index d2a420747..191678020 100644 --- a/examples/mapboxgl/videoLayer.html +++ b/examples/mapboxgl/videoLayer.html @@ -25,7 +25,7 @@