|
|
@@ -12,7 +12,6 @@ import '../styles/totast.dart';
|
|
|
import '../net/HttpManager.dart';
|
|
|
import '../net/Result.dart';
|
|
|
import 'TipList.dart';
|
|
|
-import '../plugins/ScreenStramPlugin.dart';
|
|
|
import '../model/UserInfo.dart';
|
|
|
import '../redux/AppState.dart';
|
|
|
|
|
|
@@ -206,28 +205,6 @@ class _HomePageState extends State<HomePage> {
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
- Positioned(
|
|
|
- bottom: 60,
|
|
|
- left: 0,
|
|
|
- child: FlatButton(
|
|
|
- child: Text("stream"),
|
|
|
- onPressed: () async {
|
|
|
- bool success = await ScreenStreamPlugin.start('rtmp://49.4.66.233:1935/myapp/' + userInfo.id.toString() + '?playerInfoId=' + '1234');
|
|
|
- print('stream screen:' + success.toString());
|
|
|
- },
|
|
|
- ),
|
|
|
- ),
|
|
|
- Positioned(
|
|
|
- bottom: 60,
|
|
|
- right: 0,
|
|
|
- child: FlatButton(
|
|
|
- child: Text("stop stream"),
|
|
|
- onPressed: () async {
|
|
|
- bool success = await ScreenStreamPlugin.stop();
|
|
|
- print('stop stream screen:' + success.toString());
|
|
|
- },
|
|
|
- ),
|
|
|
- )
|
|
|
],
|
|
|
),
|
|
|
),
|