Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
videojs-marquee-overlay
Advanced tools
Readme
marquee plugin on video
Sample image : http://prntscr.com/gwflh5
This will provide scrolling text on video both normal screen & full screen. Hls.js included Jquery included
You can add to your project with
npm install --save videojs-marquee-overlay
Or
you can download
https://github.com/Lethea/videojs-marquee-overlay-scrolling-text or clone
git clone git@github.com:Lethea/videojs-marquee-overlay-scrolling-text.git then
npm install
To include videojs-marquee-overlay on your website or web application, use any of the following methods.
videojs-marquee-overlay has 2 more examples with hls quaility selector + watermark addon.
Both of examples works. You can check in examples directory
<script>
TagThis is the simplest case. Get the script in whatever way you prefer and include the plugin after you include video.js, so that the videojs
global is available.
<script src="node_modules/video.js/dist/video.js"></script>
<script src="dist/videojs-marquee-overlay.js"></script>
<script src="node_modules/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/jquery.marquee/jquery.marquee.js"></script>
<script>
var player = videojs('my-video');
player.marqueeOverlay({
contentOfMarquee: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
position: "bottom",
direction: "left",
duration: 15000,
backgroundcolor: "red",
color: "#fefefe"
});
</script>
Working Example Included Built Scripts in Working_sample Directory With Quailty Selector Scroll Text ( Marquee Plugin ) Watermark Playback Speed
http://cdn.emrekaratasoglu.com/marquee_demo/
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>videojs-marquee-overlay Demo</title>
<link href="video-js.css" rel="stylesheet">
<link href="videojs.watermark.css" rel="stylesheet">
</head>
<body>
<video id="videojs-marquee-overlay-player" class="video-js vjs-default-skin" controls width="848" height="480" data-setup='{"playbackRates": [1, 1.5, 2] }'>
<source src="http://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8" type="application/x-mpegurl">
</video>
<script src="video.js"></script>
<script src="videojs-marquee-overlay.js"></script>
<script src="videojs-contrib-hls.js"></script>
<script src="jquery.js"></script>
<script src="videojs5-hlsjs-source-handler.js"></script>
<script src="jquery.marquee.js"></script>
<script src="videojs.watermark.js"></script>
<script>
(function (window, videojs) {
var player = window.player = videojs('videojs-marquee-overlay-player');
player.marqueeOverlay({
contentOfMarquee: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
position: "bottom",
direction: "left",
duration: 15000,
backgroundcolor: "red",
color: "#fefefe"
});
player.qualityPickerPlugin();
player.watermark({
file: 'Owned_Stamp.png',
xpos: 100,
ypos: 0,
clickable:true,
url:"http://emrekaratasoglu.com",
xrepeat: 0,
opacity: 0.5
});
}(window, window.videojs));
</script>
<style>
.vjs-emre-marquee {
width: 100%;
overflow: hidden;
border: 1px solid #ccc;
z-index:9998;
position:absolute;
font-size: 20px;
}
.vjs-control{
z-index:9999;
}
</style>
</body>
</html>
Apache-2.0. Copyright (c) Emre Karatasoglu (emre.karatasoglu@hotmail.com)
FAQs
marquee plugin on video
The npm package videojs-marquee-overlay receives a total of 18 weekly downloads. As such, videojs-marquee-overlay popularity was classified as not popular.
We found that videojs-marquee-overlay demonstrated a not healthy version release cadence and project activity because the last version was released 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
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.