You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no sound when I use chewie to play the video. This is an ipv6 online live broadcast address, and the video format is m3u8/mpeg. However, it can be played normally in browsers or other players. I don't know if it's because of the encoding or the audio track, because when I change the video address, it plays normally. My dart version: 3.1, chewie:1.7.2, video_player:2.8.5. I also tried changing to other versions, but it didn't work. please help me,thank you。
There is no sound when I use chewie to play the video. This is an ipv6 online live broadcast address, and the video format is m3u8/mpeg. However, it can be played normally in browsers or other players. I don't know if it's because of the encoding or the audio track, because when I change the video address, it plays normally. My dart version: 3.1, chewie:1.7.2, video_player:2.8.5. I also tried changing to other versions, but it didn't work. please help me,thank you。
import 'package:flutter/material.dart';
import 'package:chewie/chewie.dart';
import 'package:video_player/video_player.dart';
class ChewieVideoPage extends StatefulWidget {
ChewieVideoPage({required Key key}) : super(key: key);
@OverRide
_ChewieVideoPageState createState() => _ChewieVideoPageState();
}
class _ChewieVideoPageState extends State {
late VideoPlayerController videoPlayerController;
late ChewieController chewieController;
void initState(){
super.initState();
videoPlayerController=VideoPlayerController.networkUrl(
Uri.parse("http://[2409:8087:7000:20::4]/dbiptv.sn.chinamobile.com/PLTV/88888890/224/3221226463/index.m3u8")
);
chewieController = ChewieController(
videoPlayerController: videoPlayerController,
aspectRatio: 3/2,
autoPlay: true,
);
}
@OverRide
void dispose() {
}
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
}
}
class Home extends StatelessWidget {
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
home: ChewieVideoPage(key: UniqueKey(),),
debugShowCheckedModeBanner: false,
);
}
}
void main(){
runApp(Home());
}
The text was updated successfully, but these errors were encountered: