VrPlayerController class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fullScreen(
) → Future< void> - Enable/disable fullscreen mode Works only on Android.On IOS you need to pass new VrPlayer.width and VrPlayer.height to VrPlayer widget
-
isPlaying(
) → Future< bool> - Check current player state
-
loadVideo(
{String? videoUrl, String? videoPath}) → Future< void> -
Initializes video based on configuration.
Invoke actions which need to be run on player start.
Pass
videoPath
for local files, orvideoUrl
for files from network. Local files supports only Android -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onOrientationChanged(
) → Future< void> - (Only for Android) Notify player when orientation changed
-
onPause(
) → Future< void> - (Only for Android) Dispose player on pause
-
onResume(
) → Future< void> - (Only for Android) Reload player
-
onSizeChanged(
double width, double height) → Future< void> - (Only for Android) Reload player when you need to change size of nativeView
-
pause(
) → Future< void> - Pause video
-
play(
) → Future< void> - Play video
-
seekTo(
int position) → Future< void> -
Seek to
position
-
setVolume(
double volume) → Future< void> - Set player volume from 0 to 1
-
toggleVRMode(
) → Future< void> - Switch between 360 mode and VR mode
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited