-
-
Notifications
You must be signed in to change notification settings - Fork 9
04. Settings for all player
All the setting for every package is set globally in the PrettyEmbedHelper package under the key Jonnitto.PrettyEmbed
We will go through each setting.
Set this to true for debug output. This includes a console.log of all fired events and also a console.log of the props passed to the presentational components.
Jonnitto:
PrettyEmbed:
debug: trueThis setting is disabled per default. If you enable it, it will still be disabled in Production context.
This package uses Alpine.js under the hood. It includes a small check, if the variable Alpine is available and if not, it will download it. If you also use Alpine.js, please make your instance globally available width window.Alpine = Alpine. To disable this check set includeAlpineJsCheck in your Settings.yaml to false:
Jonnitto:
PrettyEmbed:
includeAlpineJsCheck: falsePlease make sure that the files from this package is loaded before your own file with Alpine.start()
The Javascript and CSS files get loaded via Sitegeist.Slipstream:
If you want to load your own CSS, you can disable it like that:
Jonnitto:
PrettyEmbed:
includeAssets:
css: falseIf you want to load your own Javascript, you can disable it like that:
Jonnitto:
PrettyEmbed:
includeAssets:
js: falseYou can set here the Lazy loading strategy for the preview images
The settings can set to lazy, eager or null, defaults to lazy
Jonnitto:
PrettyEmbed:
loadImageStrategy: lazyYou can set here the format of the generated preview image. Supported are avif, jpg, jpeg, gif, png, wbmp, xbm, webp and bmp.
Jonnitto:
PrettyEmbed:
imageformat: webpIf you set the value to
null, the default format from the file itself will be used
Currently
avifis only supported byimagick > 7.0.10-25andlibheif > 1.7.0.
If this is set to a string, the element gets wrapped with a <div> and the class with the giving string.
If set to true, the element gets wrapped with a <div> without any class.
If set to false, the element get not wrapped at all
Defaults to false
Jonnitto:
PrettyEmbed:
wrapper: mx-autoIf you want to customize buttons, you can set your own buttons. Be aware that it has to be markup based, as the content of the file gets included. If you want more options, you have to customize the Fusion prototype Jonnitto.PrettyEmbed:Presentation.Button.Play or Jonnitto.PrettyEmbed:Presentation.Button.Pause
Jonnitto:
PrettyEmbed:
button:
play: 'resource://Jonnitto.PrettyEmbedHelper/Public/Assets/PlayButton.svg'
pause: 'resource://Jonnitto.PrettyEmbedHelper/Public/Assets/PauseButton.svg'This is the maximum width who is passed to the image for the poster and poster2x property. poster2x gets only enabled of the base image has enough pixel.
Jonnitto:
PrettyEmbed:
maximumWidth: 1920I would be very happy if you want me to help me to improve this documentation. If you have troubles to get it running, drop me a line by starting a discussion and I'll try to help you out.