예제 #1
0
 /// <summary>
 /// Set whether the video in HTML page could be played inline.
 /// </summary>
 /// <param name="allowed">If true, UniWebView will try to play media in the video tag inline.</param>
 /// <description>
 /// This method only works in iOS. By default, the video playback in iOS is full screen. By calling this
 /// method with true AND setting the video tag with inline keyword, the video will be played without going to full screen.
 /// See http://stackoverflow.com/questions/3699552/html5-inline-video-on-iphone-vs-ipad-browser to know more about the
 /// inline property for iOS.
 /// </description>
 public void SetAllowInlinePlay(bool allowed)
 {
     #if UNITY_IOS && !UNITY_EDITOR
     UniWebViewPlugin.SetAllowInlinePlay(gameObject.name, allowed);
     #endif
 }