zego_pip 0.0.3 copy "zego_pip: ^0.0.3" to clipboard
zego_pip: ^0.0.3 copied to clipboard

A Flutter Picture-in-Picture (PIP) plugin based on `zego_express_engine`, supporting iOS and Android platforms .

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:zego_pip/zego_pip.dart';

/// player demo
/// create the express engine by zego_pip

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await ZegoPIP().init(
    /// zego_pip internally creates the express engine, listens for events, and logs in to the room
    expressConfig: ZegoPIPExpressConfig(
      create: ZegoPIPExpressCreateConfig(
        // Please fill in your own app id
        appID: ,
        // Please fill in your own app sign
        appSign: ,
      ),
      room: ZegoPIPExpressRoomConfig(
        // Please fill in your own room id
        roomID: 'test_room_id',
        // Please fill in your own room login user info
        userID: 'test_user_id',
        userName: 'test_user_name',
      ),
    ),
  );

  runApp(
    const MaterialApp(
      home: Scaffold(
        // Please fill in your own stream id
        body: Center(child: ZegoPIPVideoView(streamID: 'test_stream_id')),
      ),
    ),
  );
}
1
likes
160
points
57
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A Flutter Picture-in-Picture (PIP) plugin based on `zego_express_engine`, supporting iOS and Android platforms .

Homepage
Repository (GitHub)
View/report issues

Topics

#pip

Documentation

API reference

License

MIT (license)

Dependencies

floating, flutter, plugin_platform_interface, zego_express_engine

More

Packages that depend on zego_pip

Packages that implement zego_pip