Click or drag to resize

OSNativeVideoPlay Method

Plays native video from the specified path, at the given volume and with audio and subtitle tracks.

Note: This method is implemented on Android and iOS, and the current Android implementation does not support the volume, audio_track and subtitle_track options.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Error NativeVideoPlay(
	string path,
	float volume,
	string audioTrack,
	string subtitleTrack
)

Parameters

path
Type: SystemString

[Missing <param name="path"/> documentation for "M:Godot.OS.NativeVideoPlay(System.String,System.Single,System.String,System.String)"]

volume
Type: SystemSingle

[Missing <param name="volume"/> documentation for "M:Godot.OS.NativeVideoPlay(System.String,System.Single,System.String,System.String)"]

audioTrack
Type: SystemString

[Missing <param name="audioTrack"/> documentation for "M:Godot.OS.NativeVideoPlay(System.String,System.Single,System.String,System.String)"]

subtitleTrack
Type: SystemString

[Missing <param name="subtitleTrack"/> documentation for "M:Godot.OS.NativeVideoPlay(System.String,System.Single,System.String,System.String)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.OS.NativeVideoPlay(System.String,System.Single,System.String,System.String)"]

See Also