LINE Planet is a cloud-based real-time communications platform as a service (CPaaS) that helps you build a voice and video call environment. With LINE Planet, you can integrate call features into your service at minimum cost.
LINE Planet Documentation provides additional resources to help you integrate LINE Planet into your service. These resources include LINE Planet specifications, developer guides for each client platform, and server API references.
- iOS 12.0 or later
- Android targetSDKVersion 31 or higher
-
In
pubspec.yaml, add the following lines. Replace{PLANET_KIT_VERSION}with the desired PlanetKit-Flutter version (e.g., v0.6.0).dependencies: flutter: sdk: flutter planet_kit_flutter: git: url: git@github.com:line/planet-kit-flutter.git ref: {PLANET_KIT_VERSION} -
Import
planet_kit_flutterto application source code.import 'package:planet_kit_flutter/planet_kit_flutter.dart';
Screen share captures the screen from a foreground service, which Android requires the host app to declare. Without the entries below, starting screen share fails at runtime. Add them to your app's android/app/src/main/AndroidManifest.xml:
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<application>
<service
android:name="com.example.planet_kit_flutter.screenshare.PlanetKitScreenShareService"
android:foregroundServiceType="mediaProjection"
android:exported="false" />
</application>Nothing else is needed on the app side: the plugin creates its own notification channel, posts the foreground-service notification, and requests the screen-capture permission when screen share starts.
Start and stop screen share with startMyScreenShare() and stopMyScreenShare() on PlanetKitCall or PlanetKitConference. This is Android-only — on iOS, startMyScreenShare() returns false.
Please file any issues or inquiries you have to our representative or dl_planet_help@linecorp.com. Your opinions are always welcome.
You can find answers to our frequently asked questions in the FAQ section.