Skip to content

HiromichiYamada/unity-simplemovie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unity-simplemovie

  • Alternative to Handheld.PlayFullScreenMovie for support of rotating screen.
  • iOS only.

Usage

  • The source to open the movie at "/StreamingAssets/mymovie/dyson360eye.mp4" (Bundle)
var callbackTargetName = "hud";	// callback target (GameObject), (default:null)
var callbackMethodName = "OnDoneSimpleMovie";	// calback method name for the target (default:null)

SimpleMovie.PlayMovie("mymovie", "dyson360eye", "mp4", callbackTargetName, callbackMethodName, 0);
// SimpleMovie.PlayMovie("mymovie", "dyson360eye", "mp4", null, null, 0); // simple sample
var callbackTargetName = "hud";	// callback target (GameObject), (default:null)
var callbackMethodName = "OnDoneSimpleMovie";	// calback method name for the target (default:null)

SimpleMovie.PlayMovieURL("http://example.com/movies/example.mp4", callbackTargetName, callbackMethodName, 0);
// SimpleMovie.PlayMovieURL("http://example.com/movies/example.mp4", null, null, 0);

Parameters

orientation

  • 0:All
  • 1:Portrait only
  • 2:Landscape only

about the sample movie - dyson360eye.mp4

About

Alternative to Handheld.PlayFullScreenMovie

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published