transmedika_one_to_one_call 1.0.21 copy "transmedika_one_to_one_call: ^1.0.21" to clipboard
transmedika_one_to_one_call: ^1.0.21 copied to clipboard

Package video call dari Transmedika ini merupakan libary yang digunakan untuk developer untuk memudahkan memanggil fungsi video call dari dokter ke pasien transmedika

transmedika_one_to_one_call #

Transmedika SDK Video Call

Supported Platforms #

  • Android
  • IOS

Functionality #

Feature Android iOS
Audio/Video ✔️ [WIP]

How to Use #

# add this line to your dependencies
transmedika_one_to_one_call: ^1.0.21
import 'package:transmedika_one_to_one_call/one_to_one_page.dart';

Call Screen with parameter #

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:transmedika_one_to_one_call/webrtc/one_to_one_page.dart';
import 'package:transmedika_one_to_one_call/webrtc/profile.dart';

class MyHttpOverrides extends HttpOverrides {
  @override
  HttpClient createHttpClient(SecurityContext? context){
    return super.createHttpClient(context)
      ..badCertificateCallback = (X509Certificate cert, String host, int port)=> true;
  }
}

void main() {
  HttpOverrides.global = MyHttpOverrides();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {

    Profile mySelf = Profile(
        email: "maman@rskp.com",
        fullName: 'TN, MAMAN',
        uuid: '7bfb1588-fc6a-4878-a96f-126cd6a6692c',
        profilePicture: null
    );

    Profile other = Profile(
        email: "dion@rskp.com",
        fullName: 'dr. Dionisius Panji Wijanarko, Sp.B',
        uuid: '42c6145f-8143-4d67-ad30-6f84571e0f65',
        profilePicture: null
    );

    String consultationId = '224';
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: OneToOneScreen(mySelf: mySelf, other: other, consultationId: consultationId)
    );
  }
}

Preview Images #

Conclusion #

have a nice day 🙂

2
likes
0
pub points
3%
popularity

Publisher

unverified uploader

Package video call dari Transmedika ini merupakan libary yang digunakan untuk developer untuk memudahkan memanggil fungsi video call dari dokter ke pasien transmedika

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bloc_concurrency, cached_network_image, cupertino_icons, equatable, flutter, flutter_bloc, flutter_webrtc, fluttertoast, intl, json_annotation, path_provider, shared_preferences, stream_transform, web_socket_channel

More

Packages that depend on transmedika_one_to_one_call