@daily-co/daily-js
Advanced tools
Comparing version 0.19.0 to 0.20.0
@@ -28,2 +28,3 @@ // Type definitions for daily-js | ||
| 'pt' | ||
| 'ru' | ||
| 'sv' | ||
@@ -124,2 +125,3 @@ | 'tr'; | ||
supportsSfu: boolean; | ||
supportsVideoProcessing: boolean; | ||
} | ||
@@ -387,2 +389,3 @@ | ||
enable_prejoin_ui?: boolean; | ||
enable_video_processing_ui?: boolean; | ||
start_video_off?: boolean; | ||
@@ -415,2 +418,3 @@ start_audio_off?: boolean; | ||
enable_prejoin_ui?: boolean; | ||
enable_video_processing_ui?: boolean; | ||
}; | ||
@@ -476,4 +480,4 @@ tokenConfig: { | ||
export interface DailyInputVideoProcessorSettings { | ||
type: 'none' | 'background-blur' | 'background-image' | 'custom'; | ||
config: {}; | ||
type: 'none' | 'background-blur'; | ||
config?: {}; | ||
} | ||
@@ -756,5 +760,3 @@ export interface DailyEventObjectNoPayload { | ||
export type DailyStreamingPortraitLayoutVariant = | ||
| 'vertical' | ||
| 'inset'; | ||
export type DailyStreamingPortraitLayoutVariant = 'vertical' | 'inset'; | ||
@@ -761,0 +763,0 @@ export interface DailyStreamingPortraitLayoutConfig { |
{ | ||
"name": "@daily-co/daily-js", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=10.0.0" |
@@ -50,2 +50,10 @@ // This method should be used instead of window.navigator.userAgent, which | ||
const supportedBrowsersForVideoProcessors = ['Chrome', 'Firefox']; | ||
export function isVideoProcessingSupported() { | ||
if (isReactNative()) return false; | ||
if (browserMobile_p()) return false; | ||
return supportedBrowsersForVideoProcessors.includes(getBrowserName()); | ||
} | ||
export function isSfuSupported() { | ||
@@ -89,2 +97,20 @@ if (isReactNative()) return true; | ||
export function isAndroidApp() { | ||
return getUserAgent().match(/DailyAnd\//); | ||
} | ||
export function isAndroidWeb() { | ||
return getUserAgent().match(/Linux; Android/); | ||
} | ||
export function browserMobile_p() { | ||
const userAgent = getUserAgent(); | ||
if (userAgent.match(/Mobi/) || userAgent.match(/Android/)) { | ||
return true; | ||
} | ||
if (isAndroidApp()) { | ||
return true; | ||
} | ||
} | ||
export function browserNeedsUpgrade() { | ||
@@ -91,0 +117,0 @@ let browser = getBrowserName(), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
475659
5998