求:能播放MP4视频格式的网页代码
求:能播放MP4视频格式的网页代码
------解决方案--------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题页</title>
<script language="javascript">
var state;
var varb;
var varfullscreen=0;
function loop()
{
WindowsMediaPlayer.playCount=2;
}
function openfile()
{
var fstr='';
FileBtn.click();
if (FileBtn.value=='')
return;
WindowsMediaPlayer.URL=FileBtn.value;
playerinfo1.innerHTML = '全声道 ';
playerinfo3.innerHTML="<b><font color=green>当前播放文件的路径和名称是: </font></b>"+FileBtn.value;
}
function playerinit()
{
WindowsMediaPlayer.url="unit10.wmv"; //定义你自己的文件
WindowsMediaPlayer.settings.autoStart = false ;
}
function play()
{
//if(WindowsMediaPlayer.URL='')alert('请打开文件');return; onload="playerinit()"
if (WindowsMediaPlayer.controls.isavailable('play'))
{
WindowsMediaPlayer.controls.play();
state=setInterval("updatetime()",1000);
playerinfo.innerHTML = "播放"
varfullscreen=1;
playerinfo2.innerHTML = '音量:'+WindowsMediaPlayer.settings.volume;
}
}
function voldown()
{
if ( WindowsMediaPlayer.settings.volume < 5 )
{
WindowsMediaPlayer.settings.volume = 0;
playerinfo2.innerHTML = "音量:0";
playerinfo1.innerHTML = '沉默中 ';
}
else
{
WindowsMediaPlayer.settings.volume -= 5;
playerinfo2.innerHTML = '音量:'+WindowsMediaPlayer.settings.volume;
playerinfo1.innerHTML = '非静音 ';
}
}
function volup()
{
if ( WindowsMediaPlayer.settings.volume > 95 )
{
WindowsMediaPlayer.settings.volume = 100;
playerinfo2.innerHTML = "音量:100";
playerinfo1.innerHTML = '最大音 ';
}
else
{
WindowsMediaPlayer.settings.volume += 5;
playerinfo2.innerHTML = '音量:'+WindowsMediaPlayer.settings.volume;
playerinfo1.innerHTML = '非静音 ';
}
}
function pause()
{
if (WindowsMediaPlayer.controls.isavailable('pause'))
{
WindowsMediaPlayer.controls.pause();
clearInterval(state);
playerinfo.innerHTML = "暂停";
varfullscreen=1;
}
}
function stop()
{