cdnbye 0.2.0 cdnbye: ^0.2.0 copied to clipboard
CDNBye flutter P2P Engine scales live/vod video streaming by peer-to-peer network using bittorrent-like protocol. Powered by WebRTC Datachannel, this SDK can interconnect with the Web side plug-in of [...]
import 'package:cdnbye_example/pages/customVideoPage.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Video Demo',
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Center(
child: MaterialButton(
color: Colors.blue,
child: Text(
'open',
style: TextStyle(color: Colors.white),
),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
return CustomVideoPlayerPage();
}));
},
),
),
);
}
}