https://github.com/donkeyclip/iframe
https://github.com/donkeyclip/iframe
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/donkeyclip/iframe
- Owner: donkeyclip
- Created: 2023-04-07T18:41:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T14:29:23.000Z (over 1 year ago)
- Last Synced: 2025-01-18T05:34:20.273Z (4 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using Donkeyclip with an Iframe
To embed a Donkeyclip video player on your website using an iframe, simply include the following HTML code and replace the `src` attribute with the URL of the your donkeyclip:
```html
```
# Available query params
- `scaleToFit` (optional): A boolean or string value that, when set to `true`, scales the clip to fit the player dimensions.
- `mcVersion` (optional): A string specifying the version of the MotorCortex library to use.
- `playerVersion` (optional): A string specifying the version of the Donkeyclip Player library to use.
- `theme` (optional): A `PlayerTheme` that sets the player's theme. Read more [here](https://github.com/donkeyclip/motorcortex-player)
- `initParams` (optional): An stringified object containing `DefinitionParams` for initializing the clip.
- `visible` (optional): A string value `"always"` indicating that the player should always be visible.
- `ms` (optional): A number or string value representing the millisecond at which the clip should start playing.
- `volume` (optional): A number or string value representing the volume level of the clip (0-1).
- `speed` (optional): A number or string value representing the playback speed of the clip.
- `backgroundColor` (optional): A string value representing the background color of the player.
- `spinnerColor` (optional): A string value representing the color of the loading spinner.