@realsee/vreo 2.1.0-alpha.0 → 2.1.1-dev.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,13 @@ function BgMusic() {
48
48
  audio.addEventListener('ended', function () {
49
49
  cleanAudio();
50
50
  });
51
+ audio.addEventListener('pause', function () {
52
+ audio.play();
53
+ });
51
54
  controller.once('paused', function () {
52
55
  cleanAudio();
53
56
  });
54
- case 10:
57
+ case 11:
55
58
  case "end":
56
59
  return _context.stop();
57
60
  }
@@ -135,38 +135,12 @@ function InfoPanel() {
135
135
  }, end - start);
136
136
  };
137
137
  controller.on(_VreoUnit.VreoKeyframeEnum.InfoPanel, callback);
138
-
139
- // Object.assign(window, {
140
- // $setInfoPanel: () => {
141
- // controller.openPopUp(
142
- // // <InfoPanelImg url='//vrlab-static.ljcdn.com/release/web/psq/a.8e868cb2.gif' />
143
- // // <InfoPanelImg url='//vrlab-public.ljcdn.com/release/web/psq/b.f9a1ed52.png' />
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/vreo",
3
- "version": "2.1.0-alpha.0",
3
+ "version": "2.1.1-dev.0",
4
4
  "description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
5
5
  "keywords": [
6
6
  "realsee",