Chromecast

  抱歉,这篇文章有英文版

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.0
2024 © PlayerJS

登录

登录

免费注册

注册
注册即表示您同意服务条款
登录(如果您有帐户)

恢复密码

恢复
忘记电子邮件?联系我们