新建
上传
首页
助手
最?/div>
资料?/div>
工具

 

 

 

 

*********************************************** 

 

 

 

'

函数名:

SelPlay 

 

 

 

'

?/p>

  

用:在网页中播放视频

 

 

 

 

'

?/p>

  

数:

strUrl 

----

 

视频地址

 

 

 

 

           strWidth 

---显示视频宽

 

 

 

 

           strHeight 

---显示视频高

 

 

 

 

'*********************************************** 

 

 

 

Sub SelPlay(strUrl,strWidth,StrHeight) 

 

 

 

Dim Exts,isExt 

 

 

 

If strUrl <> "" Then 

 

 

 

   isExt = LCase(Mid(strUrl,InStrRev(strUrl, ".")+1)) 

 

 

 

Else 

 

 

 

   isExt = "" 

 

 

 

End If 

 

 

 

Exts = "avi,wmv,asf,mov,rm,ra,ram" 

 

 

 

If Instr(Exts,isExt)=0 Then 

 

 

 

 Response.write "

非法视频文件

" 

 

 

 

Else 

 

 

 

 Select Case isExt 

 

 

 

  Case "avi","wmv","asf","mov" 

 

 

 

   Response.write "<EMBED id=MediaPlayer src="&a

mp;strUrl&" width="&strWidth&" height="&strHeight&"

 loop=""false"" autostart=""true""></EMBED>" 

 

 

 

  Case "mov","rm","ra","ram" 

 

 

 

   Response.Write "<OBJECT height="&strHeight&

" width="&strWidth&" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020

AFBBCCFA>" 

 

 

 

   Response.Write "<PARAM NAME=""_ExtentX"" V

ALUE=""12700"">" 

 

 

 

   Response.Write "<PARAM NAME=""_ExtentY"" V

ALUE=""9525"">" 

 

 

 

   Response.Write "<PARAM NAME=""AUTOSTART""&nb

sp;V

ALUE=""-1"">" 

 

Ͼλ
新建
上传
首页
助手
最?/div>
资料?/div>
工具

 

 

 

 

*********************************************** 

 

 

 

'

函数名:

SelPlay 

 

 

 

'

?/p>

  

用:在网页中播放视频

 

 

 

 

'

?/p>

  

数:

strUrl 

----

 

视频地址

 

 

 

 

           strWidth 

---显示视频宽

 

 

 

 

           strHeight 

---显示视频高

 

 

 

 

'*********************************************** 

 

 

 

Sub SelPlay(strUrl,strWidth,StrHeight) 

 

 

 

Dim Exts,isExt 

 

 

 

If strUrl <> "" Then 

 

 

 

   isExt = LCase(Mid(strUrl,InStrRev(strUrl, ".")+1)) 

 

 

 

Else 

 

 

 

   isExt = "" 

 

 

 

End If 

 

 

 

Exts = "avi,wmv,asf,mov,rm,ra,ram" 

 

 

 

If Instr(Exts,isExt)=0 Then 

 

 

 

 Response.write "

非法视频文件

" 

 

 

 

Else 

 

 

 

 Select Case isExt 

 

 

 

  Case "avi","wmv","asf","mov" 

 

 

 

   Response.write "<EMBED id=MediaPlayer src="&a

mp;strUrl&" width="&strWidth&" height="&strHeight&"

 loop=""false"" autostart=""true""></EMBED>" 

 

 

 

  Case "mov","rm","ra","ram" 

 

 

 

   Response.Write "<OBJECT height="&strHeight&

" width="&strWidth&" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020

AFBBCCFA>" 

 

 

 

   Response.Write "<PARAM NAME=""_ExtentX"" V

ALUE=""12700"">" 

 

 

 

   Response.Write "<PARAM NAME=""_ExtentY"" V

ALUE=""9525"">" 

 

 

 

   Response.Write "<PARAM NAME=""AUTOSTART""&nb

sp;V

ALUE=""-1"">" 

 

">
新建
上传
首页
助手
最?/div>
资料?/div>
工具

 

 

 

 

*********************************************** 

 

 

 

'

函数名:

SelPlay 

 

 

 

'

?/p>

  

用:在网页中播放视频

 

 

 

 

'

?/p>

  

数:

strUrl 

----

 

视频地址

 

 

 

 

           strWidth 

---显示视频宽

 

 

 

 

           strHeight 

---显示视频高

 

 

 

 

'*********************************************** 

 

 

 

Sub SelPlay(strUrl,strWidth,StrHeight) 

 

 

 

Dim Exts,isExt 

 

 

 

If strUrl <> "" Then 

 

 

 

   isExt = LCase(Mid(strUrl,InStrRev(strUrl, ".")+1)) 

 

 

 

Else 

 

 

 

   isExt = "" 

 

 

 

End If 

 

 

 

Exts = "avi,wmv,asf,mov,rm,ra,ram" 

 

 

 

If Instr(Exts,isExt)=0 Then 

 

 

 

 Response.write "

非法视频文件

" 

 

 

 

Else 

 

 

 

 Select Case isExt 

 

 

 

  Case "avi","wmv","asf","mov" 

 

 

 

   Response.write "<EMBED id=MediaPlayer src="&a

mp;strUrl&" width="&strWidth&" height="&strHeight&"

 loop=""false"" autostart=""true""></EMBED>" 

 

 

 

  Case "mov","rm","ra","ram" 

 

 

 

   Response.Write "<OBJECT height="&strHeight&

" width="&strWidth&" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020

AFBBCCFA>" 

 

 

 

   Response.Write "<PARAM NAME=""_ExtentX"" V

ALUE=""12700"">" 

 

 

 

   Response.Write "<PARAM NAME=""_ExtentY"" V

ALUE=""9525"">" 

 

 

 

   Response.Write "<PARAM NAME=""AUTOSTART""&nb

sp;V

ALUE=""-1"">" 

 

Ͼλ">
Ͼλ
Ŀ

网页视频播放器程序代?通用代码) - 百度文库
新建
上传
首页
助手
最?/div>
资料?/div>
工具

 

 

 

 

*********************************************** 

 

 

 

'

函数名:

SelPlay 

 

 

 

'

?/p>

  

用:在网页中播放视频

 

 

 

 

'

?/p>

  

数:

strUrl 

----

 

视频地址

 

 

 

 

           strWidth 

---显示视频宽

 

 

 

 

           strHeight 

---显示视频高

 

 

 

 

'*********************************************** 

 

 

 

Sub SelPlay(strUrl,strWidth,StrHeight) 

 

 

 

Dim Exts,isExt 

 

 

 

If strUrl <> "" Then 

 

 

 

   isExt = LCase(Mid(strUrl,InStrRev(strUrl, ".")+1)) 

 

 

 

Else 

 

 

 

   isExt = "" 

 

 

 

End If 

 

 

 

Exts = "avi,wmv,asf,mov,rm,ra,ram" 

 

 

 

If Instr(Exts,isExt)=0 Then 

 

 

 

 Response.write "

非法视频文件

" 

 

 

 

Else 

 

 

 

 Select Case isExt 

 

 

 

  Case "avi","wmv","asf","mov" 

 

 

 

   Response.write "<EMBED id=MediaPlayer src="&a

mp;strUrl&" width="&strWidth&" height="&strHeight&"

 loop=""false"" autostart=""true""></EMBED>" 

 

 

 

  Case "mov","rm","ra","ram" 

 

 

 

   Response.Write "<OBJECT height="&strHeight&

" width="&strWidth&" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020

AFBBCCFA>" 

 

 

 

   Response.Write "<PARAM NAME=""_ExtentX"" V

ALUE=""12700"">" 

 

 

 

   Response.Write "<PARAM NAME=""_ExtentY"" V

ALUE=""9525"">" 

 

 

 

   Response.Write "<PARAM NAME=""AUTOSTART""&nb

sp;V

ALUE=""-1"">" 

 



ļ׺.doc޸Ϊ.docĶ

  • ʷϰ
  • 2018´ѧ˼㱨
  • ɶг滮
  • úưȫ֪ʶ̰
  • ִʵָV
  • 彨еľ۹滮Ʒ
  • ҵ˰ۺϰһ
  • 꼶ϲ뷨ȫ̰
  • -ð齨 Ʒ
  • ߼·ϰ⼰

վ

԰ Ͼλ
ϵͷ779662525#qq.com(#滻Ϊ@) ICP20003344-4