dryark / ios_remote_provider

Other
49 stars 33 forks source link

Software update alert block start of broadcast #66

Closed chewbacca70 closed 2 years ago

chewbacca70 commented 2 years ago

Hi, it seems that e.g. Software Update Alert showing on the screen will prevent starting the provider. here the log:

INFO Created CFA session type=cfa_session_created Checking for alerts Got request to start video stream for 000081010013443C3881401E Connecting to CF imgStream Connected CF imgStream Got request to start video stream for 000081010013443C3881401E Connecting to CF imgStream Connected CF imgStream alertInfo res: { present:true buttons:[ "Install Now" "Later" ] alert:"Software Update iOS 15.0.2 is ready to install." ] } vidApp start method: app Starting vidApp through the app INFO getEl:Broadcast Selector INFO getEl-result:hy20k INFO elClick:hy20k INFO getEl:Start Broadcast INFO getEl-result: INFO getEl:Start Broadcast INFO getEl-result: INFO getEl:Start Broadcast INFO getEl-result: Error! Could not fetch Start Broadcast button INFO elClick: Got request to start video stream for 000081010013443C3881401E Connecting to CF imgStream Connected CF imgStream any workaround already known to start the provider even if some alerts are shown?

nanoscopic commented 2 years ago

This is what the "vidStartAlerts" section within default.json is for. Just add more alerts to match the response you want to use for that alert.

For this example, the following block added to vidStartAlerts would work:

{
    match: "ready to install"
    response: "Later"
}

This will cause provider to dismiss the alert when attempting to start up video streaming.

The "alerts" setting is similar, but will take effect any time an alert appears, not just when attempting to start up video streaming.

chewbacca70 commented 2 years ago

Thank you very much for the hint. I'll give it a try... Is it possible to add some default blocks by default to default.json?