rvms-vue 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/README.md +26 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -53,7 +53,7 @@ function playRecording() {
53
53
  </template>
54
54
  ```
55
55
 
56
- ## Simple player (no alarms)
56
+ ## Simple player live
57
57
 
58
58
  ```vue
59
59
  <script setup>
@@ -70,6 +70,31 @@ import { RvmsVideo } from 'rvms-vue';
70
70
  </template>
71
71
  ```
72
72
 
73
+ ## Simple player — playback
74
+
75
+ ```vue
76
+ <script setup>
77
+ import { ref } from 'vue';
78
+ import { RvmsVideo } from 'rvms-vue';
79
+
80
+ const mode = ref('playback');
81
+ const from = '2025-01-15T10:00:00Z';
82
+ const to = '2025-01-15T11:00:00Z';
83
+ </script>
84
+
85
+ <template>
86
+ <RvmsVideo
87
+ nvr-id="a1b2c3d4-..."
88
+ channel-id="201"
89
+ :mode="mode"
90
+ :from="from"
91
+ :to="to"
92
+ width="100%"
93
+ height="480px"
94
+ />
95
+ </template>
96
+ ```
97
+
73
98
  ## Components
74
99
 
75
100
  ### `RvmsVideoPlayer`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rvms-vue",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "description": "RVMS (Video-MS) Vue 3 components — RvmsVideoPlayer, RvmsVideo",
6
6
  "main": "./dist/lib/index.js",