IMediaInfo.cs 735 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using UnityEngine;
  3. namespace RenderHeads.Media.AVProVideo
  4. {
  5. public interface IMediaInfo
  6. {
  7. float GetDurationMs();
  8. int GetVideoWidth();
  9. int GetVideoHeight();
  10. Rect GetCropRect();
  11. float GetVideoFrameRate();
  12. float GetVideoDisplayRate();
  13. bool HasVideo();
  14. bool HasAudio();
  15. int GetAudioTrackCount();
  16. string GetAudioTrackId(int index);
  17. string GetCurrentAudioTrackId();
  18. int GetCurrentAudioTrackBitrate();
  19. int GetVideoTrackCount();
  20. string GetVideoTrackId(int index);
  21. string GetCurrentVideoTrackId();
  22. int GetCurrentVideoTrackBitrate();
  23. string GetPlayerDescription();
  24. bool PlayerSupportsLinearColorSpace();
  25. bool IsPlaybackStalled();
  26. float[] GetTextureTransform();
  27. }
  28. }