Chromecast

  Lo sentimos, este artículo está disponible en inglés

Chromecast is a digital media player from Google that allows you to stream video from a small to a big screen (for example from smartphone to TV or projector) via WI-FI. Currently PlayerJS supports this technology for mp4, HLS and DASH.

Works only on domains with secure HTTPS protocol in Chrome browser.

Video version of the guide on YouTube

How to setup

You must add a special button to the player interface. Create a custom element SVG type and place it in the right place. The button will be displayed only if the device is found on the WI-FI network and the content of the player is ready for broadcast. Then you need to specify the chromecast command as the action for this element.

The icon for this element place directly Chromecast, so its design in the builder doesn't matter. Only one player on the page can have it.

You need to enable Plugins / Chromecast

The player should have a familiar button (if the player has what to broadcast).

You can pass a different link to the Chromcast using the casturl parameter (the video must be delivered using the same extension as the main link, mp4 or HLS for example). As well as a separate name with the castname parameter

let player = new Playerjs({id:"player", file:"https://site.com/video.mp4", casturl:"https://site.com/video4chromecast.mp4", castname:"Title"});

You can also attach a separate link for the Chromecast to the main one like this:

file:"https://site.com/video.mp4:cast:https://site.com/video4chromecast.mp4"

This plugin is available in PRO, but you can use the free template.


20.0.6
2024 © PlayerJS

Inicio de sesión

Conectarse

Regístrate gratis

Inscríbete
Al registrarte, aceptas Condiciones del servicio
Iniciar sesión si tienes una cuenta.

Restaurar contraseña

Restaurar
¿Ha olvidado su correo electrónico? Contacte con nosotros