이 HTML5의 미디어 요소의 이벤트들에 대해서 모두 테스트 해본것이 아니며, 

설명부분에는 번역에 오류도 있을 수 있습니다.


HTML5 공부하는 사람들에게 조금이나마 도움이 될 수 있도록,

수정되어야 할 부분이 있으면 수정될 수 있도록 댓글로 지적바랍니다.


 이벤트 명

설명

 abort

재생이 종료될 때 발생한다. 예를들면, 미디어가 재생중일 때 처음부터 다시 시작되면 이 이벤트가 발생한다.

Sent when playback is aborted; for example, if the media is playing 

and is restarted from the beginning, this event is sent.

 canplay

최소한 몇 프레임 이상의 재생될 수 있는 미디어 파일이 유효한 경우에 "CAN_PLAY" 상태에 해당된다. 

Sent when enough data is available that the media can be played, at 

least for a couple of frames. This corresponds to the CAN_PLAY readyState. 

 canplaythrough

준비상태에서 "CAN_PLAY_THROUGH" 상태로 바뀔 때 이벤트가 발생한다. 최소한 현재 수준에서 다운로드 속도를 가정하여 중단없이 전체 미디어가 재생될 수 있는것을 나타낸다. 

Sent when the ready state changes to CAN_PLAY_THROUGH, indicating that the entire media can be played without interruption, assuming the download rate remains at least at the current level. 

 canshowcurrentframe

현재 프레임은 로드하고 표시 할 수 있을 때 이 "CAN_SHOW_CURRENT_FRAME" 준비상태에 해당된다. 

The current frame has loaded and can be presented. This corresponds to the CAN_SHOW_CURRENT_FRAME readyState. 

 dataunavailable

준비 상태에서 DATA_UNAVAILABLE 상태로 변경될 때 이벤트 발생. 
Sent when the ready state changes to DATA_UNAVAILABLE.

 durationchange

메타 데이터가 로드되거나 변경되었을 때 미디어의 지속시간을 변경을 나타낸다. 예를 들면, 미디어가 충분히 로드되어 지속시간을 알게되었을 때 이 이벤트가 발생한다.

The metadata has loaded or changed, indicating a change in duration of the media. This is sent, for example, when the media has loaded enough that the duration is known. 

 emptied

미디어 비었을 때, 예를 들면, 미디어가 이미 로드되었거나 일부분만 로드되었는데, Load() 메소드에 의해 미디어가 리로드될 때, 이 이벤트가 발생된다. 

The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it. 

 empty

 오류가 발생하여 미디어가 비어있을 때 발생.

Sent when an error occurs and the media is empty.

 ended

재생이 완료되었을 때 발생 

Sent when playback completes. 

 error

 오류가 생겼을 때 이벤트가 발생한다. 이 요소의 오류 속성에는 더 많은 정보들이 있다.

Sent when an error occurs. The element's error attribute contains more information.

 loadeddata

미디어의 첫번째 프레임이 로드되었을 때 이벤트 발생  
The first frame of the media has finished loading.

  loadedmetadata

미디어가 처리될 수 있을 만큼 유용한 정보를 포함한 메터데이타가 모두 로드가 완료되었을 때 이 이벤트가 발생
The media's metadata has finished loading; all attributes now contain as much useful information as they're going to. 

 loadstart

미디어 로딩이 시작될 때 발생 
Sent when loading of the media begins. 

 pause

재생이 일시 정지되었을 때 발생 

Sent when playback is paused.

 play

재생이 시작되거나 재개될 때 발생

Sent when playback starts or resumes. 

  progress

미디어의 다운로드 진행 상황의 알리기 위해 주기적으로 전송된다. 이 이벤트에는 3가지 속성이 있다.

lengthComputable

미디어 파일의 크기를 알 수 있으면 true, 아니면 false

loaded
지금까지 수신 된 미디어 파일의 바이트 수
 total 
미디어 파일의 총 바이트 수.

Sent periodically to inform interested parties of progress downloading the media. The progress event has three attributes: 

lengthComputable 

true if the total size of the media file is known, otherwise false.
 loaded
The number of bytes of the media file that have been received so far.
 total
The total number of bytes in the media file.  

  ratechange

재생 속도가 변경될 때 이 이벤트가 발생한다. 
Sent when the playback speed changes.

  seeked

검색 기능이 완료되었을 때 발생

Sent when a seek operation completes. 

 seeking검색 기능이 시작될 때 발생 
Sent when a seek operation begins. 
 suspend

다운로드가 완료되었거나 어떠한 이유로 일시 중지되어 미디어 로딩이 일시 중지되었을 때 발생된다. 

Sent when loading of the media is suspended; this may happen either because the download has completed or because it has been paused for any other reason.

 timeupdate

요소의  currentTime 속성값에 표시된 시간이 변경될 때

The time indicated by the element's currentTime attribute has changed. 

 volumechange

오디오의 소리가 설정되거나 음소거가 되어 오디오 볼륨이 변경되었을 때 

Sent when the audio volume changes (both when the volume is set and when the muted attribute is changed).  

 waiting

"재생(playback)"처럼 요청된 기능이 "검색(seek)"같은 다른 기능의 완료를 대기하느라 지연되는 경우에 발생

Sent when the requested operation (such as playback) is delayed pending the completion of another operation (such as a seek).




Posted by 우라질레이터

urajilation@gmail.com
우라질레이터

달력

태그목록