Skip to content

Commit

Permalink
更新播放器
Browse files Browse the repository at this point in the history
  • Loading branch information
xioxin committed Jan 25, 2018
1 parent cb07a90 commit 291e974
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 63 deletions.
79 changes: 31 additions & 48 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DanMuPlayer
15 changes: 1 addition & 14 deletions biliATV/biliModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,7 @@ this.isTypeSupported = window.MediaSource.isTypeSupported;

let videoQuality = 80
let setQualityCode = """
window.localStorage.setItem('bilibili_player_settings',JSON.stringify((function(s){
if(!s){
s = {setting_config:{defquality:'\(videoQuality)'}};
console.log('setconfig',s);
return ;
}else{
s = JSON.parse(s);
if(typeof s != "object") s = {};
if(!s.setting_config)s.setting_config = {};
s.setting_config.defquality = '\(videoQuality)';
console.log('setconfig',s);
return s;
}
})(window.localStorage.getItem('bilibili_player_settings'))));
window.localStorage.removeItem('bilibili_player_settings');
""";

//设置清晰度;
Expand Down

0 comments on commit 291e974

Please sign in to comment.