# Tplayer **Repository Path**: haocity/Tplayer ## Basic Information - **Project Name**: Tplayer - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HAOTOWN TPlayer ![image](https://ooo.0o0.ooo/2016/12/16/585359df46d72.png) CSS3+Javascript 本项目是一款基于css3和js弹幕系统。 未全部完善 [DEMO](https://haocity.github.io/Tplayer/) ![image](https://ooo.0o0.ooo/2016/12/20/5858df24293f5.png) ## 使用方式 引用播放器样式表 ``` ``` 引用Tplayer.js文件 ``` ``` 执行 ``` Tplayer(Element,videourl,videoposter,danmuserver,danmuid,videotype); ``` | Field | Type | Description | | ------------------ | --------------------- | ---------------------------------------- | | `Element` | `Element Object` | 要插入播放器的元素 | | `videourl` | `String` | 视频播放地址 | | `videoposter` | `String` | 视频封面地址 | | `videourl` | `String` | 弹幕服务器地址 | | `danmuid` | `Int` | 弹幕ID | | `videotype` | `String` | 视频格式 支持flv与mp4 使用flv时需引用flv.js | 后端 `node` [flv.js github](https://github.com/Bilibili/flv.js/) [flv.js CDN bootcdn.cn](http://www.bootcdn.cn/flv.js/)