@stream-io/video-client 0.5.6 → 0.5.8

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.
@@ -2499,6 +2499,12 @@ export interface GetOrCreateCallResponse {
2499
2499
  * @interface GoLiveRequest
2500
2500
  */
2501
2501
  export interface GoLiveRequest {
2502
+ /**
2503
+ *
2504
+ * @type {string}
2505
+ * @memberof GoLiveRequest
2506
+ */
2507
+ recording_storage_name?: string;
2502
2508
  /**
2503
2509
  *
2504
2510
  * @type {boolean}
@@ -3814,6 +3820,19 @@ export interface StartHLSBroadcastingResponse {
3814
3820
  */
3815
3821
  playlist_url: string;
3816
3822
  }
3823
+ /**
3824
+ *
3825
+ * @export
3826
+ * @interface StartRecordingRequest
3827
+ */
3828
+ export interface StartRecordingRequest {
3829
+ /**
3830
+ *
3831
+ * @type {string}
3832
+ * @memberof StartRecordingRequest
3833
+ */
3834
+ recording_external_storage?: string;
3835
+ }
3817
3836
  /**
3818
3837
  *
3819
3838
  * @export
@@ -4684,3 +4703,283 @@ export interface WSClientEvent {
4684
4703
  */
4685
4704
  connection_id?: string;
4686
4705
  }
4706
+
4707
+ /**
4708
+ *
4709
+ * @export
4710
+ * @interface AzureRequest
4711
+ */
4712
+ export interface AzureRequest {
4713
+ /**
4714
+ *
4715
+ * @type {string}
4716
+ * @memberof AzureRequest
4717
+ */
4718
+ abs_account_name: string;
4719
+ /**
4720
+ *
4721
+ * @type {string}
4722
+ * @memberof AzureRequest
4723
+ */
4724
+ abs_client_id: string;
4725
+ /**
4726
+ *
4727
+ * @type {string}
4728
+ * @memberof AzureRequest
4729
+ */
4730
+ abs_client_secret: string;
4731
+ /**
4732
+ *
4733
+ * @type {string}
4734
+ * @memberof AzureRequest
4735
+ */
4736
+ abs_tenant_id: string;
4737
+ }
4738
+
4739
+ /**
4740
+ *
4741
+ * @export
4742
+ * @interface CheckExternalStorageResponse
4743
+ */
4744
+ export interface CheckExternalStorageResponse {
4745
+ /**
4746
+ * Duration of the request in human-readable format
4747
+ * @type {string}
4748
+ * @memberof CheckExternalStorageResponse
4749
+ */
4750
+ duration: string;
4751
+ }
4752
+
4753
+ /**
4754
+ *
4755
+ * @export
4756
+ * @interface CreateExternalStorageRequest
4757
+ */
4758
+ export interface CreateExternalStorageRequest {
4759
+ /**
4760
+ *
4761
+ * @type {S3Request}
4762
+ * @memberof CreateExternalStorageRequest
4763
+ */
4764
+ aws_s3?: S3Request;
4765
+ /**
4766
+ *
4767
+ * @type {AzureRequest}
4768
+ * @memberof CreateExternalStorageRequest
4769
+ */
4770
+ azure_blob?: AzureRequest;
4771
+ /**
4772
+ *
4773
+ * @type {string}
4774
+ * @memberof CreateExternalStorageRequest
4775
+ */
4776
+ bucket: string;
4777
+ /**
4778
+ *
4779
+ * @type {string}
4780
+ * @memberof CreateExternalStorageRequest
4781
+ */
4782
+ gcs_credentials?: string;
4783
+ /**
4784
+ *
4785
+ * @type {string}
4786
+ * @memberof CreateExternalStorageRequest
4787
+ */
4788
+ name: string;
4789
+ /**
4790
+ *
4791
+ * @type {string}
4792
+ * @memberof CreateExternalStorageRequest
4793
+ */
4794
+ path?: string;
4795
+ /**
4796
+ *
4797
+ * @type {string}
4798
+ * @memberof CreateExternalStorageRequest
4799
+ */
4800
+ storage_type: string;
4801
+ }
4802
+
4803
+ /**
4804
+ *
4805
+ * @export
4806
+ * @interface CreateExternalStorageResponse
4807
+ */
4808
+ export interface CreateExternalStorageResponse {
4809
+ /**
4810
+ * Duration of the request in human-readable format
4811
+ * @type {string}
4812
+ * @memberof CreateExternalStorageResponse
4813
+ */
4814
+ duration: string;
4815
+ }
4816
+
4817
+ /**
4818
+ *
4819
+ * @export
4820
+ * @interface DeleteExternalStorageResponse
4821
+ */
4822
+ export interface DeleteExternalStorageResponse {
4823
+ /**
4824
+ * Duration of the request in human-readable format
4825
+ * @type {string}
4826
+ * @memberof DeleteExternalStorageResponse
4827
+ */
4828
+ duration: string;
4829
+ }
4830
+
4831
+ /**
4832
+ *
4833
+ * @export
4834
+ * @interface ExternalStorageResponse
4835
+ */
4836
+ export interface ExternalStorageResponse {
4837
+ /**
4838
+ *
4839
+ * @type {string}
4840
+ * @memberof ExternalStorageResponse
4841
+ */
4842
+ bucket: string;
4843
+ /**
4844
+ *
4845
+ * @type {string}
4846
+ * @memberof ExternalStorageResponse
4847
+ */
4848
+ name: string;
4849
+ /**
4850
+ *
4851
+ * @type {string}
4852
+ * @memberof ExternalStorageResponse
4853
+ */
4854
+ path: string;
4855
+ /**
4856
+ *
4857
+ * @type {string}
4858
+ * @memberof ExternalStorageResponse
4859
+ */
4860
+ type: string;
4861
+ }
4862
+ /**
4863
+ *
4864
+ * @export
4865
+ * @interface ListExternalStorageResponse
4866
+ */
4867
+ export interface ListExternalStorageResponse {
4868
+ /**
4869
+ * Duration of the request in human-readable format
4870
+ * @type {string}
4871
+ * @memberof ListExternalStorageResponse
4872
+ */
4873
+ duration: string;
4874
+ /**
4875
+ *
4876
+ * @type {{ [key: string]: ExternalStorageResponse; }}
4877
+ * @memberof ListExternalStorageResponse
4878
+ */
4879
+ external_storages: { [key: string]: ExternalStorageResponse };
4880
+ }
4881
+ /**
4882
+ *
4883
+ * @export
4884
+ * @interface S3Request
4885
+ */
4886
+ export interface S3Request {
4887
+ /**
4888
+ *
4889
+ * @type {string}
4890
+ * @memberof S3Request
4891
+ */
4892
+ s3_api_key?: string;
4893
+ /**
4894
+ *
4895
+ * @type {string}
4896
+ * @memberof S3Request
4897
+ */
4898
+ s3_region: string;
4899
+ /**
4900
+ *
4901
+ * @type {string}
4902
+ * @memberof S3Request
4903
+ */
4904
+ s3_secret?: string;
4905
+ }
4906
+ /**
4907
+ *
4908
+ * @export
4909
+ * @interface UpdateExternalStorageResponse
4910
+ */
4911
+ export interface UpdateExternalStorageResponse {
4912
+ /**
4913
+ *
4914
+ * @type {string}
4915
+ * @memberof UpdateExternalStorageResponse
4916
+ */
4917
+ bucket: string;
4918
+ /**
4919
+ * Duration of the request in human-readable format
4920
+ * @type {string}
4921
+ * @memberof UpdateExternalStorageResponse
4922
+ */
4923
+ duration: string;
4924
+ /**
4925
+ *
4926
+ * @type {string}
4927
+ * @memberof UpdateExternalStorageResponse
4928
+ */
4929
+ name: string;
4930
+ /**
4931
+ *
4932
+ * @type {string}
4933
+ * @memberof UpdateExternalStorageResponse
4934
+ */
4935
+ path: string;
4936
+ /**
4937
+ *
4938
+ * @type {string}
4939
+ * @memberof UpdateExternalStorageResponse
4940
+ */
4941
+ type: string;
4942
+ }
4943
+ /**
4944
+ *
4945
+ * @export
4946
+ * @interface UpdateExternalStorageRequest
4947
+ */
4948
+ export interface UpdateExternalStorageRequest {
4949
+ /**
4950
+ *
4951
+ * @type {S3Request}
4952
+ * @memberof UpdateExternalStorageRequest
4953
+ */
4954
+ aws_s3?: S3Request;
4955
+ /**
4956
+ *
4957
+ * @type {AzureRequest}
4958
+ * @memberof UpdateExternalStorageRequest
4959
+ */
4960
+ azure_blob?: AzureRequest;
4961
+ /**
4962
+ *
4963
+ * @type {string}
4964
+ * @memberof UpdateExternalStorageRequest
4965
+ */
4966
+ bucket: string;
4967
+ /**
4968
+ *
4969
+ * @type {string}
4970
+ * @memberof UpdateExternalStorageRequest
4971
+ */
4972
+ gcs_credentials?: string;
4973
+ /**
4974
+ *
4975
+ * @type {string}
4976
+ * @memberof UpdateExternalStorageRequest
4977
+ */
4978
+ path?: string;
4979
+ /**
4980
+ *
4981
+ * @type {string}
4982
+ * @memberof UpdateExternalStorageRequest
4983
+ */
4984
+ storage_type: string;
4985
+ }
@@ -246,10 +246,16 @@ export class Publisher {
246
246
 
247
247
  let preferredCodec = opts.preferredCodec;
248
248
  if (!preferredCodec && trackType === TrackType.VIDEO) {
249
- const isRNAndroid =
250
- isReactNative() && getOSInfo()?.name.toLowerCase() === 'android';
251
- if (isRNAndroid) {
252
- preferredCodec = 'VP8';
249
+ if (isReactNative()) {
250
+ const osName = getOSInfo()?.name.toLowerCase();
251
+ if (osName === 'ios' || osName === 'ipados') {
252
+ // in ipads it was noticed that if vp8 codec is used
253
+ // then the bytes sent is 0 in the outbound-rtp
254
+ // so we are forcing h264 codec for ipads and also in ios devices
255
+ preferredCodec = 'H264';
256
+ } else if (osName === 'android') {
257
+ preferredCodec = 'VP8';
258
+ }
253
259
  }
254
260
  }
255
261
  const codecPreferences = this.getCodecPreferences(