Skip to content

Commit

Permalink
release v1.0.0-rc9
Browse files Browse the repository at this point in the history
  • Loading branch information
nambuplace committed Aug 3, 2019
1 parent 8d19391 commit 27e7d39
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 20 deletions.
2 changes: 1 addition & 1 deletion htdocs/files/DPlayer.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion htdocs/files/DPlayer.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion htdocs/files/DPlayer.min.js

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions htdocs/files/resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,25 @@

// ウインドウサイズ
$(window).on('load resize',function() {
console.log('resize');
// 1024px以上
if ($(window).width() > 1024){
// ウィンドウを読み込んだ時、リサイズされた時に発動
// 何故か上手くいかないので6回繰り返す
for (var i = 0; i < 8; i++){
// 何故か上手くいかないので8回繰り返す
var result = 0;
while (true){
var WindowHeight = $(window).height() - $('#top').height();
var width = $('#content-wrap').width();
var width = $('section').width();
var height= $('#dplayer').width() * (9 / 16) + 136; // $('#tweet-box').height()
$('section').css('max-width',(width * WindowHeight) / height + "px" );
if (result == (width * WindowHeight) / height) break; // 同じならループを抜ける
if (width < ($(window).width() / 2)){ // widthが変なとき用
$('section').css('max-width', '1250px');
break;
}
result = (width * WindowHeight) / height;
console.log('width: ' + width);
console.log('result: ' + result);
$('section').css('max-width', result + 'px');
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions htdocs/files/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@
scale = 1;
if ($(window).width() < 500){ // スマホ用分岐
fontsize = 19;
subtitle_fontsize = 50;
subtitle_fontsize = 55;
} else {
fontsize = 29;
subtitle_fontsize = 120;
subtitle_fontsize = 125;
}
const data =
(`<svg xmlns='http://www.w3.org/2000/svg' width='${width*scale}' height='${height*scale}'>
Expand Down
8 changes: 4 additions & 4 deletions htdocs/files/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body {
margin: 0px;
}

a:focus{
a:focus {
outline: none;
}

Expand Down Expand Up @@ -44,7 +44,7 @@ input[type="button"]::focus {
z-index: 1;
}

select{
select {
width: 320px;
outline: none;
-moz-appearance: none;
Expand All @@ -67,7 +67,7 @@ select{
border-radius: 3px;
}

select option{
select option {
background-color: #ffffff;
color: #333333;
}
Expand Down Expand Up @@ -134,7 +134,6 @@ img.emoji {
}

section {
/* max-width: 80vw; */
max-width: 1250px;
height: 100%;
margin: auto;
Expand Down Expand Up @@ -523,6 +522,7 @@ td {
width: 100%;
height: 0;
padding-top: 56.25%;
background-color: #000000;
}

#dplayer {
Expand Down
8 changes: 3 additions & 5 deletions htdocs/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,13 @@
if ($_POST['subtitle']) $ini['subtitle'] = $_POST['subtitle'];
if ($_POST['BonDriver']) $ini['BonDriver'] = $_POST['BonDriver'];

// BonDriverのデフォルトを要求されたら
if ($ini['BonDriver'] == 'default'){
// BonDriverのデフォルトを要求される or 何故かBonDriverが空
if ($ini['BonDriver'] == 'default' or empty($ini['BonDriver'])){
if (intval($ini['channel']) >= 100){ // チャンネルの値が100より(=BSか)
$ini['BonDriver'] = $BonDriver_default_S;
} else { // 地デジなら
$ini['BonDriver'] = $BonDriver_default_T;
}
} else { // デフォルトでないなら
$ini['BonDriver'] = $BonDriver_dll[$ini['BonDriver']];
}

// ストリーミング開始
Expand Down Expand Up @@ -290,7 +288,7 @@
<option value="default">デフォルト</option>
<?php } //括弧終了 ?>
<?php foreach ($BonDriver_dll as $i => $value){ //chの数だけ繰り返す ?>
<option value="<?php echo $i; ?>"><?php echo $value; ?></option>
<option value="<?php echo $value; ?>"><?php echo $value; ?></option>
<?php } //括弧終了 ?>
</select>
</div>
Expand Down
2 changes: 1 addition & 1 deletion module.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// 各種モジュール

// バージョン
$version = 'v1.0.0-rc8';
$version = 'v1.0.0-rc9';

// Windows用非同期コマンド実行関数
function win_exec($cmd){
Expand Down
2 changes: 1 addition & 1 deletion stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function stream_start($ch, $sid, $BonDriver, $quality, $encoder, $subtitle){
stream_stop();

// TSTask.exeを起動する
win_exec('start /min '.$tstask_path.' /min /xclient- /udp /port '.$udp_port.' /chspace 0 /sid '.$sid.' /d '.$BonDriver.' /sendservice 1');
win_exec('start /min '.$tstask_path.' /min /xclient- /udp /port '.$udp_port.' /sid '.$sid.' /d '.$BonDriver.' /sendservice 1');

// 変換コマンド切り替え
switch ($encoder) {
Expand Down

0 comments on commit 27e7d39

Please sign in to comment.