Skip to main content

Moovie.js - Media player made for movies - Integration ๐Ÿš€



To know more features about this player visit GitHub .

GitHub logo BMSVieira / moovie.js

Movie focused HTML5 Player


Demo ▪️ Installation ▪️ Shortcuts ▪️ API ▪️ Integrations ▪️ Events
Styling ▪️ Plugins ▪️ Custom Events ▪️ i18n ▪️ Settings


◼️ Features:

  • ๐Ÿ”ง Fully customizable and Easy-to-use
  • ๐Ÿ’Ž Built-in caption offset adjust on the fly
  • ๐ŸŽฌ Built-in support for .vtt and .srt caption files
  • ๐Ÿ•น Built-in Plugins, use the code that you really need!
  • ๐ŸŽฏ Built-in CustomEvents, add multiple events that will run a specific currentTime
  • ๐Ÿ–Š Add tracks/captions dynamically using our API
  • ๐Ÿ—ƒ Add tracks/captions locally on the fly (no server or upload required)
  • ๐ŸŒ  Adjust speed on the fly
  • ๐Ÿ›  Standardized events / shortcuts / API
  • ๐Ÿ–Œ Caption customization
  • ๐Ÿ’ช No dependencies, built with VanillaJS
  • ๐ŸŒŽ Tested in all modern browsers
  • ๐Ÿ’ป Responsive
  • ๐Ÿ—ƒ Integration with webtorrent.js, dash.js, Shaka Player and hls.js
  • ๐ŸŒŽ Internationalization (i18n) of controls

◼️ Demo:

https://mooviejs.com/

◼️ Installation (Browser):

1 - Include JavaScript Source.

<script src="path/to/moovie.js"
Enter fullscreen mode Exit fullscreen mode

You can download it from GitHub or if you want to use it using CDN then below are the steps.

I slightly modified this library because while integrating with jsDelivr CDN there was and icon issue(icons were not showing). You have to download and upload this to your website for the player. But now All things are shorted out ๐Ÿ‘. #NoErrorOnUsingCDN

See File on SopPlayer :- https://github.com/SH20RAJ/Sopplayer/tree/main/mooviejs


◼️ Demo:

https://mooviejs.com/

◼️ Installation (Browser):

1 - Include JavaScript Source.

<script src="https://cdn.jsdelivr.net/gh/SH20RAJ/Sopplayer/mooviejs/js/moovie.min.js"></script>
Enter fullscreen mode Exit fullscreen mode

2 - Include Styles.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/SH20RAJ/Sopplayer/mooviejs/css/moovie.min.css">
Enter fullscreen mode Exit fullscreen mode

3 - Set HTML.

<video id="example1" poster="<<path-to-poster>>">
  <source src="<<path-to-file.mp4>>" type="video/mp4">
  <track kind="captions" label="Portuguese" srclang="pt" src="<<path-to-caption.vtt>>">
  <track kind="captions" label="English" srclang="en" src="<<path-to-caption.vtt>>">
  Your browser does not support the video tag.
</video>
Enter fullscreen mode Exit fullscreen mode

Example :-

4 - Initilize.

<script>
document.addEventListener("DOMContentLoaded", function() {
   video1 = new Moovie({
      selector: "#example1",
      config: {
          controls : {
              playtime : true,
              mute : true,
              volume : true,
              subtitles : true,
              config : true,
              fullscreen : true,
              submenuCaptions : true,
              submenuOffset : true,
              submenuSpeed : true,
              allowLocalSubtitles : true
          }
      }
   });
});
</script>
Enter fullscreen mode Exit fullscreen mode
Note: Do not forget to not include "icons" folder. Because the error was fixed. Here ->

GitHub logo BMSVieira / moovie.js

Movie focused HTML5 Player


Demo ▪️ Installation ▪️ Shortcuts ▪️ API ▪️ Integrations ▪️ Events
Styling ▪️ Plugins ▪️ Custom Events ▪️ i18n ▪️ Settings


◼️ Features:

  • ๐Ÿ”ง Fully customizable and Easy-to-use
  • ๐Ÿ’Ž Built-in caption offset adjust on the fly
  • ๐ŸŽฌ Built-in support for .vtt and .srt caption files
  • ๐Ÿ•น Built-in Plugins, use the code that you really need!
  • ๐ŸŽฏ Built-in CustomEvents, add multiple events that will run a specific currentTime
  • ๐Ÿ–Š Add tracks/captions dynamically using our API
  • ๐Ÿ—ƒ Add tracks/captions locally on the fly (no server or upload required)
  • ๐ŸŒ  Adjust speed on the fly
  • ๐Ÿ›  Standardized events / shortcuts / API
  • ๐Ÿ–Œ Caption customization
  • ๐Ÿ’ช No dependencies, built with VanillaJS
  • ๐ŸŒŽ Tested in all modern browsers
  • ๐Ÿ’ป Responsive
  • ๐Ÿ—ƒ Integration with webtorrent.js, dash.js, Shaka Player and hls.js
  • ๐ŸŒŽ Internationalization (i18n) of controls

◼️ Demo:

https://mooviejs.com/

◼️ Installation (Browser):

1 - Include JavaScript Source.

<script src="path/to/moovie.js"
Enter fullscreen mode Exit fullscreen mode

Customizing and Styling

◼️ Styling > Colors:

Using CSS Custom Properties you can easily customize your own player.

Check below a list of variables and what they are used for:

Name Description Default
--moovie_main_color Moovie main color #3191f7
--moovie_bg_controls Background color when hover the buttons rgba(16, 34, 62, 0.6)
--moovie_bg_submenu Submenu background color #f7f7f7
--moovie_bg_cuetimer Cuetimer background color #2b2b2b
--moovie_submenu_options_fcolor Submenu text color #515151
--moovie_topic_submenu_fcolor Submenu topic text color #797979
--moovie_currenttime_color CurrentTime text color white
--moovie_submenu_options_fsize Submenu options font size 10pt
--moovie_topic_submenu_fsize Submenu topic font size 9pt
--moovie_currenttime_fsize CurrentTime font size 11pt
--moovie_cuetimer_fsize Cuetimer font size 9pt
--moovie_svgicons_width Icons size 15px
--moovie_padding_controls Control bar padding 13px
--moovie_caption_fcolor Captions text color white
--moovie_cuetimer_fcolor Cuetimer text color white

See Style Customized Demo :- https://sopplayer.sh20raj.repl.co/mooviejs/demo2.html

Checkout more Video Players :- https://www.youtube.com/playlist?list=PLFcP4G5x1z-rhG307w1iAQBFSTHa5hbRz

Demo ▪️ Installation ▪️ Shortcuts ▪️ API ▪️ Integrations ▪️ Events
Styling ▪️ Plugins ▪️ Custom Events ▪️ i18n ▪️ Settings


◼️ Features:

  • ๐Ÿ”ง Fully customizable and Easy-to-use
  • ๐Ÿ’Ž Built-in caption offset adjust on the fly
  • ๐ŸŽฌ Built-in support for .vtt and .srt caption files
  • ๐Ÿ•น Built-in Plugins, use the code that you really need!
  • ๐ŸŽฏ Built-in CustomEvents, add multiple events that will run a specific currentTime
  • ๐Ÿ–Š Add tracks/captions dynamically using our API
  • ๐Ÿ—ƒ Add tracks/captions locally on the fly (no server or upload required)
  • ๐ŸŒ  Adjust speed on the fly
  • ๐Ÿ›  Standardized events / shortcuts / API
  • ๐Ÿ–Œ Caption customization
  • ๐Ÿ’ช No dependencies, built with VanillaJS
  • ๐ŸŒŽ Tested in all modern browsers
  • ๐Ÿ’ป Responsive
  • ๐Ÿ—ƒ Integration with webtorrent.js, dash.js, Shaka Player and hls.js
  • ๐ŸŒŽ Internationalization (i18n) of controls

Comments

Popular posts from this blog

How to Add a VS Code Editor to Your Website

How to Add a VS Code Editor to Your Website The Monaco editor by Microsoft provides a code editor component that can be easily integrated into websites. With just a few lines of code, you can add a full-featured editor similar to VS Code in your web app. In this tutorial, we'll see how to do just that. Getting Started To use Monaco, we need to include it in our page. We can get it from a CDN: < script src = "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.23.0/min/vs/loader.min.js" > </ script > This will load the Monaco library asynchronously. Next, we need a <div> in our HTML where we can instantiate the editor: < div id = "editor" ></ div > Now in our JavaScript code, we can initialize Monaco and create the editor: require .config({ paths : { 'vs' : 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.23.0/min/vs' }}); require ([ "vs/editor/editor.main" ], function ( ) { const ...

10 Free GitHub Copilot Alternatives for VS Code in 2024

10 Free GitHub Copilot Alternatives for VS Code in 2024 As developers, we're always on the lookout for tools that can help us write code more efficiently. GitHub Copilot has been a game-changer in this regard, but its premium pricing may be a deterrent for some. Fortunately, there are several free alternatives available that offer similar functionality. In this article, we'll explore 10 of the best free GitHub Copilot alternatives for Visual Studio Code in 2024. Comparison of Free GitHub Copilot Alternatives Tool Language Support Auto-Completion Code Generation Code Explanation Bito Python, JavaScript, TypeScript, Java, C#, C++, Go, Ruby, PHP, Swift, Kotlin, Rust, Scala ✓ ✓ ✓ Tabnine Python, JavaScript, TypeScript, Java, C#, C++, Go, Ruby, PHP, Swift, Kotlin, Rust, Scala ✓ ✓ ✗ Amazon CodeWhisperer Python, JavaScript, TypeScript, Java, C#, C++, Go, Ruby, PHP ✓ ✓ ✗ Codeium Python, JavaScript, TypeScript, Java, C#, C...

Top React UI Libraries ๐ŸŒŸ

๐ŸŒŸ The Ultimate Roundup of Top React UI Libraries for Your Next Project! ๐Ÿš€๐ŸŽจ Hey there, React wizards! ๐Ÿช„✨ Ready to take your frontend game to the next level? Let's dive into an even broader spectrum of incredible React UI libraries that'll make your interfaces shine like never before! ๐Ÿ’ป๐ŸŒˆ 1. Tremor UI ๐ŸŒŠ ๐ŸŒŸ Tremor UI is a rising star in the React UI galaxy! ✨ It offers a sleek and modern design language, perfect for crafting stylish buttons and more. ๐Ÿ”˜๐ŸŽจ With Tremor, you can effortlessly create eye-catching user interfaces with its intuitive API and customizable components. ๐Ÿช„✨ Key Features : Modern Design Aesthetic Easy Customization Focus on User Experience 2. Radix UI ๐ŸŒฑ ๐ŸŒŸ Radix UI is all about building accessible, powerful components for React. ๐Ÿ› ️๐Ÿ”ฉ From modals to tooltips, Radix UI provides a solid foundation for creating interactive and user-friendly interfaces. ๐ŸŒ๐Ÿงก Dive into Radix ...

Random Posts