Release Notes, 6.16.4-beta.2

This release contains additional VideoView features and improvements.

🚧 Minimum required:

sf-core v4.3.1-beta.1 🚀 Android :v6.16.4-beta.2 🚀 iOS: v6.14.4-beta.1🚀 UI Editor: v6.15.1 Context: v2.2.10 CLI: v6.15.5 IDE: v7.6.1

VideoView

Android

Android's VideoView component re-developed by using ExoPlayer. ExoPlayer is an application level media player for Android. It provides an alternative to Android’s MediaPlayer API for playing audio and video both locally and over the Internet. ExoPlayer supports features not currently supported by Android’s MediaPlayer API, including DASH and SmoothStreaming adaptive playbacks.

It also now support background mode and keeps the state of video depends on your application requirements. By using background mode, you can continue running the videos in background state.

TypeScript
TypeScript
this.myViewView = new VideoView({
backgroundModeEnabled: true,
onReady: () => {
this.myViewView.play();
},
onFinish: () => {
console.log(" onFinish ");
}
});
this.myViewView.android.stateSavingEnabled = false;
this.myViewView.android.customErrorMessage = "This is error message!!"
this.myViewView.android.backgroundColor = Color.RED;
this.myViewView.android.loadingIndicatorEnabled = true;
this.myViewView.android.nextButtonEnabled = false;
this.myViewView.android.fastForwardButtonEnabled = false;
this.myViewView.android.rewindButtonEnabled = false;
this.myViewView.android.previousButtonEnabled = false;
this.myViewView.android.controllerShowTimeoutMs = 1000;
this.myViewView.android.onFullScreenModeChanged = (isFullScreen) => {
console.log("onFullScreenModeChanged " + isFullScreen);
};
this.myViewView.android.onControllerVisibilityChange = (visible) => {
console.log("onControllerVisibilityChange " + visible);
};
this.myViewView.page = this;
this.myViewView.loadURL('video-url');

What's new?

[Framework] Android's VideoView component re-developed by Google's ExoPlayer. [Framework] Added several new features to VideoView.