All Projects → tim-peterson → Videojs Playlist

tim-peterson / Videojs Playlist

Licence: other
A plugin to play multiple audio tracks or multiple videos.

Projects that are alternatives of or similar to Videojs Playlist

Atldotnet
Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
Stars: ✭ 180 (+185.71%)
Mutual labels:  audio, playlist
Audioplayer
Audio Player for Nextcloud and ownCloud
Stars: ✭ 179 (+184.13%)
Mutual labels:  audio, playlist
Poddycast
Podcast app made with Electron, lots of ❤️ and ☕️
Stars: ✭ 111 (+76.19%)
Mutual labels:  audio, playlist
Wjplayer
Video.js bundle that supports HLS, VAST/VMAP, 360-degree videos, and more.
Stars: ✭ 55 (-12.7%)
Mutual labels:  audio, videojs
Flutter Assetsaudioplayer
Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications
Stars: ✭ 458 (+626.98%)
Mutual labels:  audio, playlist
Jcplayer
🎵 A simple audio player for Android applications.
Stars: ✭ 209 (+231.75%)
Mutual labels:  audio, playlist
Musicplayer
A minimal music player built on electron.
Stars: ✭ 145 (+130.16%)
Mutual labels:  audio, playlist
Videojs Wavesurfer
video.js plugin that adds a navigable waveform for audio and video files
Stars: ✭ 242 (+284.13%)
Mutual labels:  audio, videojs
Waveform Playlist
Multitrack Web Audio editor and player with canvas waveform preview. Set cues, fades and shift multiple tracks in time. Record audio tracks or provide audio annotations. Export your mix to AudioBuffer or WAV! Project inspired by Audacity.
Stars: ✭ 919 (+1358.73%)
Mutual labels:  audio, playlist
Youtube In Background
YiB is an Android app, which extracts audio from YouTube videos and plays them in background.
Stars: ✭ 58 (-7.94%)
Mutual labels:  audio, playlist
Slang
🎤 a simple audio programming language implemented in JS
Stars: ✭ 1,095 (+1638.1%)
Mutual labels:  audio
Sound Source Localization Algorithm doa estimation
关于语音信号声源定位DOA估计所用的一些传统算法
Stars: ✭ 58 (-7.94%)
Mutual labels:  audio
App Media
Elements for accessing data from media input devices and visualizing that data for users
Stars: ✭ 60 (-4.76%)
Mutual labels:  audio
Musicbot
🎶 A Discord music bot that's easy to set up and run yourself!
Stars: ✭ 1,109 (+1660.32%)
Mutual labels:  playlist
Bpm
Library and tool for dealing with beats per second detection
Stars: ✭ 57 (-9.52%)
Mutual labels:  audio
Ff meters
Plug and play component to display LED meters for JUCE audio buffers
Stars: ✭ 60 (-4.76%)
Mutual labels:  audio
Play stdin.sh
A set of lightweight scripts to stream audio between two *nix machines. Perfect for use with a Raspberry Pi
Stars: ✭ 56 (-11.11%)
Mutual labels:  audio
React Awesome Player
🔥 video.js component for React
Stars: ✭ 56 (-11.11%)
Mutual labels:  videojs
Toothyprogress
A polyline determinated ProgressBar written in Kotlin
Stars: ✭ 56 (-11.11%)
Mutual labels:  audio
Low Latency Android Ios Linux Windows Tvos Macos Interactive Audio Platform
🇸Superpowered Audio, Networking and Cryptographics SDKs. High performance and cross platform on Android, iOS, macOS, tvOS, Linux, Windows and modern web browsers.
Stars: ✭ 1,121 (+1679.37%)
Mutual labels:  audio

Video.js playlist

A video-js plugin to play multiple videos or multiple audio tracks . It is one of a growing number of plugins for the awesome video-js library

Rationale: The main goal in developing this plugin is to play audio files. Playing audio is possible with video-js either by swapping the <video> for an <audio> tag or by simply feeding audio tracks to the <video> tag. Both approaches have their pluses and minuses which are documented here in video.js's issues.

DEMO

http://tim-peterson.github.io/videojs-playlist/

Using the Plugin

The plugin automatically registers itself when you include video.playlist.js in your page:

<script src='videojs.playlist.js'></script>

You probably want to include the default stylesheet, too. It provides some basic styling to indicate what track is currently playing:

<link href="videojs.playlist.css" rel="stylesheet">

The Playlist plugin has one required id and class names in the HTML

id="XXX-vjs-playlist" //playlist wrapper ID that is specific to the instantiated videojs object ID, e.g., id="audio-playlist-vjs-playlist". This is necessary such that multiple videojs players can exist on the same page.

class="vjs-track" // tracks className

The Playlist plugin currently takes four options, mediaType, continuous, and setTrack:

var myPlaylist=myPlayerPlaylist.playlist({

      "continuous": true,
      "setTrack": 2
    });

mediaType (string) specifies whether the player should play HTML5 video or audio. If you want <audio> set this option to "audio". Not including this option is the same as setting it to video.

continuous (bool) specifies whether the playlist should play the next track after the previous one finishes. Setting this to false prevents the continuous playback. Not including this option is the same as setting it to true.

setTrack (int) allows manually setting the initial track that should be played. It's a zero-indexed integer based on the number of tracks in the playlist.

onTrackSelected (function) callback for when a track has been selected. this will be set to to the HTML element that is now the currently selected track.

The playlist object returns several values:

1. myPlaylist.index() //returns the current track (0-indexed)
2. myPlaylist.trackCount //indicates the total number of tracks
3. myPlaylist.tracks //returns javascript object of all tracks document.querySelectorAll("#"+this.player.id+'.vjs-track')
4. myPlaylist.prev() //manually triggers the previous track and stays on the 1st track if at the last track
5. myPlaylist.next() //manually triggers the next track and returns to the 1st track if at the last track

Future options being considered include: 1) a shuffle button to shuffle tracks and 2) rendering the playlist using JS rather than as it is currently done with HTML. The intent is to allow a playlist {} object to be fed in. I'd be happy for your feedback, [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].