@realsee/vreo 2.1.0-alpha.0 → 2.2.0-alpha.0
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.
|
@@ -48,10 +48,16 @@ function BgMusic() {
|
|
|
48
48
|
audio.addEventListener('ended', function () {
|
|
49
49
|
cleanAudio();
|
|
50
50
|
});
|
|
51
|
+
audio.addEventListener('pause', function () {
|
|
52
|
+
if (audio.realSrc === keyframe.data.url) {
|
|
53
|
+
// 有可能会被其他音轨打断
|
|
54
|
+
audio.play();
|
|
55
|
+
}
|
|
56
|
+
});
|
|
51
57
|
controller.once('paused', function () {
|
|
52
58
|
cleanAudio();
|
|
53
59
|
});
|
|
54
|
-
case
|
|
60
|
+
case 11:
|
|
55
61
|
case "end":
|
|
56
62
|
return _context.stop();
|
|
57
63
|
}
|
|
@@ -135,38 +135,12 @@ function InfoPanel() {
|
|
|
135
135
|
}, end - start);
|
|
136
136
|
};
|
|
137
137
|
controller.on(_VreoUnit.VreoKeyframeEnum.InfoPanel, callback);
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
// // <InfoPanelImg url='//vrlab-public.ljcdn.com/release/web/psq/c.4f88c112.png' />
|
|
145
|
-
// // <InfoPanelImg url='//vrlab-public.ljcdn.com/release/seesay/tools/cat_music___f68fb9bbe1f7cd6d00a16456dd0b09ad.gif' />
|
|
146
|
-
// <InfoPanelImg url="http://vrlab-public.ljcdn.com/common/images/web/d94e1bd7-0311-4b20-9c41-a1294fe43554.png">
|
|
147
|
-
// <Title title="场景联动抓拍图片" subTitle={'2022.02.17 14:00'} />
|
|
148
|
-
// </InfoPanelImg>
|
|
149
|
-
// // <InfoPanelVideo url="//vrlab-public.ljcdn.com/release/seesay/tools/2022011713142___b320f74a5e1b5ad4bb46b4dc69d73ecc.mp4">
|
|
150
|
-
// // <Title title="场景联动抓拍图片" subTitle={'2022.02.17 14:00'} />
|
|
151
|
-
// // </InfoPanelVideo>
|
|
152
|
-
// )
|
|
153
|
-
// },
|
|
154
|
-
// $setInfoPanel2: () => {
|
|
155
|
-
// controller.openPopUp(
|
|
156
|
-
// <InfoPanelImg url='//vrlab-static.ljcdn.com/release/web/psq/a.8e868cb2.gif' />
|
|
157
|
-
// // <InfoPanelImg url='//vrlab-public.ljcdn.com/release/web/psq/b.f9a1ed52.png' />
|
|
158
|
-
// // <InfoPanelImg url='//vrlab-public.ljcdn.com/release/web/psq/c.4f88c112.png' />
|
|
159
|
-
// // <InfoPanelImg url='//vrlab-public.ljcdn.com/release/seesay/tools/cat_music___f68fb9bbe1f7cd6d00a16456dd0b09ad.gif' />
|
|
160
|
-
// // <InfoPanelImg url="http://vrlab-public.ljcdn.com/common/images/web/d94e1bd7-0311-4b20-9c41-a1294fe43554.png">
|
|
161
|
-
// // <Title title="场景联动抓拍图片" subTitle={'2022.02.17 14:00'} />
|
|
162
|
-
// // </InfoPanelImg>
|
|
163
|
-
// // <InfoPanelVideo url="//vrlab-public.ljcdn.com/release/seesay/tools/2022011713142___b320f74a5e1b5ad4bb46b4dc69d73ecc.mp4">
|
|
164
|
-
// // <Title title="场景联动抓拍图片" subTitle={'2022.02.17 14:00'} />
|
|
165
|
-
// // </InfoPanelVideo>
|
|
166
|
-
// )
|
|
167
|
-
// },
|
|
168
|
-
// })
|
|
169
|
-
|
|
138
|
+
controller.on('ended', function () {
|
|
139
|
+
controller.openPopUp(false);
|
|
140
|
+
});
|
|
141
|
+
controller.on('paused', function () {
|
|
142
|
+
controller.openPopUp(false);
|
|
143
|
+
});
|
|
170
144
|
return function () {
|
|
171
145
|
controller.off(_VreoUnit.VreoKeyframeEnum.InfoPanel, callback);
|
|
172
146
|
if (timeoutRef.current) {
|