/// <summary> /// Set allow inline play for current web view. By default, on iOS, the video /// can only be played in a new full screen view. /// By setting this to `true`, you could play a video inline the page, instead of opening /// a new full screen window. /// /// This only works for iOS and macOS Editor. /// On Android, you could play videos inline by default and calling this method does nothing. /// </summary> /// <param name="flag">A flag indicates whether inline playing of media is allowed or not.</param> public static void SetAllowInlinePlay(bool flag) { #if (UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_IOS) && !UNITY_EDITOR_WIN UniWebViewInterface.SetAllowInlinePlay(flag); #endif }