Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nampnq/bower-videogular-youtube
Videogular `youtube` plugin repository for distribution on `bower`
https://github.com/nampnq/bower-videogular-youtube
Last synced: about 2 months ago
JSON representation
Videogular `youtube` plugin repository for distribution on `bower`
- Host: GitHub
- URL: https://github.com/nampnq/bower-videogular-youtube
- Owner: NamPNQ
- License: mit
- Created: 2013-12-28T01:57:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T12:35:41.000Z (over 4 years ago)
- Last Synced: 2024-10-20T16:55:12.317Z (2 months ago)
- Language: JavaScript
- Size: 1.28 MB
- Stars: 41
- Watchers: 7
- Forks: 32
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Bower-videogular-youtube
========================Videogular `youtube` plugin repository for distribution on `bower`
## Install
Install [Videogular](http://www.videogular.com/) `youtube` plugin with Bower:
`bower install videogular-youtube`
Inside the folder `bower_components\videogular-youtube` you should find also `html` partials that you should locate in `.\views\videogular\plugins\youtube\`.
## How to use
Add directives, and video source to your HTML:```html
{{ currentTime | date:'mm:ss' }}
{{ timeLeft | date:'mm:ss' }}
```
Additionally, you will need to add youtube plugins and videogular to your application:
```js
"use strict";
angular.module("videogularApp",
[
"controllers","com.2fdevs.videogular",
"com.2fdevs.videogular.plugins.controls",
"com.2fdevs.videogular.plugins.overlayplay",
"com.2fdevs.videogular.plugins.buffering",
"info.vietnamcode.nampnq.videogular.plugins.youtube"
]
);
```And that's all :)
### Demo
Here you can see a demo on Codepen:
http://codepen.io/2fdevs/pen/qOBRpO
### A note on mobile fullscreen support
The YouTube iframe API does not provide a programmatic way to make a video fullscreen. If the Videogular full screen button is enabled for YouTube videos, it will not work.
While good results may be obtained by making the `iframe` or `videogular` element fullscreen on Android, this currently is not supported on iOS which can only make `video` elements fullscreen. The only way to support fullscreen YouTube videos on iPad is to show the YouTube controls and allow the user to tap the fullscreen button. If YouTube controls are enabled, ensure that any videogular elements that would cover the iframe, such as `vg-controls`, `vg-overlay-play`, and `vg-poster` are disabled so that the user can interact with the controls inside the YouTube iframe.
### Donate
If project help you, you can donate me
* Paypal: [email protected]
* Bitcoin: 1LKyH1jTP8Agd8FakpvydCP87HQzL85cFx### Install Videogular
Install [Videogular](http://www.videogular.com/) with Bower:
`bower install videogular`
### Install themes
Install [Videogular](http://www.videogular.com/) themes with Bower:
`bower install videogular-themes-default`
### Install plugins
Install [Videogular](http://www.videogular.com/) plugins with Bower:
`bower install videogular-buffering`
`bower install videogular-controls`
`bower install videogular-poster`
## Documentation
It's available on [Videogular's project Wiki](https://github.com/2fdevs/videogular/wiki).
## License
The MIT License (MIT)
Copyright (c) 2014 NamPNQ
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.