Project1
标题: AVI播放器,为什么没有视频画面,只有声音? [打印本页]
作者: 战圣王子 时间: 2011-8-2 19:16
标题: AVI播放器,为什么没有视频画面,只有声音?
我想问题出在下面播放视频脚本中?视频编码器有关?到底是AVI的哪种编码器?
下载教程--希望原作者能解决?- #==============================================================================
- # ■ MoviePlayer
- #------------------------------------------------------------------------------
- # 处理视频播放画面的类。
- #==============================================================================
- class MoviePlayer
- #--------------------------------------------------------------------------
- # ● 初始化
- # project_name : 工程名称
- #--------------------------------------------------------------------------
- def initialize(project_name = PROJECT_NAME)
- @sys_timer=SystemTimer.new()
- buffer = "\0\0" * project_name.size
- @project_name = "\0" * project_name.size
-
- $MP_m2w.call(CP_UTF8, 0, project_name, -1, buffer, project_name.size)
- $MP_w2m.call(CP_ACP,0,buffer,-1,@project_name,project_name.size,0,0)
-
- @hWnd = $MP_FindWindowEX.call(0,0,nil,@project_name)
- @hInt = $MP_GetWindowLong.call(@hWnd,GWL_HINSTANCE)
- @class_name = " " * 256
- $MP_GetClassName.call(@hWnd,@class_name,256)
- end
复制代码