Page History
Sv translation | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
$wp는 W Player API의 모든 인터페이스 (content, device, local, utility, callback)를 포함하는 네임스페이스(Namespace)입니다.
State (ready)
'ready' State: 페이지(Page) 내의 모든 요소를 모두 로드(Load)하면 응용 웹 콘텐츠 요소가 W Player API를 사용할 수 있는 시점을 전달합니다. 응용 웹 콘텐츠 요소는 iframe 형태로 로드(Load)하며 화면에 표시하기 전 상태(Back Page Layer, 현재 화면에는 이전 콘텐츠를 재생하고 있는 상태)입니다. 화면에 나타나기 전에 필요한 초기화를 진행할 수 있습니다. data :{ /* user_data object*/ } user_data는 ready 상태에서 초기화에 이용 가능 합니다. (user_data는 getProperty 를 통해서도 구할 수 있습니다.) State (play)
'play' State: 웹 콘텐츠 요소를 화면에 표시하는 시점(Front Page layer)을 전달합니다. State (pageChanged)
'pageChanged' State: 재생 중 페이지(Page)가 전환되는 시점을 전달합니다.(단, 웹 콘텐츠가 공통 페이지에 속해 있을 경우에만 동작합니다.) data로 전달되는 pageName 을 통해 어떤 페이지(Page)가 전환되었는지 확인 가능 합니다. State (stop)
'stop' State: 웹 콘텐츠 요소가 종료되기 전 시점을 전달합니다. 웹 콘텐츠 요소 내에 사용된 리소스를 반환할 수 있습니다. (예: clearInterval, clearTimeout, $wp = null) ※ 정상적으로 반환되지 않는 리소스는 메모리 누수 발생으로 W Player 재생이 영향을 받을 수 있습니다. Error
'error' Type: W Player API 실행 오류 또는 기타 오류가 발생하면 실행됩니다. 오류에 대한 자세한 정보는 error object를 통해 확인할 수 있습니다. UDP
'udp' Type: UDP로 data가 전달되면 실행됩니다. Port 등의 설정은 Web Author에서 저작 시 가능합니다. Datalink
' |
...
datalink' Type: 데이터링크( |
...
Datalink)에서 data가 전달되면 실행됩니다. 데이터링크( |
...
Datalink) 정보에 대한 설정은 Web Author에서 저작 시 가능합니다.
|
Sv translation | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
"$wp" is a namespace that includes all interfaces of W Player API (e.g., content, device, local, utility, callback).
State (ready)
'ready' State: Sends the time at which web content elements can use W Player API after all elements in a page are loaded. A web content element is loaded in iframe format, being in the Back Page layer which is a state in which the element is not displayed yet (and the previous content is playing on the current screen). Reset is possible as required, before the element appears on the screen. data :{ /* user_data object*/ } user_data can be used for reset in ready state. (user_data can also be obtained through getProperty.) State (play)
'play' State: Sends the time at which the web content element appears on the screen (Front Page layer). State (pageChanged)
'pageChanged' State: Sends the time at which a page transition takes place during playback. (This only works when the web content belongs to the common page.) You can check which page has been switched by viewing the pageName included in the received data. State (stop)
'stop' State: Sends the time before which web content element playback ends. Resources used in a web content element can be returned. (e.g., clearInterval, clearTimeout, $wp = null) * A resource that is not returned properly may affect W Player playback due to a memory leak. Error
'error' Type: Runs when a W Player API running error or other error occurs. Error details can be viewed through the error object. UDP
'udp' Type: Runs after data is sent to UDP. Port and other settings can be configured when authoring from Web Author. Datalink
'datalink' Type: Runs after data is sent from datalink. Datalink information can be configured when authoring from Web Author.
|