외부에서 특정 영상 플레이를 위해 영상 플레이어 아이프레임 소스를 생성 후 확인할 수 있습니다.

Headers

이름 필수/선택 타입 설명 비고
Authorization 필수 string API 인증 키 Authorization: Bearer your-api-key

Request Parameter

Path Segment Parameter

이름 필수/선택 타입 설명 비고
videoCode 필수 string 영상 촬영 코드

Example Endpoint

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

Query String Parameter

이름 필수/선택 타입 설명 비고
sizetype 선택 string 사이즈 타입 “pixel” or “percent”
기본: pixel
width 선택 int 프레임 가로 사이즈 기본: 480px
height 선택 int 프레임 세로 사이즈 기본: 324px
autoplay 선택 bool 자동 재생 여부 기본: true
controls 선택 bool 컨트롤 UI 유무 기본: 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

이름 필수/선택 타입 설명 비고
message 필수 string http status message
data 필수 string 결과 데이터 문자열: <iframe></iframe> 태그

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