@stream-io/video-react-sdk 1.21.2 → 1.21.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -848,7 +848,7 @@ const useBackgroundFilters = () => {
848
848
  * in your project before using this component.
849
849
  */
850
850
  const BackgroundFiltersProvider = (props) => {
851
- const { children, backgroundImages = [], backgroundFilter: bgFilterFromProps = undefined, backgroundImage: bgImageFromProps = undefined, backgroundBlurLevel: bgBlurLevelFromProps = undefined, tfFilePath, modelFilePath, basePath, onError, } = props;
851
+ const { children, backgroundImages = [], backgroundFilter: bgFilterFromProps = undefined, backgroundImage: bgImageFromProps = undefined, backgroundBlurLevel: bgBlurLevelFromProps = undefined, tfFilePath, modelFilePath, basePath, onError, forceSafariSupport, forceMobileSupport, } = props;
852
852
  const [backgroundFilter, setBackgroundFilter] = useState(bgFilterFromProps);
853
853
  const [backgroundImage, setBackgroundImage] = useState(bgImageFromProps);
854
854
  const [backgroundBlurLevel, setBackgroundBlurLevel] = useState(bgBlurLevelFromProps);
@@ -867,8 +867,11 @@ const BackgroundFiltersProvider = (props) => {
867
867
  }, []);
868
868
  const [isSupported, setIsSupported] = useState(false);
869
869
  useEffect(() => {
870
- isPlatformSupported().then(setIsSupported);
871
- }, []);
870
+ isPlatformSupported({
871
+ forceSafariSupport,
872
+ forceMobileSupport,
873
+ }).then(setIsSupported);
874
+ }, [forceMobileSupport, forceSafariSupport]);
872
875
  const [tfLite, setTfLite] = useState();
873
876
  useEffect(() => {
874
877
  // don't try to load TFLite if the platform is not supported
@@ -2970,7 +2973,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
2970
2973
  return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
2971
2974
  };
2972
2975
 
2973
- const [major, minor, patch] = ("1.21.2").split('.');
2976
+ const [major, minor, patch] = ("1.21.3").split('.');
2974
2977
  setSdkInfo({
2975
2978
  type: SfuModels.SdkType.REACT,
2976
2979
  major,