You can create and view a video player iframe source to play a specific video externally.

Headers

Name Required/Optional Type Description Notes
Authorization Required string API authentication key Authorization: Bearer your-api-key

Request Parameter

Path Segment Parameter

Name Required/Optional Type Description Notes
videoCode Required string Recorded video No.

Example Endpoint

<https://api.realpacking.com/v3/videos/videoCode12345/embed>

Query String Parameter

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

Example Endpoint

<https://api.realpacking.com/v3/videos/videoCode12345/embed?sizetype=pixel&width=400&height=300&autoplay=true&controls=true>

Request Body

No Request Body Required

Response

Success

Name Required/Optional Type Description Notes
message Required string http status message
data Required string result data string: <iframe></iframe> tag

Response Example

{
    "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>"
}