Skip to content

Commit

Permalink
fix:bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
moxun33 committed Aug 11, 2024
1 parent 80756de commit 88520ab
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 65 deletions.
7 changes: 5 additions & 2 deletions lib/pages/home/home_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: Moxx
* @Date: 2022-09-13 14:05:05
* @LastEditors: moxun33
* @LastEditTime: 2024-07-29 20:57:13
* @LastEditTime: 2024-08-11 15:51:30
* @FilePath: \vvibe\lib\pages\home\home_controller.dart
* @Description:
* @qmj
Expand Down Expand Up @@ -59,6 +59,9 @@ class HomeController extends GetxController with WindowListener {

void playerConfig() async {
player.setProperty('http_persistent', '0');
player.setDecoders(MediaType.video,
["MFT:d3d=11", "hap", "D3D11", "DXVA", "CUDA", "FFmpeg", "dav1d"]);
player.setProperty('video.avfilter', 'yadif');
}

//hack chat init
Expand Down Expand Up @@ -175,7 +178,7 @@ class HomeController extends GetxController with WindowListener {

void initPlayer() async {
await updateTexture();
player.setDecoders(MediaType.video, ["MFT:d3d=11", "D3D11", "FFmpeg"]);

update();
}

Expand Down
27 changes: 12 additions & 15 deletions lib/pages/home/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: Moxx
* @Date: 2022-09-13 14:05:05
* @LastEditors: moxun33
* @LastEditTime: 2024-07-29 20:59:57
* @LastEditTime: 2024-07-29 21:37:36
* @FilePath: \vvibe\lib\pages\home\home_view.dart
* @Description:
* @qmj
Expand Down Expand Up @@ -90,20 +90,17 @@ class HomePage extends GetView<HomeController> {
children: [
SizedBox(
width: 200,
child: controller.playingUrl
?.tvgLogo !=
null
? CachedNetworkImage(
imageUrl: controller
.playingUrl!
.tvgLogo!,
errorWidget: (context,
url, error) =>
Image.asset(
'assets/logo.png'),
)
: Image.asset(
'assets/logo.png')),
child: CachedNetworkImage(
imageUrl: controller
.playingUrl
?.tvgLogo ??
'',
errorWidget: (context, url,
error) =>
Image.asset(
'assets/logo.png'),
))

/* Text('这里空空如也😊',
style: TextStyle(
color: Colors.purple[300],
Expand Down
22 changes: 10 additions & 12 deletions lib/window/window_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,25 @@ class _WindowTitleState extends State<WindowTitle> {
Widget BarIcon() {
final defIcon = Image.asset(
'assets/logo.png',
height: 15,
width: 20,
height: 25,
);

if (icon.isEmpty) return defIcon;
return CachedNetworkImage(
imageUrl: icon,
height: 16,
width: 20,
height: 30,
errorWidget: (context, url, error) => defIcon,
);
}

@override
Widget build(BuildContext context) {
return Wrap(children: [
BarIcon(),
Text(title, style: TextStyle(color: Colors.white)),
Padding(
padding: const EdgeInsets.only(left: 5, top: 1), child: BarIcon()),
Container(
padding: const EdgeInsets.only(left: 10, top: 7),
child: Text(title, style: TextStyle(color: Colors.white)),
)
]);
}
}
Expand All @@ -119,12 +121,8 @@ Widget WindowTitleBar({String title = 'VVibe'}) {
direction: Axis.horizontal,
children: [
Expanded(
child: Container(
padding: const EdgeInsets.only(
left: 10,
),
child: WindowTitle(title: title),
)),
),
WindowButtons()
],
),
Expand Down
11 changes: 0 additions & 11 deletions playlist/douyu代理.m3u

This file was deleted.

21 changes: 0 additions & 21 deletions playlist/playback.m3u

This file was deleted.

4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ packages:
dependency: "direct main"
description:
name: fvp
sha256: "07b4863915b370af57fdf5c8233c6d4c1c35a1db01f4f76589a89a622e674078"
sha256: "19a605fb32c2ee7a0b594ed51a2dd5fd5e8326bfa287ffd88c3e1ef0289d9afc"
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.22.0"
version: "0.23.0"
get:
dependency: "direct main"
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.6.3
version: 0.6.4

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down Expand Up @@ -54,7 +54,7 @@ dependencies:
web_socket_channel: ^2.3.0
#url_launcher: ^6.1.5
html: ^0.15.2
fvp: ^0.22.0
fvp: 0.23.0
#fvp:
# git:
# url: https://github.com/moxun33/fvp.git
Expand Down

0 comments on commit 88520ab

Please sign in to comment.