主要代码如下:
'‘’‘’可以播放了,中间层 对象要设置成全局, 否则销毁了就没办法用
Dim test As New HttpStreamMiddleTierLib.MiddleTier
Private Sub Command1_Click()
Dim strURL As String
strURL = test.GetUrl("http://f1.flv.kankan.xunlei.com/data/cdn_transfer/demo.hflv")
Player1.Open (strURL)
End Sub
Private Sub Form_Load()
Shell "regsvr32 /s " & App.Path & "/APlayer.dll" '注册 AP DLLShell "regsvr32 /s " & App.Path & "/HttpStreamMiddleTier.dll"
End Sub
希望大家一起学习。