Skip to content

Repository files navigation

planet-kit-flutter

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.

Planet Documentation

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.

Installation

Requirement

  • iOS 12.0 or later
  • Android targetSDKVersion 31 or higher

Add the package

  1. 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}
    
  2. Import planet_kit_flutter to application source code.

    import 'package:planet_kit_flutter/planet_kit_flutter.dart'; 
    

Screen share (Android)

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.

Issues and Inquiries

Please file any issues or inquiries you have to our representative or dl_planet_help@linecorp.com. Your opinions are always welcome.

FAQ

You can find answers to our frequently asked questions in the FAQ section.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages