adrenak / GPUVideoPlayer

Fast video playback on Unity using GPU Decoding
MIT License
128 stars 29 forks source link
hevc unity3d video video-player

Note .

Thanks to xue-fei for identifying the original authors of the CPP code. Please refer to MediaPlayback for a more suitable solution.

This repository is not being actively maintained. Issues may not be addressed.

GPUVideoPlayer

Alternative to Unity's VideoPlayer component. Run HEVC/H265 videos with GPU decoding, lower loading times and better performance.

API/Usage

The GPUVideoPlayer class derives from MonoBehaviour and needs to be on the scene. GPUVideoPlayer component also provides some primitive auto play features.

Methods:

C# Properties:

States and Events:

The states of a GPUVideoPlayer instance is represented using an enum called `GPUVideoPlayer.State' and has the following values:

The current state can be obtained using GPUVideoPlayer.MediaState which derives from UnityEvent<GPUVideoPlayer.State>

Performance

Getting Started

Notes

Contact

@github
@www