-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex_ja.html
96 lines (86 loc) · 4.55 KB
/
index_ja.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=max-device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" href="favicon.png" />
<link rel="stylesheet" type="text/css" href="main.css">
<title>WebTRPP : TimeRoter Pattern Player on the Web</title>
</head>
<body id="body">
<div id="popup">
<div id="popup-inner">
<div id="close-btn" onclick="togglePopup()">✖</div>
<h3>準備</h3>
<p>現在のところ、Google ChromeやEdge等のChromium採用ブラウザにしか対応していません。</p>
<p>使う前に、ブラウザのWeb Bluetoothを有効にしてください ( chrome://flags/#enable-experimental-web-platform-features ) 。一度設定すれば次回以降は不要です。</p>
<h3>使い方</h3>
<ol>
<li>タイムローター用の音声ファイルとcsvファイルを読み込みます</li>
<li>「Buttplugデバイスの接続」ボタンを押し、デバイスをペアリングします</li>
<li>オーディオコントロールの再生ボタンを押します</li>
</ol>
<h3>対応デバイス</h3>
<p>
Buttplugに対応しているデバイス<br />
<a href="https://iostindex.com/?filter0ButtplugSupport=7" target="_blank">リスト</a>
</p>
<h3>動作確認済みデバイス</h3>
<ul>
<li><a target="_blank" href="https://amzn.to/3UMficu">MagicMotion Dante</a></li>
<li><a target="_blank" href="https://amzn.to/3BQ27OK">Lovense Domi2</a></li>
</ul>
<h3>シークバーの幅について</h3>
<p>
スマートフォンなどの画面の幅が狭い環境では音声のシークバーも狭くなり再生位置をコントロールするのが困難なので、対策としてシークバーの幅を調整可能にしてあります。数値のみを入力するとpxの絶対値、%をつけると画面の幅に対する相対値を設定できます。
</p>
<h3>時間差について</h3>
<p>
無線通信の仕様上、デバイスに振動信号を送ってから実際にデバイスが振動するまでに若干のタイムラグがあるため、デフォルトでは0.5秒早めに信号を送信しています。「音声とcsvの時間差」の数値を変更するとこの時間差を調整できます。環境によって時間差は異なるため、適宜調整してください。「時間差テスト用音声とcsvの読み込み」ボタンを押すと、調整用の音声とcsvを読み込むことができます(デフォルトでも読み込み済みになっています)。
</p>
<h3>不具合報告</h3>
<P>リポジトリのIssues 又は <a href="https://twitter.com/monoredgoblins6">https://twitter.com/monoredgoblins6</a> まで</P>
</div>
<div id="bg-black" onclick="togglePopup()"></div>
</div>
<div id="header">
<a style="color: blue; cursor: pointer;" onclick="togglePopup()">使い方</a>
<a href="https://github.com/monoredgoblins/WebTRPP">GitHub</a>
<a href="index.html">English</a>
</div>
<div>
<audio id="audio" ontimeupdate="videoTimeUpdated()" onseeked="audioOnSeeked()" onpause="audioStopped()"
onended="audioStopped()" controls></audio>
</div>
<div class="contents" id="forms">
<div>
音声ファイル:<br />
<input type="file" id="inputAudio" accept="audio/*" onchange="audioInput()">
</div>
<div>
csvファイル:<br />
<input type="file" id="inputFile" accept=".csv" onchange="fileInput()">
</div>
<div>シークバーの幅:
<input id="seekbarWidth" type="text" style="width:4em;" value="100%" onchange="seekbarWidthChanged()">
</div>
<div>
音声とcsvの時間差: <input id="offset" type="text" style="width:3em;" value="0.5" onchange="offsetChanged()" />秒<br>
</div>
<div><button onclick="loadTestPattern()">時間差テスト用音声とcsvの読み込み</button> <span class="credit">Sound by <a
href="https://otologic.jp">OtoLogic</a> (CC BY 4.0)</span></div>
</div>
<hr />
<div class="contents" id="forms">
<div><button type="button" onclick="runDeviceControl();">Buttplugデバイスの接続</button></div>
<div>接続済みデバイス: <span id="device"></span></div>
</div>
<hr />
<div class="contents"><code id="log">ここにButtplugのログが表示されます</code></div>
<script lang="javascript" src="https://cdn.jsdelivr.net/npm/buttplug@1.0.14/dist/web/buttplug.min.js"></script>
<script src="mybuttplug.js"></script>
<script src="timeroterpattern.js"></script>
<script src="vibratoroperator.js"></script>
<script src="main.js"></script>
</html>