# ngCast **Repository Path**: mirrors_un33k/ngCast ## Basic Information - **Project Name**: ngCast - **Description**: Broadcast media on your TV from your Angular app - **Primary Language**: Unknown - **License**: Unlicense - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-13 - **Last Updated**: 2026-11-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ngCast Broadcast media on your TV from your Angular app ## Installation ```node npm install ng-cast ``` Then, import ngCast in your app.module.ts ```javascript import { NgCastModule } from 'ng-cast'; ``` ```javascript @NgModule({ ... imports: [ ... NgCastModule ], ``` In one of your template, insert a button to select your Chromecast and connect on it ```html ``` In one of your app components, ```javascript import { NgCastService } from 'ng-cast'; ... constructor( ... private ngCastService: NgCastService ) { } ``` You are now able to broadcast any image or video to your TV ```javascript this.ngCastService.launchMedia(mediaUrl); // ex. this.ngCastService.launchMedia('http://25.media.tumblr.com/tumblr_m4c8cxLOQv1rwa0vgo1_250.gif') ``` ## Customization You can modify cast button appearance editing ng-cast/ng-cast.component.scss *If you use CSS files in your project, you just need to change ng-cast.component.scss file extension* ## Online demo TODO