-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from xiaoyaocz/dev
Release 1.2.2
- Loading branch information
Showing
6 changed files
with
56 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"version": "1.2.1", | ||
"version_num": 10201, | ||
"version_desc": "1. 播放器增加兼容模式\n2. 修改虎牙直播间标题获取 #48\n3. 修复虎牙直播播放问题 #71\n4. 直播间全屏增加刷新按钮 #42\n5. 修复哔哩哔哩部分直播间无法观看问题 #59\n6. 修复弹幕默认开关设置无效问题 #65\n7. 增加进入直播间自动全屏选项 #41\n8. 增加弹幕关键词屏蔽功能 #70\n9. 增加双击全屏功能 #56\n10. 关注列表支持导入导出 #19", | ||
"version": "1.2.2", | ||
"version_num": 10202, | ||
"version_desc": "1. 修复进入后台自动暂停#89,#88,#85,#77\n2. 哔哩哔哩优选非PCDN链接\n3. 修复弹幕描边设置不生效 #81", | ||
"prerelease":false, | ||
"download_url": "https://github.com/xiaoyaocz/dart_simple_live/releases" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -330,11 +330,13 @@ class LiveRoomController extends BaseController { | |
|
||
void setPlayer() async { | ||
currentUrlInfo.value = "线路${currentUrl + 1}"; | ||
errorMsg.value = ""; | ||
Map<String, String> headers = {}; | ||
if (site.id == "bilibili") { | ||
headers = { | ||
"referer": "https://live.bilibili.com", | ||
"user-agent": "Mozilla/5.0 BiliDroid/1.12.0 ([email protected])" | ||
"user-agent": | ||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.188" | ||
}; | ||
} | ||
playerLoadding.value = true; | ||
|
@@ -384,7 +386,7 @@ class LiveRoomController extends BaseController { | |
errorStream = player.stream.error.listen((event) { | ||
Log.w(event); | ||
// 切换清晰度时会触发此事件,暂时不做处理 | ||
// mediaError(); | ||
mediaError(); | ||
}); | ||
|
||
endStream = player.stream.completed.listen((event) { | ||
|
@@ -415,7 +417,7 @@ class LiveRoomController extends BaseController { | |
|
||
void mediaError() { | ||
if (playUrls.length - 1 == currentUrl) { | ||
liveStatus.value = false; | ||
//liveStatus.value = false; | ||
errorMsg.value = "播放失败"; | ||
//Log.w(player.state..errorDescription ?? ""); | ||
} else { | ||
|
@@ -616,6 +618,9 @@ class LiveRoomController extends BaseController { | |
value: i, | ||
groupValue: currentUrl, | ||
title: Text("线路${i + 1}"), | ||
secondary: Text( | ||
playUrls[i].contains(".flv") ? "FLV" : "HLS", | ||
), | ||
onChanged: (e) { | ||
Get.back(); | ||
currentUrl = i; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters