@camera.ui/browser 0.0.38 → 0.0.39

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,19 +1,23 @@
1
- import { ReplaySubject } from 'rxjs';
1
+ import { ReplaySubject, Observable } from 'rxjs';
2
2
  import { Subscribed } from '../../utils/subscribed';
3
3
  import type { BaseLogger, CameraDevice } from '../../types';
4
4
  import type { WebrtcBrowserConnection } from './webrtc-browser-connection';
5
5
  export declare class BrowserStreamingSession extends Subscribed {
6
+ readonly onCallAnswered: ReplaySubject<void>;
6
7
  readonly onCallEnded: ReplaySubject<void>;
7
- private readonly onUsingOpus;
8
+ private onUsingOpus;
9
+ private micState;
8
10
  private hasEnded;
9
11
  private cameraDevice;
10
12
  private connection;
11
13
  private logger;
14
+ isMicEnabled: Observable<boolean>;
12
15
  get isUsingOpus(): Promise<boolean>;
13
16
  constructor(cameraDevice: CameraDevice, logger: BaseLogger, connection: WebrtcBrowserConnection);
14
17
  enableMicrophone(track: MediaStreamTrack): void;
15
18
  disableMicrophone(): void;
16
19
  stop(): void;
20
+ private createStateObservable;
17
21
  private bindToConnection;
18
22
  private callEnded;
19
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camera.ui/browser",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "camera.ui browser client",
5
5
  "author": "seydx (https://github.com/seydx/camera.ui)",
6
6
  "main": "./dist/bundle.js",
package/webpack.config.ts DELETED
@@ -1,43 +0,0 @@
1
- import path from 'path';
2
- import webpack, { type Configuration } from 'webpack';
3
-
4
- const webpackConfiguration: Configuration = {
5
- mode: 'production',
6
- entry: '../node/src/index.ts',
7
- output: {
8
- path: path.resolve(__dirname, 'dist'),
9
- filename: 'bundle.js',
10
- library: {
11
- name: 'CameraUiClient',
12
- type: 'umd',
13
- },
14
- },
15
- performance: {
16
- hints: false,
17
- maxEntrypointSize: 512000,
18
- maxAssetSize: 512000,
19
- },
20
- optimization: {
21
- splitChunks: {
22
- minSize: 10000,
23
- maxSize: 250000,
24
- },
25
- },
26
- devtool: false,
27
- resolve: {
28
- extensions: ['.ts', '.js'],
29
- },
30
- target: 'web',
31
- module: {
32
- rules: [
33
- {
34
- test: /\.ts$/,
35
- use: 'ts-loader',
36
- exclude: /node_modules/,
37
- },
38
- ],
39
- },
40
- plugins: [new webpack.NormalModuleReplacementPlugin(/cameraDevice\.node/, path.resolve(__dirname, '../node/src/proxy/cameraDevice/cameraDevice.mock.ts'))],
41
- };
42
-
43
- export default webpackConfiguration;