2.0.3 • Published 1 year ago

@ff0000-ad-tech/ad-video v2.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago
RED Interactive Agency - Ad Technology

npm (tag) GitHub issues npm downloads

GitHub contributors GitHub commit-activity npm license PRs Welcome


Video

Media Players

API

AlphaVideoPlayer

  • new AlphaVideoPlayer()

AudioPlayer

  • new AudioPlayer()
  • .autoPlay : boolean
  • .percent : number
  • .source : string
  • .load()
  • .play()
  • .pause()
  • .seek(sec)
  • .stop()
  • .mute()
  • .unmute()

CuePoints

  • new CuePoints()

VideoControls

  • new VideoControls()
  • .controlBar : UIControlBar
  • .replayOnInteraction : boolean
  • .unmuteOnInteraction : boolean

VideoPlayer

  • new VideoPlayer()
  • .complete : boolean
  • .hasPlayed : boolean
  • .onComplete : function
  • .onFail : function
  • .onBuffer : function
  • .onProgress : function
  • .onReady : function
  • .container : UIComponent
  • .screen : video
  • .autoPlay : boolean
  • .currentTime : number
  • .duration : number
  • .paused : boolean
  • .percent : number
  • .source : string
  • .volume : number
  • .muted : boolean
  • .forceInline : boolean
  • .load()
  • .play()
  • .pause()
  • .seek(sec)
  • .stop()
  • .mute()
  • .unmute()
  • .resize(width, height)
  • .addCuePoint(time, handler, params)
  • .addControls(obj)

YouTubePlayer

  • new YouTubePlayer()
  • .paused : boolean
  • .percent : number
  • .currentTime : number
  • .complete : boolean
  • .onReady : function
  • .onComplete : function
  • .onFail : function
  • .onBuffer : function
  • .onProgress : function
  • .onPlay : function
  • .onAutoPlay : function
  • .onStop : function
  • .onPause : function
  • .container : UIComponent
  • .volume : number
  • .source : string
  • .url : string
  • .autoPlay : boolean
  • .muted : boolean
  • .nativeControls : boolean
  • .allowFullScreen : boolean
  • .quality : string
  • .hide()
  • .show()
  • .play()
  • .pause()
  • .seek(sec)
  • .stop()
  • .mute()
  • .unmute()
  • .addCuePoint(time, handler, params)

MediaEvent

  • .AUTOPLAY : string
  • .BUFFER : string
  • .COMPLETE : string
  • .FAIL : string
  • .MUTE : string
  • .PAUSE : string
  • .PLAY : string
  • .PROGRESS : string
  • .READY : string
  • .STOP : string
  • .UNMUTE : string

UIButtonFullScreen

  • new UIButtonFullScreen()

UIButtonMute

  • new UIButtonMute()

UIButtonPlayPause

  • new UIButtonPlayPause()

UIButtonReplay

  • new UIButtonReplay()

UIControlBar

  • new UIControlBar()
  • .constant : boolean
  • .showOnPoster : boolean

UITimeDisplay

  • new UITimeDisplay()
  • .showDuration : boolean