Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Player

Index

Type aliases

AudioLikeEvent: { ended: any; pause: any; play: any; timeupdate: any }

模拟 <Audio> 事件。

Type declaration

CameraMovementData: { effect?: CameraMovementEffect; loop?: boolean; mode: Mode; panoIndex: number; rotateSpeed?: number; rotation?: Rotation; transEffect?: "fly" | "fade" | "instant" } & Partial<Pose>

相机运动

CustomData: Record<string, any>

自定义序列帧

InfoPanelData: { style?: InfoPanelStyleEnum; subTitle?: string; title?: string; type: InfoPanelTypeEnum; url: string }

信息面板

Type declaration

ModelVideoData: { matrixWorld?: number[]; vertexs: QuadrangleVertexs | Vertexs; videoPosterSrc: string; videoSrc: string }

视频广告

Type declaration

  • Optional matrixWorld?: number[]
  • vertexs: QuadrangleVertexs | Vertexs

    视频映射在模型中的顶点

  • videoPosterSrc: string

    视频封面

  • videoSrc: string

    视频素材

PanoEffectData: { effect: PanoEffectEnum; twoVertexs: [Vertex, Vertex] }

全景特效

Type declaration

PanoTagData: { imgUrl?: string; style: PanoTagStyleEnum; text: string; type: PanoTagEnum; vertex: Vertex }

Type declaration

PanoTextLabelData: { fontSize?: number; normal?: Vertex; quaternion?: Quaternion; text: string; vertex: Vertex }

全景文本标签

Type declaration

PrompterData: { text: string }

提词器

Type declaration

  • text: string
QuadrangleVertexs: [Vertex, Vertex, Vertex, Vertex]

矩形顶点

Quaternion: { w: number; x: number; y: number; z: number }

四元数

Type declaration

  • w: number
  • x: number
  • y: number
  • z: number
UpdateVRPanoramaData: { _signature: string; allow_hosts: string[]; certificate: string; dynamic_scene?: { images: { back: string; down: string; front: string; index: number; left: string; right: string; up: string } }; expire_at: string }

VR 全景切换

Type declaration

  • [key: string]: any
  • _signature: string
  • allow_hosts: string[]
  • certificate: string
  • Optional dynamic_scene?: { images: { back: string; down: string; front: string; index: number; left: string; right: string; up: string } }
    • images: { back: string; down: string; front: string; index: number; left: string; right: string; up: string }
      • back: string
      • down: string
      • front: string
      • index: number
      • left: string
      • right: string
      • up: string
  • expire_at: string
Vertexs: Vertex[]

顶点数组

VideoEffectData: { direction?: Vertex; fov: number; panoIndex: number; vector?: Pick<Pose, "longitude" | "latitude">; videoSrc: string }

视频特效

Type declaration

  • Optional direction?: Vertex
  • fov: number
  • panoIndex: number
  • Optional vector?: Pick<Pose, "longitude" | "latitude">
  • videoSrc: string
VreoKeyframeEvent: { [ key in VreoKeyframeEnum]: (keyframe: VreoKeyframe) => void } & { ended: any; loaded: any; paused: any; playing: any; unknownKeyframeType: any }

剧本事件

VreoKeyframeMap: { InfoPanel?: false; PanoTag?: false; PanoTextLabel?: false; Prompter?: false }

支持自定义剧本关键帧配置项

Type declaration

  • Optional InfoPanel?: false
  • Optional PanoTag?: false
  • Optional PanoTextLabel?: false
  • Optional Prompter?: false
VreoSubscribe: Pick<Subscribe<VreoKeyframeEvent>, "on" | "once" | "off">