CSDN博客

img ghostzp

在网页中播放磁盘中的.rm文件

发表于2004/11/3 12:47:00  880人阅读

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 2</title>
</head>

<body>

<embed width="454" height="128" src="rtsp://real000.feifa.net:9191/real_music0/wangf_wf/wangf_wf_05.rm" id="player">
<script>      
function player_play()
{
    document.getElementById("player").DoStop();
   
        var if_play = document.getElementById("rm_path").value.split(".");
       
        if_play = if_play[if_play.length-1].toLowerCase();
       
        if(if_play=="rm")
        {
            document.getElementById("player").SetSource(document.getElementById("rm_path").value);
            document.getElementById("player").DoPlay();
        }


}
</script>
<p align="center">
<input type="file" id="rm_path" size="20">
<br>
<input type="button" value="播 放" onclick="player_play()">
</p>


</body>

</html>


 

阅读全文
0 0

相关文章推荐

img
取 消
img