Skip to content

Commit

Permalink
fix修复虎牙播放中断问题)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchuancong committed Feb 26, 2024
1 parent 6eb8100 commit 0011847
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/modules/live_play/live_play_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ class LivePlayController extends StateController {
"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"
};
} else if (currentSite.id == 'huya') {
headers = {
"referer": "https://www.huya.com",
"user-agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0"
};
}
videoController = VideoController(
playerKey: playerKey,
Expand Down

0 comments on commit 0011847

Please sign in to comment.