AVProVideo.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // AVProVideo.h
  3. // AVProVideo
  4. //
  5. // Created by Morris Butler on 21/05/2020.
  6. // Copyright © 2020 RenderHeads. All rights reserved.
  7. //
  8. #import "AVProVideoTypes.h"
  9. //! Project version number for AVPro Video.
  10. FOUNDATION_EXPORT double AVProVideoVersionNumber;
  11. //! Project version string for AVPro Video.
  12. FOUNDATION_EXPORT const unsigned char AVProVideoVersionString[];
  13. #if __cplusplus
  14. extern "C" {
  15. #endif
  16. NS_ASSUME_NONNULL_BEGIN
  17. void * AVPPluginGetVersionStringPointer(void);
  18. AVPPlayerRef AVPPluginMakePlayer(AVPPlayerSettings settings);
  19. void AVPPlayerRelease(AVPPlayerRef player);
  20. bool AVPPlayerOpenURL(AVPPlayerRef player, const char *url, const char *headers);
  21. void AVPPlayerClose(AVPPlayerRef player);
  22. void AVPPlayerGetState(AVPPlayerRef player, AVPPlayerState *state);
  23. void AVPPlayerGetAssetInfo(AVPPlayerRef player, AVPPlayerAssetInfo *info);
  24. void AVPPlayerGetBufferedTimeRanges(AVPPlayerRef player, AVPPlayerTimeRange *ranges, int count);
  25. void AVPPlayerGetSeekableTimeRanges(AVPPlayerRef player, AVPPlayerTimeRange *ranges, int count);
  26. void AVPPlayerGetTexture(AVPPlayerRef player, AVPPlayerTexture *texture);
  27. void AVPPlayerGetText(AVPPlayerRef player, AVPPlayerText *text);
  28. int AVPPlayerGetAudio(AVPPlayerRef player, float *buffer, int length);
  29. void AVPPlayerGetVideoTrackInfo(AVPPlayerRef player, int index, AVPPlayerVideoTrackInfo *info);
  30. void AVPPlayerGetAudioTrackInfo(AVPPlayerRef player, int index, AVPPlayerAudioTrackInfo *info);
  31. void AVPPlayerGetTextTrackInfo(AVPPlayerRef player, int index, AVPPlayerTextTrackInfo *info);
  32. void AVPPlayerSetFlags(AVPPlayerRef player, int flags);
  33. void AVPPlayerSetRate(AVPPlayerRef player, float rate);
  34. void AVPPlayerSetVolume(AVPPlayerRef player, float volume);
  35. void AVPPlayerSetExternalPlaybackVideoGravity(AVPPlayerRef player, AVPPlayerExternalPlaybackVideoGravity externalPlaybackVideoGravity);
  36. bool AVPPlayerSetTrack(AVPPlayerRef player, AVPPlayerTrackType type, int index);
  37. void AVPPlayerSetPlayerSettings(AVPPlayerRef player, AVPPlayerSettings settings);
  38. void AVPPlayerSeek(AVPPlayerRef player, double toTime, double toleranceBefore, double toleranceAfter);
  39. void AVPPlayerSetKeyServerURL(AVPPlayerRef player, const char *url);
  40. void AVPPlayerSetKeyServerAuthToken(AVPPlayerRef player, const char *token);
  41. void AVPPlayerSetDecryptionKey(AVPPlayerRef player, const char *key, int length);
  42. void AVPPluginUnityRegisterRenderingPlugin(void *registerRenderingPluginFunction);
  43. void AVPPluginCacheMediaForURL(const char *url, const char *headers, AVPMediaCachingOptions options);
  44. void AVPPluginCancelDownloadOfMediaForURL(const char *url);
  45. void AVPPluginRemoveCachedMediaForURL(const char *url);
  46. int AVPPluginGetCachedMediaStatusForURL(const char *url, float *progress);
  47. NS_ASSUME_NONNULL_END
  48. #if __cplusplus
  49. }
  50. #endif