|
|
@@ -14,7 +14,9 @@
|
|
14
|
14
|
|
|
15
|
15
|
<script type="text/javascript">
|
|
16
|
16
|
function LoadList() {
|
|
17
|
|
- var audioUrl = "@Model.downpath"
|
|
|
17
|
+ @* var audioUrl = "@Model.downpath" *@
|
|
|
18
|
+ @* var audioUrl = "http://121.196.219.217:8020/liuyan/20201130/54990_13255966455_20201130145010.wav" *@
|
|
|
19
|
+ var audioUrl = "http://121.196.219.217:9009/20201127/1012/45136_1_183808.wav"
|
|
18
|
20
|
var strFileName = audioUrl.substring((audioUrl.lastIndexOf('/') + 1));
|
|
19
|
21
|
downloadUrl(audioUrl, strFileName);
|
|
20
|
22
|
|
|
|
@@ -30,13 +32,22 @@
|
|
30
|
32
|
}
|
|
31
|
33
|
|
|
32
|
34
|
function PlayUrl(url) {
|
|
33
|
|
- document.getElementById("divPlist").innerHTML = "<embed id=\"embedPlay\" type=\"audio/mp3\" src=\"" + url + "\" autostart=\"true\" loop=\"false\" />";
|
|
|
35
|
+ var borswer =window.navigator.userAgent.toLowerCase()
|
|
|
36
|
+ if(borswer.indexOf("firefox") > 0){
|
|
|
37
|
+ document.getElementById("divPlist").style.height = "180px"
|
|
|
38
|
+ document.getElementById("divPlist").innerHTML = "<audio id=\"videoPlay\" src=\"" + url + "\" controls=\"controls\" />";
|
|
|
39
|
+ document.getElementById("videoPlay").style.marginTop = "120px"
|
|
|
40
|
+ }else{
|
|
|
41
|
+
|
|
|
42
|
+ document.getElementById("divPlist").innerHTML = "<embed id=\"embedPlay\" type=\"audio/mp3\" src=\"" + url + "\" autostart=\"true\" loop=\"false\" />";
|
|
|
43
|
+ }
|
|
34
|
44
|
}
|
|
35
|
45
|
function OpenPlayUrl(url) {
|
|
36
|
46
|
window.open(url, "_blank", "scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes");
|
|
37
|
47
|
}
|
|
38
|
48
|
function Init() {
|
|
39
|
49
|
var strpath = document.getElementById("txtPath").value;
|
|
|
50
|
+ @* var strpath = "http://121.196.219.217:9009/20201127/1012/45136_1_183808.wav" *@
|
|
40
|
51
|
if(strpath){
|
|
41
|
52
|
var arr = strpath.split('^');
|
|
42
|
53
|
var html = "点击播放<br />";
|
|
|
@@ -69,8 +80,8 @@
|
|
69
|
80
|
<div id="embedText" style="display: none; height:120px; padding:20px">无留言</div>
|
|
70
|
81
|
</div>
|
|
71
|
82
|
<div class="layui-col-md12">
|
|
72
|
|
- <input id="txtPath" value="@Model.downpath" style="display:none;" />
|
|
73
|
|
- <div id="divFileList">@Model.downpath</div>
|
|
|
83
|
+ <input id="txtPath" value="http://121.196.219.217:9009/20201127/1012/45136_1_183808.wav" style="display:none;" />
|
|
|
84
|
+ <div id="divFileList">http://121.196.219.217:9009/20201127/1012/45136_1_183808.wav</div>
|
|
74
|
85
|
</div>
|
|
75
|
86
|
</div>
|
|
76
|
87
|
</div>
|