janus_client_plugin 0.0.1 copy "janus_client_plugin: ^0.0.1" to clipboard
janus_client_plugin: ^0.0.1 copied to clipboard

A new flutter janus client plugin project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:janus_client_plugin_example/video_room_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Janus Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Janus Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  void _entryVideoRoom() {
    Navigator.push(
      context,
      MaterialPageRoute(
        builder: (BuildContext context) => VideoRoomPage()
      )
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: RaisedButton(
          onPressed: _entryVideoRoom,
          child: Text('进入视频会议'),
        ),
      ),
    );
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A new flutter janus client plugin project.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, flutter_webrtc, random_string, web_socket_channel

More

Packages that depend on janus_client_plugin