mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 10:09:59 +00:00
Add availableMediaTypes bitmask to receiver selector open method
This commit is contained in:
@@ -26,7 +26,11 @@ export default class ApiConfig {
|
||||
= DefaultActionPolicy.CREATE_SESSION
|
||||
|
||||
// TODO: Remove awful hack for mirror casting
|
||||
, public _selectedMedia: ReceiverSelectorMediaType
|
||||
= ReceiverSelectorMediaType.App) {
|
||||
, public _defaultMediaType: ReceiverSelectorMediaType
|
||||
= ReceiverSelectorMediaType.App
|
||||
, public _availableMediaTypes: ReceiverSelectorMediaType
|
||||
= ReceiverSelectorMediaType.App
|
||||
| ReceiverSelectorMediaType.Tab
|
||||
| ReceiverSelectorMediaType.Screen) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,7 +160,8 @@ export function requestSession (
|
||||
sendMessageResponse({
|
||||
subject: "main:/selectReceiverBegin"
|
||||
, data: {
|
||||
defaultMediaType: apiConfig._selectedMedia
|
||||
defaultMediaType: apiConfig._defaultMediaType
|
||||
, availableMediaTypes: apiConfig._availableMediaTypes
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
import { onMessageResponse, sendMessage } from "./eventMessageChannel";
|
||||
import { loadScript } from "../lib/utils";
|
||||
import { onMessageResponse, sendMessage } from "./eventMessageChannel";
|
||||
|
||||
|
||||
const { isFramework }
|
||||
|
||||
Reference in New Issue
Block a user