-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
84 lines (72 loc) · 3.8 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<!--
* Copyright (c) 2012, Intel Corporation. All rights reserved.
* File revision: 04 October 2012
* Please see http://software.intel.com/html5/license/samples
* and the included README.md file for license terms and conditions.
-->
<meta name="Copyright" content="© 2012, Intel Corporation. All rights reserved." />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>Using PhoneGap Audio Media</title>
<link rel="stylesheet" href="css/master.css" type="text/css" media="screen" title="no title" charset="utf-8"></link>
<!--License files-->
<link rel="stylesheet" type="text/css" href="license/license.css" />
<script src="license/license.js"></script>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/deviceCheck.js"></script>
<script type="text/javascript" src="js/mediaHandlers.js"></script>
<!--JQuery-->
<link rel="stylesheet" type="text/css" href="js/jquery/html5sample.min.css" />
<link rel="stylesheet" type="text/css" href="js/jquery/jquery.mobile.structure-1.2.0.min.css" />
<script src="js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery.mobile-1.2.0.min.js"></script>
<script type="text/javascript" >
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
document.getElementById("PhonegapVerID").innerHTML += window.device.cordova;
console.log("onDeviceReady: " + document.getElementById("PhonegapVerID").innerHTML);
console.log("*** phoneCheck.android: " + phoneCheck.android);
console.log("*** phoneCheck.ios: " + phoneCheck.ios);
// set initial button state
setButtonState(myMediaState.start);
// check if an existing media file already exist and reset button state
checkMediaRecFileExist();
}
</script>
</head>
<body onload="loadLicenseTxt()">
<div id="container">
<header data-role="header">
<h1>Media Sample v1.0</h1>
</header>
<div id="licensebtnl" onclick="onclickLicenseBtn()"> i </div>
<div id="body">
<div class="subheader" id="PhonegapVerID">Record with PhoneGap version: </div><br />
<div style="padding-left:15pt">
<button ID="startRecID" data-theme="a" data-inline="true" onclick="startRecording()">Record</button>
<button ID="stopRecID" data-theme="a" data-inline="true" onclick="stopRecording()">Stop</button>
<div id="RecStatusID">Status: </div>
<div id="media_rec_pos">Audio position: 0 sec</div>
</div><br />
<div class="subheader" id="PhonegapVerID">Playback Using PhoneGap</div><br />
<div style="padding-left:15pt">
<button ID="startPlayID" data-theme="a" data-inline="true" onclick="playMusic()">Play</button>
<button ID="pausePlayID" data-theme="a" data-role="button" data-inline="true" onclick="pauseMusic()">Pause</button>
<button ID="stopPlayID" data-theme="a" data-role="button" data-inline="true" onclick="stopMusic()">Stop</button>
<div id="PlayStatusID">Status: </div>
<div id="media_pos">Audio position: 0 sec</div>
</div>
</div>
<footer data-role="header">
<h1></h1>
</footer>
</div>
<div id="licensepage" style="display: none">
<div id="licensetext"></div>
<div id="licensebtnq" class="licensebtn" onclick="onclickLicBack()">Back</div>
</div>
</body>
</html>