tc-player-ts
TypeScript icon, indicating that this package has built-in type declarations

4.5.7 • Public • Published

腾讯云TC-Player封装

tc-player-plus版本太低了,本包封装了最新版本tc-player

使用

import TCPlayer from 'tc-player-ts';
import { useEffect } from 'react';

export default (url: string) => {

  useEffect(() => {
    const player = TCPlayer('player-container-id', {})
    player.src(url)
  })

  return <video id="player-container-id" width="414" height="270" preload="auto" playsinline webkit-playsinline />
}

Package Sidebar

Install

npm i tc-player-ts

Weekly Downloads

2

Version

4.5.7

License

none

Unpacked Size

2.83 MB

Total Files

50

Last publish

Collaborators

  • leo_