我是 flutter 的新手,我读了一些关于它的内容,我对它有中等了解,我的问题是,我如何从 api 放置实时视频?
import 'package:flutter_webrtc/flutter_webrtc.dart';
.....
final videocolumn = Container(
padding: EdgeInsets.only(top: 5),
width: globals.screenWidth * 0.96,
decoration: BoxDecoration(
borderRadius:BorderRadius.circular(20),
border: Border.all(color: Colors.grey,width: 1.0,),
),
child: Column(
children: [
Container(
height: globals.screenHeight * 0.25,
// get the live video from the api
),
]
),
);
Run Code Online (Sandbox Code Playgroud)
pubspec.yaml
dependencies:
http: ^0.12.2
flutter_section_table_view: ^1.0.3
page_transition: ^1.1.7+6
path_provider: ^1.6.24
cupertino_icons: ^1.0.0
flutter_webrtc: ^0.5.8
flutter:
sdk: flutter
Run Code Online (Sandbox Code Playgroud)
请举例说明使用我的代码
像这样
| 归档时间: |
|
| 查看次数: |
467 次 |
| 最近记录: |