Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-20 14:56:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1ab03d6b0bbf7e9a58aa8afec37af1e9fbe6fe1c
1ab03d6b
1 parent
4c9d31df
fix(useVideoPlayer): 调整流量警告阈值为1000MB以优化蜂窝网络体验
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/composables/useVideoPlayer.js
src/composables/useVideoPlayer.js
View file @
1ab03d6
...
...
@@ -311,7 +311,8 @@ export function useVideoPlayer(props, emit, videoRef, nativeVideoRef) {
const
isOnWifi
=
computed
(()
=>
networkKind
.
value
===
'wifi'
);
const
isOnCellular
=
computed
(()
=>
networkKind
.
value
===
'cellular'
);
const
trafficWarnThresholdBytes
=
200
*
1024
*
1024
;
// 8. 流量警告逻辑
const
trafficWarnThresholdBytes
=
1000
*
1024
*
1024
;
const
needTrafficWarn
=
computed
(()
=>
{
if
(
isOnWifi
.
value
)
return
false
;
...
...
Please
register
or
login
to post a comment