@livedesk/client 0.1.67 → 0.1.68

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.
@@ -2491,15 +2491,27 @@ function resolveBundledFfmpegPaths() {
2491
2491
  }
2492
2492
  };
2493
2493
 
2494
- try {
2495
- const ffmpeg = require('@ffmpeg-installer/ffmpeg');
2496
- addPath(ffmpeg?.path);
2497
- } catch {
2498
- }
2494
+ const addFfmpegInstaller = () => {
2495
+ try {
2496
+ const ffmpeg = require('@ffmpeg-installer/ffmpeg');
2497
+ addPath(ffmpeg?.path);
2498
+ } catch {
2499
+ }
2500
+ };
2499
2501
 
2500
- try {
2501
- addPath(require('ffmpeg-static'));
2502
- } catch {
2502
+ const addFfmpegStatic = () => {
2503
+ try {
2504
+ addPath(require('ffmpeg-static'));
2505
+ } catch {
2506
+ }
2507
+ };
2508
+
2509
+ if (process.platform === 'darwin') {
2510
+ addFfmpegStatic();
2511
+ addFfmpegInstaller();
2512
+ } else {
2513
+ addFfmpegInstaller();
2514
+ addFfmpegStatic();
2503
2515
  }
2504
2516
 
2505
2517
  return paths;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livedesk/client",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "description": "LiveDesk local remote client",
5
5
  "type": "module",
6
6
  "bin": {