Restore mirroring sender functionality to level before SDK refactoring

This commit is contained in:
hensm
2022-09-01 12:23:03 +01:00
parent f50c8937e4
commit 314a1d2031
7 changed files with 303 additions and 197 deletions

View File

@@ -57,6 +57,8 @@ For an instance created for an extension script:
- If **content/extension page**: The `contentBridge.ts` script is imported as a module, with the usual side-effects of creating a messaging connection to the Cast Manager and hooking up page messaging (as described for page script instances).
3. Listeners are added for the `cast:instanceCreated` message, so that the `ensureInit` function can resolve its promise and provide a Cast Manager port after initialization.
Extension sender apps are considered to be trusted by the cast manager and are granted additional privileges. They can bypass the receiver selection step when requesting a session by providing a receiver device when initialising the SDK via `ensureInit`.
#### All contexts
The process now continues identically for all contexts: