Socket
Socket
Sign inDemoInstall

angular-youtube-lite

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-youtube-lite

> Module provide responsive youtube iframe component, to help you embed youtube video in your angular application. Designed for application which doesn't need to use Youtube API.


Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

angular-youtube-lite

Module provide responsive youtube iframe component, to help you embed youtube video in your angular application. Designed for application which doesn't need to use Youtube API.

Installation

npm install --save angular-youtube-lite

Usage

angular.module('app', ['angular-youtube-lite']);

According to rscss layouts definition, you should define your own video container.

.custome-youtube-container {
    width: 50%;
}
<div class="custome-youtube-container">
    <youtube video-id="zYcZC-rcYrc"></youtube>
</div>

The embedded video will stretch to fill your container's width size.

Attributes

AttributesDescriptionDefaultValueType
video-idYoutube video's IDNoneString
playlistList of Youtube video's IDs, separated by commasNoneString
playlist-idYoutube playlist's IDNoneString
hide-logoHide Youtube logo on embedded iframeFalseBoolean
colorColor theme of Youtube iframe, available values: ["white","red"]"red"String
autoplayAutoplay video when the youtube player loadedFalseBoolean
turn-cc-onIf turn-cc-on="true", turn on CC when video start palying, else, use user's reference settings on YoutubeFalseBoolean
related-videoIf related-video="false", Youtube iframe doesn't show related video when video ends.TrueBoolean

For more information, checkout demo page

Credits

Sergey Kupletsky's CodePen

License

MIT

FAQs

Last updated on 11 Jun 2017

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.

Install

Related posts

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