开发学院WEB开发综合 利用API播放AVI 阅读

利用API播放AVI

 2006-02-27 11:54:24 来源:WEB开发网   
核心提示:声明:DeclareFunctionmciSendStringLib"winmm.dll"Alias"mciSendStringA"(ByVallpstrCommandAsString,ByVallpstrReturnStringAsString,ByValuReturnLeng
声明:
DeclareFunctionmciSendStringLib"winmm.dll"Alias"mciSendStringA"(ByVallpstrCommandAsString,ByVallpstrReturnStringAsString,ByValuReturnLength
AsLong,ByValhwndCallbackAsLong)AsLong
代码:
DimreturnstringAsString
FileNameAsString
returnstring=Space(127)
FileName="C:\A1.avi"
erg=mciSendString("open"&Chr$(34)&FileName&Chr$(34)&"typeavivideoaliasvideo",returnstring,127,0)
erg=mciSendString("setvideotimeformatms",returnstring,127,0)
erg=mciSendString("playvideofrom0",returnstring,127,0)
'记着关闭!
erg=mciSendString("closevideo",returnstring,127,0)->

Tags:利用 API 播放

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接