@clockworkdog/cogs-client-react 2.10.0 → 2.10.2

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.
package/README.md CHANGED
@@ -8,13 +8,13 @@ We recommend using the [`cogs-client` Create React App template](https://github.
8
8
 
9
9
  ## Add to your project
10
10
 
11
- ```shell
11
+ ```bash
12
12
  npm install --save @clockworkdog/cogs-client-react
13
13
  ```
14
14
 
15
15
  or
16
16
 
17
- ```shell
17
+ ```bash
18
18
  yarn add @clockworkdog/cogs-client-react
19
19
  ```
20
20
 
@@ -1,4 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
+ /**
3
+ * @deprecated
4
+ */
2
5
  export interface RtspVideoProps {
3
6
  uri: string;
4
7
  websocketHostname?: string;
@@ -10,5 +13,7 @@ export interface RtspVideoProps {
10
13
  * Takes an RTSP video URL and streams it in a video element. By default this will open the TCP relay
11
14
  * websocket on the same hostname as COGS is running, but can be configured by passing in custom
12
15
  * websocket details.
16
+ *
17
+ * @deprecated
13
18
  */
14
19
  export default function RtspVideo({ uri, websocketHostname, websocketPort, websocketPath, live, ...rest }: RtspVideoProps & React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>): ReactNode;
@@ -44,6 +44,8 @@ const usePageVisibility_1 = __importDefault(require("../hooks/usePageVisibility"
44
44
  * Takes an RTSP video URL and streams it in a video element. By default this will open the TCP relay
45
45
  * websocket on the same hostname as COGS is running, but can be configured by passing in custom
46
46
  * websocket details.
47
+ *
48
+ * @deprecated
47
49
  */
48
50
  function RtspVideo({ uri, websocketHostname, websocketPort, websocketPath, live, ...rest }) {
49
51
  // We need to monitor the page visibility as we only want the stream to play when the page is visible
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "React components and hooks to connect to COGS to build a custom Media Master",
4
4
  "author": "Clockwork Dog <info@clockwork.dog>",
5
5
  "homepage": "https://github.com/clockwork-dog/cogs-sdk/tree/main/packages/react",
6
- "version": "2.10.0",
6
+ "version": "2.10.2",
7
7
  "keywords": [],
8
8
  "license": "MIT",
9
9
  "repository": {
@@ -27,7 +27,7 @@
27
27
  "release": "yarn npm publish --access public"
28
28
  },
29
29
  "dependencies": {
30
- "@clockworkdog/cogs-client": "^2.10.0"
30
+ "@clockworkdog/cogs-client": "^2.10.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": "^18.0.0 || ^19.0.0",