|
@@ -123,7 +123,6 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
var topwinHeight = window.screen.height - window.innerHeight + 30; //计算title top 头部
|
|
var topwinHeight = window.screen.height - window.innerHeight + 30; //计算title top 头部
|
|
|
- var isAudioPlay = false;
|
|
|
|
|
$('#wine').css({
|
|
$('#wine').css({
|
|
|
"width": window.screen.width,
|
|
"width": window.screen.width,
|
|
|
"height": window.screen.height - topwinHeight - 20,
|
|
"height": window.screen.height - topwinHeight - 20,
|
|
@@ -430,16 +429,6 @@
|
|
|
$('.weui-mask_transparent').hide()
|
|
$('.weui-mask_transparent').hide()
|
|
|
$('.weui-toast').hide()
|
|
$('.weui-toast').hide()
|
|
|
$('.loading').hide()
|
|
$('.loading').hide()
|
|
|
- $.alert({
|
|
|
|
|
- title: '提示',
|
|
|
|
|
- text: '开始使用云手机',
|
|
|
|
|
- onOK: function () {
|
|
|
|
|
- isAudioPlay = true;
|
|
|
|
|
- $('.weui-mask_transparent').hide();
|
|
|
|
|
- $('.weui-toast').hide();
|
|
|
|
|
- $('.loading').hide();
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -466,7 +455,7 @@
|
|
|
|
|
|
|
|
webSocketWorker.onmessage = function (event) {
|
|
webSocketWorker.onmessage = function (event) {
|
|
|
var input = event.data;
|
|
var input = event.data;
|
|
|
- if (input[0] == 0xff && isAudioPlay) {
|
|
|
|
|
|
|
+ if (input[0] == 0xff) {
|
|
|
decodeAAC(input);
|
|
decodeAAC(input);
|
|
|
}
|
|
}
|
|
|
if (input[0] == 0 && input[1] == 0 && input[2] == 0 && input[3] == 1) {
|
|
if (input[0] == 0 && input[1] == 0 && input[2] == 0 && input[3] == 1) {
|