개요
VideoPlayer 컴포넌트의 상태가 변경되었을 때 발생하는 이벤트에 전달되는 EventInfo 오브젝트입니다.
지원 환경
Desktop NRE | Desktop WRE | |||||
|---|---|---|---|---|---|---|
☑ Windows | ☑ macOS | ☑ Edge | ☑ Chrome | ☑ Safari | ☑ Firefox | ☑ Opera |
Mobile NRE | Mobile WRE | |||||
☑ Android | ☑ iOS/iPadOS | ☑ Android | ☑ iOS/iPadOS | |||
속성
eventid
이벤트의 ID를 갖는 읽기전용 속성입니다.
지원 환경
Desktop NRE | Desktop WRE | |||||
|---|---|---|---|---|---|---|
☑ Windows | ☑ macOS | ☑ Edge | ☑ Chrome | ☑ Safari | ☑ Firefox | ☑ Opera |
Mobile NRE | Mobile WRE | |||||
☑ Android | ☑ iOS/iPadOS | ☑ Android | ☑ iOS/iPadOS | |||
속성 타입
☐ Enum | ☐ Expr | ☐ Control | ☐ Hidden | ☑ ReadOnly | ☐ Bind | ☐ Collection | ☐ StringResource |
문법
VideoPlayStateChangedEventInfo.eventid
문법 설정
var strEventid = e.eventid; |
참고
- 이벤트에 핸들러로 등록된 함수의 이름이 아닌 발생한 이벤트명을 갖습니다.
fromobject
이벤트 발생의 원인이 되는 컴포넌트를 갖는 속성입니다.
지원 환경
Desktop NRE | Desktop WRE | |||||
|---|---|---|---|---|---|---|
☑ Windows | ☑ macOS | ☑ Edge | ☑ Chrome | ☑ Safari | ☑ Firefox | ☑ Opera |
Mobile NRE | Mobile WRE | |||||
☑ Android | ☑ iOS/iPadOS | ☑ Android | ☑ iOS/iPadOS | |||
속성 타입
☐ Enum | ☐ Expr | ☐ Control | ☐ Hidden | ☑ ReadOnly | ☐ Bind | ☐ Collection | ☐ StringResource |
문법
VideoPlayStateChangedEventInfo.fromobject
문법 설정
var objComp = e.fromobject; |
참고
- onlbuttondown 과 같이 상위로 전파되는 이벤트에서 fromobject 속성은 이벤트가 최초로 발생한 컴포넌트를 갖습니다.
fromreferenceobject
이벤트 발생의 원인이 되는 컴포넌트 또는 서브컨트롤을 갖는 속성입니다.
지원 환경
Desktop NRE | Desktop WRE | |||||
|---|---|---|---|---|---|---|
☑ Windows | ☑ macOS | ☑ Edge | ☑ Chrome | ☑ Safari | ☑ Firefox | ☑ Opera |
Mobile NRE | Mobile WRE | |||||
☑ Android | ☑ iOS/iPadOS | ☑ Android | ☑ iOS/iPadOS | |||
속성 타입
☐ Enum | ☐ Expr | ☐ Control | ☐ Hidden | ☑ ReadOnly | ☐ Bind | ☐ Collection | ☐ StringResource |
문법
VideoPlayStateChangedEventInfo.fromreferenceobject
문법 설정
var objComp = e.fromreferenceobject; |
참고
- Calendar 와 같이 서브컨트롤이 있는 컴포넌트에서 서브컨트롤에 의해 이벤트가 발생한 경우 fromreferenceobject 속성은 서브컨트롤을 갖습니다. Button 과 같이 서브컨트롤이 없는 컴포넌트는 해당 컴포넌트를 갖습니다. - onlbuttondown과 같이 상위로 전파되는 이벤트에서 fromreferenceobject 속성은 이벤트가 최초로 발생한 컴포넌트 또는 서브컨트롤을 갖습니다.
newstate
VideoPlayer 에서 이벤트가 발생한 원인에 대한 정보를 갖는 속성입니다.
지원 환경
Desktop NRE | Desktop WRE | |||||
|---|---|---|---|---|---|---|
☑ Windows | ☑ macOS | ☑ Edge | ☑ Chrome | ☑ Safari | ☑ Firefox | ☑ Opera |
Mobile NRE | Mobile WRE | |||||
☑ Android | ☑ iOS/iPadOS | ☑ Android | ☑ iOS/iPadOS | |||
속성 타입
☐ Enum | ☐ Expr | ☐ Control | ☐ Hidden | ☑ ReadOnly | ☐ Bind | ☐ Collection | ☐ StringResource |
문법
VideoPlayStateChangedEventInfo.newstate
문법 설정
"0" | undefined : Windows Video Player is in an undefined state 지원환경 : Windows NRE | |
|---|---|---|
"1" | stop : Playback of the current video item is stopped 지원환경 : NRE, Desktop WRE | |
"2" | pause : Playback of the current video item is paused. When a Video item is paused, resuming playback begins from the same location. 지원환경 : Windows NRE, macOS NRE, Android NRE, Desktop WRE | |
"3" | play : The current media video is playing. 지원환경 : Windows NRE, macOS NRE, Android NRE, Desktop WRE | |
"4" | scanforward : The current video item is fast forwarding. 지원환경 : Windows NRE | |
"5" | scanreverse : The current video item is fast rewinding. 지원환경 : Windows NRE | |
"6" | buffer : The current video item is getting additional data from the server. 지원환경 : Windows NRE, macOS NRE, Android NRE, Desktop WRE | |
"7" | wait : Connection is established, but the server is not sending data. Waiting for session to begin. 지원환경 : Windows NRE | |
"8" | ended : Video item has completed playback. 지원환경 : Windows NRE, macOS NRE, Android NRE, Desktop WRE | |
"9" | transition : Preparing new video item. 지원환경 : Windows NRE, macOS NRE, Desktop WRE | |
"10" | ready : Ready to begin playing. 지원환경 : Windows NRE, macOS NRE, Android NRE | |
참고
- 환경별로 제공하는 이벤트발생 원인코드가 다르므로 주의하여야 합니다.
활용 예제