Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
ng-yt-player
Advanced tools
This repo is for distribution on npm
and bower
.
You can install this package either with npm
or with bower
.
npm install ng-yt-player
bower install ng-yt-player
The library is then available at bower_components/ng-yt-player/dist/ng-yt-player.js
.
Add reference to ng-yt-player
<script src="/bower_components/ng-yt-player/dist/ng-yt-player.js"></script>
Where you declare your app module, add ng-yt-player:
angular.module('myApp',[
'ng-yt-player',
]);
In your javascript file within the controller where you plan to use ng-yt-player, declare:
angular.controller('home',function($scope,YouTubePlayerConfig){
//YouTube player configuration
$scope.playerConfig = new YouTubePlayerConfig(
{playerVars : {autoplay: 0}, width: '100%',}
);
});
In your html file within the controller where you plan to use ng-yt-player, add:
<you-tube-player yt-video-id="bfPdFzkPqmU" yt-player-config="playerConfig"></you-tube-player>
You can use all availables parameters for the HTML5 YouTube Players described here
Simply specify your custom configuration in the playerConfig object within your controller, like this:
$scope.playerConfig = new YouTubePlayerConfig(
{ playerVars : {autoplay: 0},
width: '100%',
height: '350px',
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
);
More information on Player Configuration and available events can be found here
FAQs
An Angular directive for the You Tube Video Player
The npm package ng-yt-player receives a total of 0 weekly downloads. As such, ng-yt-player popularity was classified as not popular.
We found that ng-yt-player demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.