Home Reference Source

js/event.js

  1. /**
  2. * @file event.js
  3. * @since 3.5.0
  4. */
  5.  
  6. class Event {}
  7.  
  8. // video.js
  9. Event.READY = 'ready';
  10. Event.ERROR = 'error';
  11. Event.PLAYING = 'playing';
  12. Event.LOADEDMETADATA = 'loadedmetadata';
  13. Event.LOADSTART = 'loadstart';
  14. Event.USERINACTIVE = 'userinactive';
  15. Event.TIMEUPDATE = 'timeupdate';
  16. Event.DURATIONCHANGE = 'durationchange';
  17. Event.ENDED = 'ended';
  18. Event.PAUSE = 'pause';
  19. Event.PLAY = 'play';
  20.  
  21. // videojs-record
  22. Event.DEVICE_READY = 'deviceReady';
  23. Event.DEVICE_ERROR = 'deviceError';
  24. Event.START_RECORD = 'startRecord';
  25. Event.STOP_RECORD = 'stopRecord';
  26. Event.FINISH_RECORD = 'finishRecord';
  27. Event.RECORD_COMPLETE = 'recordComplete';
  28. Event.PROGRESS_RECORD = 'progressRecord';
  29. Event.TIMESTAMP = 'timestamp';
  30. Event.ENUMERATE_READY = 'enumerateReady';
  31. Event.ENUMERATE_ERROR = 'enumerateError';
  32. Event.AUDIO_BUFFER_UPDATE = 'audioBufferUpdate';
  33. Event.AUDIO_OUTPUT_READY = 'audioOutputReady';
  34. Event.START_CONVERT = 'startConvert';
  35. Event.FINISH_CONVERT = 'finishConvert';
  36. Event.ENTER_PIP = 'enterPIP';
  37. Event.LEAVE_PIP = 'leavePIP';
  38. Event.RETRY = 'retry';
  39.  
  40. // dom
  41. Event.ENTERPICTUREINPICTURE = 'enterpictureinpicture';
  42. Event.LEAVEPICTUREINPICTURE = 'leavepictureinpicture';
  43.  
  44. // after the freeze, any attempts of altering the class will have no result
  45. Object.freeze(Event);
  46.  
  47. export default Event;