@cc-component/cc-video 1.0.1 → 1.0.3

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.
@@ -1,26 +1,29 @@
1
1
  import { IVideoParam, IVideoData } from "./base/IVideo";
2
2
 
3
- declare global {
3
+ declare module "cc" {
4
4
  namespace VideoModule {
5
5
  /**开启日志打印 */
6
- function Debug(enabled: boolean);
6
+ export function Debug(enabled: boolean);
7
7
  /**提前加载视频 */
8
- function LoadVideo(url: string, param: IVideoParam)
8
+ export function LoadVideo(url: string, param: IVideoParam)
9
9
  /**播放单个视频 */
10
- function PlayVideo(video: IVideoData, param: IVideoParam)
10
+ export function PlayVideo(video: IVideoData, param: IVideoParam)
11
11
  /** 播放多个视频*/
12
- function PlayVideoMore(video_list: IVideoData[], param: IVideoParam)
12
+ export function PlayVideoMore(video_list: IVideoData[], param: IVideoParam)
13
13
  /**暂停 */
14
- function Pause()
14
+ export function Pause()
15
15
  /**继续 */
16
- function Resume()
16
+ export function Resume()
17
17
  /**停止视频 */
18
- function StopVideoTask()
18
+ export function StopVideoTask()
19
19
  /**视频设置到指定大小 */
20
- function SetSize(param: { x: number, y: number, width: number, height: number })
20
+ export function SetSize(param: { x: number, y: number, width: number, height: number })
21
21
  /**节点位置适配-自动适配 */
22
- function AutoSize()
22
+ export function AutoSize()
23
23
  }
24
+ }
25
+ declare global {
26
+
24
27
  }
25
28
  // // 必须在 game.init() 之前设置!
26
29
  //macro.ENABLE_TRANSPARENT_CANVAS = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-video",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",