mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 17:49:58 +00:00
Pass Receiver objects instead of ReceiverDevice objects to cast API
This commit is contained in:
@@ -73,7 +73,7 @@ export default class Session extends CastClient {
|
||||
this.onSessionCreated?.(this.sessionId);
|
||||
|
||||
messaging.sendMessage({
|
||||
subject: "cast:sessionCreated",
|
||||
subject: "main:castSessionCreated",
|
||||
data: {
|
||||
sessionId: this.sessionId,
|
||||
statusText: application.statusText,
|
||||
@@ -103,7 +103,7 @@ export default class Session extends CastClient {
|
||||
}
|
||||
|
||||
messaging.sendMessage({
|
||||
subject: "cast:sessionUpdated",
|
||||
subject: "main:castSessionUpdated",
|
||||
data: {
|
||||
sessionId: this.sessionId,
|
||||
statusText: application.statusText,
|
||||
|
||||
@@ -110,8 +110,8 @@ type MessageDefinitions = {
|
||||
* updates. Updated details is a mutable subset of session details
|
||||
* otherwise fixed on creation.
|
||||
*/
|
||||
"cast:sessionCreated": CastSessionCreatedDetails;
|
||||
"cast:sessionUpdated": CastSessionUpdatedDetails;
|
||||
"main:castSessionCreated": CastSessionCreatedDetails;
|
||||
"main:castSessionUpdated": CastSessionUpdatedDetails;
|
||||
/**
|
||||
* Sent to cast API instances whenever a session is stopped.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user