You can create and view a video player iframe source to play a specific video externally.
Name | Required/Optional | Type | Description | Notes |
---|---|---|---|---|
Authorization | Required | string | API authentication key | Authorization: Bearer your-api-key |
The API authorization key is the API key created in [Web Admin > Workspace > Settings > API Key].
You must add 'Bearer ' in front of the API key to ensure proper authentication processing. | | Version | Required | string | API version | Version: 2025-01-09
You must specify the correct version to use the API. |
Name | Required/Optional | Type | Description | Notes |
---|---|---|---|---|
videoCode | Required | string | Recorded video No. |
<https://api.realpacking.com/v3/videos/videoCode12345/embed>
Name | Required/Optional | Type | Description | Notes |
---|---|---|---|---|
sizetype | Optional | string | Size type | “pixel” or “percent” |
Standard: pixel | ||||
width | Optional | int | frame horizontal size | Standard: 480px |
height | Optional | int | frame vertical size | Standard: 324px |
autoplay | Optional | bool | wether to autoplay | Standard: true |
controls | Optional | bool | control UI present | Standard: true |
It can only be removed(false) when autoplay is true |
<https://api.realpacking.com/v3/videos/videoCode12345/embed?sizetype=pixel&width=400&height=300&autoplay=true&controls=true>
No Request Body Required
Name | Required/Optional | Type | Description | Notes |
---|---|---|---|---|
message | Required | string | http status message | |
data | Required | string | result data | string: <iframe></iframe> tag |
{
"message": "OK",
"data": "<iframe style=\\"border:0px;width:480px;height:324px;\\" src=\\"//www.realpacking.com/api/video_view_v2.php?idx=76740521&btype=0&etype=0&token=1702408698&cidx=583&auth_key=my-api-key&controls=true&autoplay=true\\" frameborder=\\"0\\" webkitallowfullscreen=\\"0\\" mozallowfullscreen=\\"0\\" allowfullscreen=\\"0\\" referrerpolicy=\\"unsafe-url\\"></iframe>"
}