// Copyright (c) 2024 Vuplex Inc. All rights reserved.
//
// Licensed under the Vuplex Commercial Software Library License, you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// https://vuplex.com/commercial-library-license
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using UnityEngine;
namespace Vuplex.WebView {
///
/// Interface used on iOS for the
/// fallback video implementation.
///
public interface IWithFallbackVideo {
///
/// Indicates whether the fallback video implementation is enabled.
///
bool FallbackVideoEnabled { get; }
///
/// Indicates that the rect of the playing video changed.
///
event EventHandler> VideoRectChanged;
///
/// The video texture used for the fallback video implementation, or `null`
/// if the fallback video implementation is not enabled.
///
Texture2D VideoTexture { get; }
///
/// Returns a Material that can be used for displaying the VideoTexture.
///
Material CreateVideoMaterial();
///
/// Sets whether the fallback video implementation is enabled. The default is `false`.
///
void SetFallbackVideoEnabled(bool enabled);
}
}