Embedding via IFrame
You can embed the player in any HTML page using aniframe
. This allows the video to be displayed inside a container in your own application.
<iframe
src="https://iplayerplus.com/embed/:video_id"
width="1024"
height="576"
allow="autoplay; encrypted-media"
allowFullScreen>
</iframe>
You can include parameters directly in the iframe URL, just like in the link embedding:
Required parameters:
access_key
: Access key must be generated in the dashboard
Additionally, you can add extra parameters to customize the player display. Here are some examples:
Optional parameters:
width
: Player width in pixels.height
: Player height in pixels.autoplay
: Automatically play the video.content
: A JSON with user data who will watch the video.
Example:{"user_id":"1","name":"Lucas"}
This option is ideal for platforms that want to keep the user on the same page, such as in logged-in areas or admin panels.