()
| 202 | } |
| 203 | |
| 204 | private _initStore() { |
| 205 | const providedProps = { |
| 206 | viewType: 'providedViewType', |
| 207 | streamType: 'providedStreamType', |
| 208 | }; |
| 209 | |
| 210 | for (const prop of Object.keys(this.$props)) { |
| 211 | this.$store[providedProps[prop] ?? prop]?.set(this.$props[prop]()); |
| 212 | } |
| 213 | |
| 214 | if (__SERVER__) this._onProvidedTypesChange(); |
| 215 | else effect(this._onProvidedTypesChange.bind(this)); |
| 216 | |
| 217 | this.$store.muted.set(this.$props.muted() || this.$props.volume() === 0); |
| 218 | } |
| 219 | |
| 220 | private _watchTitle() { |
| 221 | const { title } = this.$props, |
no test coverage detected