Thank you for your speedy reply! Glad to hear I wasn't missing something silly.
Announcement
Collapse
No announcement yet.
CastWebPage via script not working
Collapse
X
-
I just checked the code, there is a typo for this scripting function, it is called CastWepPage instead of CastWebPage.
I will fix it in the next version of the plugin, sorry for the trouble.
Leave a comment:
-
CastWebPage via script not working
I'm trying to cast a URL via a script. It isn't working. It does work if I use a regular Chromecast Cast event.
Here is my script:
Sub Main(byVal params As String)
Dim paramsArr() As String
paramsArr = params.Split("|")
Dim castId As String = paramsArr(0)
Dim url As String = paramsArr(1)
If url.IndexOf("$$D") > -1 Then
url = hs.ReplaceVariables(url)
End If
hs.WriteLog("CastWebPage", "castID: " & castId & ", url: " & url)
hs.PluginFunction("Chromecast","","CastWebPage", new Object() {castId, url})
End Sub​
Anyone have any ideas?Tags: None
Leave a comment: