ts-video-player 0.1.9 → 0.1.11

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
@@ -307,6 +307,9 @@ Use the `@video` directive in your stx templates:
307
307
 
308
308
  ```typescript
309
309
  // Playback
310
+ player.setControls(enabled: boolean): void
311
+ player.setAutoplay(enabled: boolean): void
312
+ player.setLoop(enabled: boolean): void
310
313
  player.play(): Promise<void>
311
314
  player.pause(): void
312
315
  player.togglePlay(): Promise<void>
@@ -344,6 +347,16 @@ player.el: HTMLElement // Container element
344
347
  player.destroy(): void
345
348
  ```
346
349
 
350
+ Policy setters retain the player and provider instances. `setControls(false)`
351
+ hides built-in controls (including keyboard focus targets), independently of
352
+ activity-based hiding. `setAutoplay(false)` cancels queued automatic starts,
353
+ without pausing current playback or discarding an explicit play request;
354
+ enabling it starts a ready source or waits for the current load. Browser
355
+ autoplay restrictions still apply. Loop and autoplay policy apply to later
356
+ sources too. Constructor options remain supported; the custom element follows
357
+ boolean-attribute presence for `controls`, `autoplay` and `loop`. A
358
+ `keep-alive` reconnect retains the player and reconciles control visibility.
359
+
347
360
  ### Events
348
361
 
349
362
  ```typescript