Socket
Socket
Sign inDemoInstall

react-facebook-player

Package Overview
Dependencies
8
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

20

dist/FacebookPlayer.js

@@ -62,5 +62,8 @@ 'use strict';

var appId = _this$props.appId;
var allowfullscreen = _this$props.allowfullscreen;
var autoplay = _this$props.autoplay;
var width = _this$props.width;
var showText = _this$props.showText;
var showCaptions = _this$props.showCaptions;
var onReady = _this$props.onReady;
var width = _this$props.width;
var height = _this$props.height;

@@ -79,5 +82,7 @@ var FB = _this.FB;

playerDiv.setAttribute('data-href', 'https://www.facebook.com/facebook/videos/' + videoId);
playerDiv.setAttribute('data-width', width || 500);
playerDiv.setAttribute('data-height', height || 350);
playerDiv.setAttribute('data-allowfullscreen', 'true');
playerDiv.setAttribute('data-allowfullscreen', allowfullscreen || 'false');
playerDiv.setAttribute('data-autoplay', autoplay || 'false');
playerDiv.setAttribute('data-width', width || 'auto');
playerDiv.setAttribute('data-show-text', showText || 'false');
playerDiv.setAttribute('data-show-captions', showCaptions || 'false');

@@ -253,3 +258,6 @@ _this.container.appendChild(playerDiv);

width: _react.PropTypes.number,
height: _react.PropTypes.number,
allowfullscreen: _react.PropTypes.string,
autoplay: _react.PropTypes.string,
showText: _react.PropTypes.string,
showCaptions: _react.PropTypes.string,
onReady: _react.PropTypes.func,

@@ -256,0 +264,0 @@ onStartedPlaying: _react.PropTypes.func,

{
"name": "react-facebook-player",
"version": "0.0.5",
"version": "0.0.6",
"description": "React component for Facebook embedded videos API",

@@ -5,0 +5,0 @@ "main": "dist/FacebookPlayer.js",

@@ -22,4 +22,8 @@ react-youtube

className={ string } # Element class.
width={ number } # iFrame width.
height={ number } # iFrame height.
/* ATTRIBUTES. Ref: http://bit.ly/29OOzWZ */
allowfullscreen={ string }
autoplay={ string }
width={ number }
showText={ string }
showCaptions={ string }
/* EVENTS. Ref: http://bit.ly/29JaA7J */

@@ -26,0 +30,0 @@ onReady={ function } # Returns a player object to be used for controlling

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc