Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

youtube-video-element

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-video-element - npm Package Compare versions

Comparing version 0.0.6 to 0.1.0

youtube-video-element.js

28

package.json
{
"name": "youtube-video-element",
"version": "0.0.6",
"version": "0.1.0",
"description": "Custom element (web component) for the YouTube player.",
"type": "module",
"main": "dist/youtube-video-element.js",
"main": "youtube-video-element.js",
"files": [
"./dist/*",
"youtube-video-element.js",
"README.md"
],
"scripts": {
"build": "rm -rf dist && rollup --config",
"test": "echo \"Error: no test specified\" && exit 1",
"publish-patch": "yarn run build && np patch --no-tests"
"dev": "npx serve .",
"test": "web-test-runner test.js --node-resolve"
},
"repository": {
"type": "git",
"url": "git+https://github.com/muxinc/youtube-video-element.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"repository": "muxinc/youtube-video-element",
"keywords": [

@@ -32,11 +25,6 @@ "youtube",

"license": "MIT",
"dependencies": {},
"devDependencies": {
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"np": "^6.2.0",
"rollup": "^2.2.0",
"rollup-plugin-babel-minify": "^10.0.0",
"rollup-plugin-terser": "^5.3.0"
"@open-wc/testing": "^3.1.7",
"@web/test-runner": "^0.15.0"
}
}
# `<youtube-video>`
A custom element (web component) for the YouTube player.

@@ -9,12 +10,4 @@

```html
<html>
<head>
<script type="module" src="https://unpkg.com/youtube-video-element@0"></script>
</head>
<body>
<youtube-video controls src="https://www.youtube.com/watch?v=rubNgGj3pYo"></youtube-video>
</body>
</html>
<script type="module" src="https://cdn.jsdelivr.net/npm/youtube-video-element@0"></script>
<youtube-video controls src="https://www.youtube.com/watch?v=rubNgGj3pYo"></youtube-video>
```

@@ -34,3 +27,3 @@

<head>
<script type="module" src="https://unpkg.com/youtube-video-element@0"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/youtube-video-element@0"></script>
</head>

@@ -54,1 +47,14 @@ ```

This will register the custom elements with the browser so they can be used as HTML.
## Related
- [Media Chrome](https://github.com/muxinc/media-chrome) Your media player's dancing suit. 🕺
- [`<mux-video>`](https://github.com/muxinc/elements/tree/main/packages/mux-video) A Mux-flavored HTML5 video element w/ hls.js and Mux data builtin.
- [`<mux-player>`](https://github.com/muxinc/elements/tree/main/packages/mux-player) The official Mux-flavored video player web component.
- [`<vimeo-video>`](https://github.com/luwes/vimeo-video-element) A web component for the Vimeo player.
- [`<videojs-video>`](https://github.com/luwes/videojs-video-element) A web component for Video.js.
- [`<wistia-video>`](https://github.com/luwes/wistia-video-element) A web component for the Wistia player.
- [`<jwplayer-video>`](https://github.com/luwes/jwplayer-video-element) A web component for the JW player.
- [`<hls-video>`](https://github.com/muxinc/hls-video-element) A web component for playing HTTP Live Streaming (HLS) videos.
- [`castable-video`](https://github.com/muxinc/castable-video) Cast your video element to the big screen with ease!
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc