@realsee/vreo 0.1.6-alpha.3 → 0.1.6-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +1 -1
- package/lib/Player/modules/keyframes/UpdateVRPanorama/index.js +0 -4
- package/package.json +1 -1
- package/resources/Player/modules/VideoAgent/VideoAgentMesh.ts +1 -1
- package/resources/Player/modules/keyframes/UpdateVRPanorama/index.tsx +0 -4
|
@@ -247,7 +247,7 @@ var VideoAgentMesh = /*#__PURE__*/function (_THREE$Mesh) {
|
|
|
247
247
|
switch (_context3.prev = _context3.next) {
|
|
248
248
|
case 0:
|
|
249
249
|
videoUrl = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : '';
|
|
250
|
-
videoUrl =
|
|
250
|
+
videoUrl = videoUrl || '';
|
|
251
251
|
|
|
252
252
|
if (videoUrl) {
|
|
253
253
|
_context3.next = 10;
|
|
@@ -37,10 +37,6 @@ function UpdateVRPanorama() {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
console.warn('not support.');
|
|
40
|
-
Object.keys(images).forEach(function (_key) {
|
|
41
|
-
var key = _key;
|
|
42
|
-
images[key] = images[key].replace(/https*:\/\//, '//');
|
|
43
|
-
});
|
|
44
40
|
var newWorkJSON = JSON.parse(JSON.stringify((_five$work = five.work) === null || _five$work === void 0 ? void 0 : _five$work.raw.work)); // // 原Work数据不能被修改
|
|
45
41
|
|
|
46
42
|
if (newWorkJSON.panorama && newWorkJSON.panorama.list && newWorkJSON.panorama.list[panoIndex]) {
|
package/package.json
CHANGED
|
@@ -196,7 +196,7 @@ export class VideoAgentMesh extends THREE.Mesh {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
async play(videoUrl = '') {
|
|
199
|
-
videoUrl =
|
|
199
|
+
videoUrl = videoUrl || ''
|
|
200
200
|
if (!videoUrl) {
|
|
201
201
|
if (this.videoUrl) await this.videoInstance.play()
|
|
202
202
|
else console.warn('警告:视频资源未初始化。')
|
|
@@ -17,10 +17,6 @@ export function UpdateVRPanorama() {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
console.warn('not support.')
|
|
20
|
-
Object.keys(images).forEach((_key) => {
|
|
21
|
-
const key = _key as keyof WorkCubeImage
|
|
22
|
-
images[key] = images[key].replace(/https*:\/\//, '//')
|
|
23
|
-
})
|
|
24
20
|
const newWorkJSON = JSON.parse(JSON.stringify(five.work?.raw.work))
|
|
25
21
|
|
|
26
22
|
// // 原Work数据不能被修改
|