iOSでMovieを再生するためのプラグインです
##Functions
| Name | Description |
|---|---|
| PlayView | Viewで再生する |
| PlayTexture | Textureで再生する |
| Pause | 一時停止 |
| Resume | リジューム |
| Stop | 停止 |
###public void PlayView(Rect margin, string videoURL)
public void PlayView(int left, int top, int right, int bottom, string videoURL)
SubViewで再生を行います
videoURLはhttp/httpsかStreamingAssetsフォルダからの相対パス
if (GUILayout.Button("<size=42>ViewPlay</size>", GUILayout.Height(200)))
{
video.Stop();
video.PlayView(12, Screen.height / 2 + 12, 12, 12, "movie.mp4");
}
マテリアルにVideoTextureを貼り付けます
materialがnullの場合は自分のMeshRendererにあるMaterialを使用します
videoURLはhttp/httpsかStreamingAssetsフォルダからの相対パス
if (GUILayout.Button("TexturePlay", GUILayout.Height(200)))
{
video.PlayTexture("movie.mp4");
}
#Variables
| Name | Description |
|---|---|
| ready | 再生可能かどうか |
| videoTexture | Texture再生時のTexture |
| videoSize | ビデオサイズ |
| duration | 動画の長さ |
| isPlaying | 再生中かどうか |


