GithubHelp home page GithubHelp logo

isabella232 / media-services-javascript-azure-media-player-timeline-markers-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/media-services-javascript-azure-media-player-timeline-markers-plugin

0.0 0.0 0.0 13 KB

Plugin for Azure Media Player

License: MIT License

HTML 28.58% CSS 5.64% JavaScript 65.77%

media-services-javascript-azure-media-player-timeline-markers-plugin's Introduction

page_type languages products description urlFragment
sample
javascript
html
azure
This plugin adds small markers onto your timeline at the configured times.
media-services-js-plugin-sample

Media Services: Timeline Marker Plugin for Azure Media Player

Getting Started

Include the plugin CSS/javascriptafter the AMP script in the <head> of your html page:

<link href="timelineMarkers.css" rel="stylesheet">
<script src="timelineMarkers.js"></script>

important: this sample plugin's video id is azuremediaplayer and is hardcoded in the timelinemarkers.js in the following line: ```var elements = document.getElementById("azuremediaplayer").getElementsByClassName(className);````
if you change the video id in your own code, be sure you update it in the javascript file as well (this will be fixed soon)

See example.html for how to enable the plugin

Options

Plugin currently receives input in the form of an array of times see below:

plugins: {

	timelineMarker: {
		markertime: ["0:00","1:30", "1:48"]

	}

}

##To-Do

  • remove current markers when source switch occurs
  • remove hardcoded video id

media-services-javascript-azure-media-player-timeline-markers-plugin's People

Contributors

acomsmpbot avatar sraje avatar supernova-eng avatar v-rajagt-zz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.