Skip to main content
Version: 7.3.1

Release Notes, 6.16.2

This release focuses on new multimedia features along with a number of fixes.

🚧Minimum required:​

sf-core v4.2.2 🚀
Android :v6.16.2 🚀
iOS: v6.16.2 🚀
UI Editor: v6.15.1
Context: v2.2.10
CLI: v6.15.5
IDE: v7.6.1

Multimedia Crop Component​

The crop component now has an improved user experience and functionality with a new look for the end user.

To use the new component, you need to migrate your current Smartface project by just changing the crop activity node in AndroidManifest.xml;\ from

<activity android:name="com.theartofdev.edmodo.cropper.CropImageActivity" android:theme="@style/Base.Theme.AppCompat" />

to

<activity android:name="io.smartface.android.sfcore.device.multimedia.crop.SFCropActivity" android:screenOrientation="portrait" android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>

Live Media Streaming​

We added LiveMediaPlayer and LiveMediaPublisher components. You can use them to audio and video playback in RTMP/RTMPT/RTSP/HTTP/TCP/UDP/FILE formats.

const LiveMediaPlayer = require("sf-core/ui/livemediaplayer");

page.liveMediaPlayer = new LiveMediaPlayer({
flexGrow: 1,
scaleType: LiveMediaPlayer.ScaleType.ASPECTFIT,
inputUrl: "https://...",
onChange: (params) => {
console.log(params);
},
});

page.layout.addChild(page.liveMediaPlayer);
liveMediaPlayer.start();

You can stream video from camera to rtmp server.

const LiveMediaPublisher = require("sf-core/ui/livemediapublisher");

let liveMediaPublisher = new LiveMediaPublisher({
flexGrow: 1,
outputUrl: "rtmp://....",
onChange: (params) => {
console.log(params);
},
});

page.layout.addChild(page.liveMediaPublisher);
liveMediaPublisher.startPreview();
// Start streaming
liveMediaPublisher.start();

🚧Upgrade minSdkVersion​

Android minSdkVersion changed from 19 to 24.

What's new?​

[Framework] Label component was improved with the Auto-Size feature that automatically resizes text to fit perfectly within its bounds.
[Framework] Added Department, Nickname & Photo properties to the Contact & Share components.
[Framework] Fixed onSearchBegin method triggers by itself
[Framework] Fixed show method crash of Menu on iPad.
[Framework] Multimedia's Crop UI experience & functionality is improved by new cropping library.
[Framework] Sharing the contact over mobile os with special character is fixed
[Framework] Obtaining font size from font component is possible from now on.
[Framework] Added LiveMediaPlayer and LiveMediaPublisher
[Framework] Added supported64BitAbis & supported32BitAbis to retrieve current supported CPU ABIS
[Framework] Fixed an issue with onNotificationClick that causes it to trigger twice