GithubHelp home page GithubHelp logo

isabella232 / media-services-javascript-azure-media-player-social-share-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/media-services-javascript-azure-media-player-social-share-plugin

0.0 0.0 0.0 20 KB

An Azure Media Player Plugin that adds a share button to the player so viewers can share the video link via twitter/facebook/linkedin.

License: MIT License

CSS 26.75% JavaScript 68.24% HTML 5.01%

media-services-javascript-azure-media-player-social-share-plugin's Introduction

page_type languages products description urlFragment
sample
javascript
html
azure
This is an AMP plugin that enables the video viewer to share your content across multiple social networks.
media-services-javascript-azure-media-player-social-share-plugin

Media Services: Share Plugin for Azure Media Player

##Information Attributions:

#Introduction This is an AMP plugin that enables the video viewer to share your content across multiple social networks. A "share" button has been added to the control bar and onclick, opens an overlayed share menu

Getting Started

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

<link href="amp-share.css" rel="stylesheet">
<script src="amp-share.js"></script>

See example.html for how to enable the plugin

Options

Options are set up directly before plugin initialization (see comments in example.html)

The currently supported options are: Facebook status update, Twitter, Linkedin, and Email included like so:
var shareOption = new Amp.Plugin.Share.ShareOptions; shareOption.socialShare.shareIcons.push(Amp.Plugin.Share.SocialShareIcon.getPredefinedShareIcon(0 /* Facebook */)); shareOption.socialShare.shareIcons.push(Amp.Plugin.Share.SocialShareIcon.getPredefinedShareIcon(1 /* Twitter */)); shareOption.socialShare.shareIcons.push(Amp.Plugin.Share.SocialShareIcon.getPredefinedShareIcon(2 /* LinkedIn */)); shareOption.socialShare.shareIcons.push(Amp.Plugin.Share.SocialShareIcon.getPredefinedShareIcon(3 /* Mail */));

Feel free to include them all (or just some) or write your own.

##To-Do

media-services-javascript-azure-media-player-social-share-plugin's People

Contributors

acomsmpbot avatar sraje 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.