@oim-media/player-oim 1.27.12 → 1.28.0

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
@@ -49,6 +49,7 @@ changes again.
49
49
  |---|---|---|---|
50
50
  | `src` | none | URL of the `.oim` file. Setting it again reloads the element. | yes |
51
51
  | `placeholder` | none | Thumbnail shown until the engine paints. Only `http:`, `https:`, `blob:` and `data:image/` URLs are used; anything else is ignored. A thumbnail that fails to load is removed. | yes |
52
+ | `poster` | `auto` | `only`: just the base picture is shown; no layers, fonts or scene are loaded. This is the gallery mode. `auto`: a 2.0 file without a base layer shows its base picture until the scene is up, then the picture fades out (at once under reduced motion). A file with a base layer, a 1.x file, or an unsigned one keeps its picture under the layers. Any other value means `auto`. | yes |
52
53
  | `lang` | `en` | Language of the text layers. Changing it switches language without reloading. With no `lang`, the player uses English; if the file has no text in that language, it falls back to `en`, then `es`, then the first language present. | yes |
53
54
  | `activate-on` | visible | `hover`: the file moves only while the pointer is over it (on devices with a pointer; touch devices behave as `visible`). `manual`: the page decides with `play()` and `pause()`. Visibility still decides when the file is built. | yes |
54
55
  | `fit` | `contain` | `contain` or `cover`. | yes |
@@ -99,6 +100,7 @@ const player: OimPlayerInstance | null = OimPlayer.mount("hero", "/art/poster.oi
99
100
  | `fit` | `contain` or `cover` | Same as `fit`. |
100
101
  | `align` | `center`, `top` or `bottom` | Same as `align`. |
101
102
  | `placeholder` | string | Same as `placeholder`. |
103
+ | `poster` | `auto` or `only` | Same as `poster`. |
102
104
 
103
105
  ### Element members
104
106