aotrautils 0.0.1061 → 0.0.1063

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1_29072022-2359 (13/10/2024-21:38:57)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (13/10/2024-21:49:20)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5259,7 +5259,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5259
5259
 
5260
5260
 
5261
5261
 
5262
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (13/10/2024-21:38:57)»*/
5262
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (13/10/2024-21:49:20)»*/
5263
5263
  /*-----------------------------------------------------------------------------*/
5264
5264
  /* ## Utility global methods in a browser (htmljs) client environment.
5265
5265
  *
@@ -12855,9 +12855,11 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
12855
12855
  return "break";
12856
12856
  }
12857
12857
  });
12858
- if (containsVideoOrAudio) {
12859
- captureWidth = nonull(oritaClient.getCaptureConfig().width, ORITA_CONSTANTS.DEFAULT_CAPTURE_WIDTH);
12860
- captureHeight = nonull(oritaClient.getCaptureConfig().height, ORITA_CONSTANTS.DEFAULT_CAPTURE_HEIGHT);
12858
+
12859
+
12860
+ if (containsVideoOrAudio && oritaClient.captureConfig) {
12861
+ captureWidth = nonull(oritaClient.captureConfig.width, ORITA_CONSTANTS.DEFAULT_CAPTURE_WIDTH);
12862
+ captureHeight = nonull(oritaClient.captureConfig.height, ORITA_CONSTANTS.DEFAULT_CAPTURE_HEIGHT);
12861
12863
  }
12862
12864
 
12863
12865
  // DBG
@@ -12940,8 +12942,8 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
12940
12942
  if (medias === "audio") {
12941
12943
  // (We want millis, not seconds)
12942
12944
  refreshingRateMillis = Math.floor((audioBufferSize / selfMediaHandler.getAudioSampleRate()) * 1000);
12943
- } else if (medias === "video") {
12944
- refreshingRateMillis = nonull(oritaClient.getCaptureConfig().refreshMillis, ORITA_CONSTANTS.DEFAULT_CAPTURE_REFRESH_MILLIS);
12945
+ } else if (medias === "video" && oritaClient.captureConfig) {
12946
+ refreshingRateMillis = nonull(oritaClient.captureConfig.refreshMillis, ORITA_CONSTANTS.DEFAULT_CAPTURE_REFRESH_MILLIS);
12945
12947
  }
12946
12948
 
12947
12949
  // *************************
@@ -13626,7 +13628,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13626
13628
 
13627
13629
 
13628
13630
 
13629
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/10/2024-21:38:57)»*/
13631
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/10/2024-21:49:20)»*/
13630
13632
  /*-----------------------------------------------------------------------------*/
13631
13633
 
13632
13634
 
@@ -14865,7 +14867,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14865
14867
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14866
14868
 
14867
14869
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14868
- /*utils AI library associated with aotra version : «1_29072022-2359 (13/10/2024-21:38:57)»*/
14870
+ /*utils AI library associated with aotra version : «1_29072022-2359 (13/10/2024-21:49:20)»*/
14869
14871
  /*-----------------------------------------------------------------------------*/
14870
14872
 
14871
14873
 
@@ -15009,7 +15011,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
15009
15011
 
15010
15012
 
15011
15013
 
15012
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (13/10/2024-21:38:57)»*/
15014
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (13/10/2024-21:49:20)»*/
15013
15015
  /*-----------------------------------------------------------------------------*/
15014
15016
 
15015
15017
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1061",
3
+ "version": "0.0.1063",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",