Page History
...
- 설명: W Player로부터 이벤트(Event)를 전달받는 리스너(Listener)를 추가할 수 있습니다. 수명 주기에 대한 상태 이벤트(ready/play/pageChanged/stop)를 수신하기 위해서는 초기 생성 단계에 추가가 필요합니다.
- 구문: function setDefaultCallback (myFunction(object));
- 파라미터: 이벤트(Event)는 콜백(Callback)을 통해 다음과 같은 객체(Object) 형태로 전달합니다.
State (ready)
Code Block |
---|
{ type: 'state', sub: 'ready', data: { /* user_data object */ } name: 'name of Web Content element', pageId: 'id' } |
...