Cast API overhaul (#173)

Re-write the shim<->bridge messaging interface and session creation/update handling for better accuracy.
This commit is contained in:
Matt Hensman
2021-05-03 14:37:54 +01:00
committed by GitHub
parent ccac662e74
commit 101c25e26d
25 changed files with 1079 additions and 1346 deletions

View File

@@ -64,10 +64,10 @@ function getSession(opts: InitOptions): Promise<cast.Session> {
function receiverListener(availability: string) {
if (availability === cast.ReceiverAvailability.AVAILABLE) {
if (opts.receiver) {
cast._requestSession(
/*cast._requestSession(
opts.receiver
, onRequestSessionSuccess
, onRequestSessionError);
, onRequestSessionError);*/
} else {
cast.requestSession(
onRequestSessionSuccess