![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
artplayer-plugin-danmuku
Advanced tools
Readme
Danmuku plugin for ArtPlayer
Checkout the demo from Github Pages
Install with npm
$ npm install artplayer-plugin-danmuku
Or install with yarn
$ yarn add artplayer-plugin-danmuku
import artplayerPluginDanmuku from 'artplayer-plugin-danmuku';
Or umd builds are also available
<script src="artplayer-plugin-danmuku.js"></script>
Will expose the global variable to window.artplayerPluginDanmuku
.
var art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
plugins: [
artplayerPluginDanmuku({
danmuku: [
{
text: '666', // Danmu text
time: 5, // Video time
color: '#fff', // Danmu color
border: false, // Danmu border
mode: 0, // Danmu mode: 0-scroll or 1-static
},
], // Can be an array or return the promised function or danmuku xml url
speed: 5, // Animation time
opacity: 1, // Opacity
color: '#fff', // Font color
size: 25, // Font size
maxlength: 50, // The maximum number of words in the danmu
margin: [10, 20], // Margin top and margin bottom
synchronousPlayback: false, // Synchronous playback speed
}),
],
});
// Send danmu
art.plugins.artplayerPluginDanmuku.emit({
text: '666', // Danmu text
time: 5, // Video time
color: '#fff', // Danmu color
size: 25, // Danmu size
border: false, // Danmu border
mode: 0, // Danmu mode: 0-scroll or 1-static
});
// Hide danmu
art.plugins.artplayerPluginDanmuku.hide();
// Show danmu
art.plugins.artplayerPluginDanmuku.show();
// Config danmu
art.plugins.artplayerPluginDanmuku.config({
// option
});
MIT © Harvey Zack
FAQs
Danmuku plugin for ArtPlayer
The npm package artplayer-plugin-danmuku receives a total of 309 weekly downloads. As such, artplayer-plugin-danmuku popularity was classified as not popular.
We found that artplayer-plugin-danmuku demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.