MediaPlayerEvent.cs 389 B

1234567891011121314151617181920212223
  1. using System;
  2. using UnityEngine.Events;
  3. namespace RenderHeads.Media.AVProVideo
  4. {
  5. [Serializable]
  6. public class MediaPlayerEvent : UnityEvent<MediaPlayer, MediaPlayerEvent.EventType, ErrorCode>
  7. {
  8. public enum EventType
  9. {
  10. MetaDataReady,
  11. ReadyToPlay,
  12. Started,
  13. FirstFrameReady,
  14. FinishedPlaying,
  15. Closing,
  16. Error,
  17. SubtitleChange,
  18. Stalled,
  19. Unstalled
  20. }
  21. }
  22. }