
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ngx-embedded-media
Advanced tools
Embed media from from top tier media providers directly in your Angular 6+ application
Embed media from from top tier media providers directly in your Angular 6+ application. Currently supports YouTube, Vimeo, *Twitch (videos and clips) and Dailymotion.
To install ngx-embedded-media library, run:
$ npm install ngx-embedded-media --save
import { EmbeddedMediaModule } from 'ngx-embedded-media';
@NgModule({
imports: [EmbeddedMediaModule.forRoot()]
})
export class AppModule {}
Embedding a video:
<embedded-media video='https://www.youtube.com/embed/3Wf29RiKp70'></embedded-media>
<!-- OR -->
<embedded-media video='3Wf29RiKp70' provider='youtube'></embedded-media>
Embedding video thumbnail:
<embedded-media image='https://vimeo.com/186450193'></embedded-media>
<!-- OR -->
<embedded-media image='186450193' provider='vimeo'></embedded-media>
Embedding playlist:
<embedded-media playlist='http://www.youtube.com/embed/videoseries?list=PLpRjkOHBe_TgmznCle__jWDhoV4aFgCjw'></embedded-media>
<!-- OR -->
<embedded-media platlist='PLpRjkOHBe_TgmznCle__jWDhoV4aFgCjw' provider='youtube'></embedded-media>
Object to be serialized as a query string and appended to the embedded content url. I.e:
<embedded-media video='https://www.youtube.com/embed/3Wf29RiKp70' query='{ "portrait": 0, "muted": true }'></embedded-media>
Object containing additional attributes to be added to the embedded iframe / image. I.e:
<embedded-media video='https://www.youtube.com/embed/3Wf29RiKp70' attributes='{ "width": 600, "height": 300 }'></embedded-media>
The service provider name.
<embedded-media video='3Wf29RiKp70' provider='youtube'></embedded-media>
Unique options that can be passed to the service provider to control the video / thumbnail appearance.
<embedded-media image='https://www.youtube.com/embed/3Wf29RiKp70' resolution='mqdefault'></embedded-media>
<embedded-media image='https://vimeo.com/186450193' resolution='thumbnail_medium'></embedded-media>
<embedded-media image='https://www.dailymotion.com/video/x36btaw' resolution='thumbnail_1080_url'></embedded-media>
FAQs
Embed media from from top tier media providers directly in your Angular 6+ application
The npm package ngx-embedded-media receives a total of 55 weekly downloads. As such, ngx-embedded-media popularity was classified as not popular.
We found that ngx-embedded-media 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.