Closed
Description
Hi @leolabs @NeoLegends @mraerino
I am trying to airplay secondary screen (html page) by calling method
cordova.plugins.externalScreen.createScreenListener().then(res => {
Externalscreen = res;
ExternalScreen.loadUrl("path/to/html/page")
});
This path is relative to the app folder, is displaying blank.
Could you please help me understand it. Below is the code
let Externalscreen = await cordova.plugins.externalScreen.createScreenListener(); //works
Externalscreen.on("disconnect", r => console.log("disconnected", r), e => console.error("unable to disconnect", e)); //works
Externalscreen.on("connect", r => console.log("connected", r), e => console.error("unable to connect", e)) ////works
var url = await Externalscreen.loadUrl(".path/to/html-page"); //returns blank screen - not working
Externalscreen.emit("title", {name: "ABC"}) // couldn't try
If I get a demo doc it will be really helpful.
Metadata
Metadata
Assignees
Labels
No labels