- Alternative to Handheld.PlayFullScreenMovie for support of rotating screen.
- iOS only.
- 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
- The source to open the movie at "http://example.com/movies/example.mp4"
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);
- 0:All
- 1:Portrait only
- 2:Landscape only