1.0.6 • Published 5 years ago

tk-player v1.0.6

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
5 years ago

Package for play video in TechKids Edu system

Usage

<TKPlayer
  videoId={<< Video ID: string, required >>}
  type={<< Video Type: string, required, enum: [ 'upload', 'youtube' ] >>}
  mediaUrl={<< Media URL: string >>}
  thumbnail={<< Thumbnail: string >>}
  width={<< Width: number, default: 100% >>}
  height={<< Height: number, default: 100% >>}
  displayVideo={<< DisplayVideo: bool >>}
  onEnd={<< On end event handle: function >>}
/>

Change Log

Version 1.0.4

Changed

  • Change button play at first position and improve display.

Version 1.0.3

Fixed

  • Fix crash when player unmounted.

Version 1.0.2

Added

  • "width", "height" property support.
  • Video pause/play base on displayVideo property.

Changed

  • Change player lib to video.js for support both upload and youtube source.