aotrautils 0.0.1062 → 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:44:14)»*/
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:44:14)»*/
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
  *
@@ -12857,14 +12857,9 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
12857
12857
  });
12858
12858
 
12859
12859
 
12860
- // DBG
12861
- lognow("===============================");
12862
- lognow("oritaClient:",oritaClient);
12863
-
12864
-
12865
- if (containsVideoOrAudio) {
12866
- captureWidth = nonull(oritaClient.getCaptureConfig().width, ORITA_CONSTANTS.DEFAULT_CAPTURE_WIDTH);
12867
- captureHeight = nonull(oritaClient.getCaptureConfig().height, ORITA_CONSTANTS.DEFAULT_CAPTURE_HEIGHT);
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);
12868
12863
  }
12869
12864
 
12870
12865
  // DBG
@@ -12947,8 +12942,8 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
12947
12942
  if (medias === "audio") {
12948
12943
  // (We want millis, not seconds)
12949
12944
  refreshingRateMillis = Math.floor((audioBufferSize / selfMediaHandler.getAudioSampleRate()) * 1000);
12950
- } else if (medias === "video") {
12951
- 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);
12952
12947
  }
12953
12948
 
12954
12949
  // *************************
@@ -13633,7 +13628,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13633
13628
 
13634
13629
 
13635
13630
 
13636
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/10/2024-21:44:14)»*/
13631
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/10/2024-21:49:20)»*/
13637
13632
  /*-----------------------------------------------------------------------------*/
13638
13633
 
13639
13634
 
@@ -14872,7 +14867,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14872
14867
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14873
14868
 
14874
14869
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14875
- /*utils AI library associated with aotra version : «1_29072022-2359 (13/10/2024-21:44:14)»*/
14870
+ /*utils AI library associated with aotra version : «1_29072022-2359 (13/10/2024-21:49:20)»*/
14876
14871
  /*-----------------------------------------------------------------------------*/
14877
14872
 
14878
14873
 
@@ -15016,7 +15011,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
15016
15011
 
15017
15012
 
15018
15013
 
15019
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (13/10/2024-21:44:14)»*/
15014
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (13/10/2024-21:49:20)»*/
15020
15015
  /*-----------------------------------------------------------------------------*/
15021
15016
 
15022
15017
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1062",
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)",