Skip to content

KazukiKuriyama/unity-webgl-video-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-webgl-video-ios

Video playback on UnityWebGL is very unstable on some platforms (especially iOS). This source code avoids the problem by dynamically passing textures between jslib and C#.

If you will only use it in a PC environment, using the VideoPlayer component is sufficient without using this repository. However, it will not be possible to play the video if it is accessed from iOS.

Notes

  • Due to browser security rules, even if you use this source code, you must tap the screen once before playing the audio. If the tap is made after the timing when the audio is originally played, the audio for that video will not be played. *Under investigation
    • To counteract this problem, this sample Scene does not automatically play the video, but requires the input operation of a button in advance.
  • Remember to allow the hosting server's CORS settings since the video is supposed to be retrieved from a URL. *Not required for the same domain.
  • UnityRoom, which cannot upload jslib builds, is not supported.
  • It is recommended that you try the playback methods described in this article before using this repository.

About

WebGL's Video feature that also works on iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published