中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 编程语言 > .NET > 临时文章
C# 调用WINDOWS Media player
作者:未知 时间:2005-07-27 21:53 出处:CSDN 责编:chinaitpower
              摘要:C# 调用WINDOWS Media player

      首先在.NET 2003中的工具栏,添加COM组件Windows Media player.然后托到WIN窗体中.

    属性iuMode  设置控件的UI状态.

  

This property is a read/write String.

ValueDescriptionAudio exampleVideo example
invisiblePlayer is embedded without any visible user interface (controls, video or visualization window).(Nothing is displayed)(Nothing is displayed)
nonePlayer is embedded without controls, and with only the video or visualization window displayed.uiMode="none" with audio uiMode="none" with video
miniPlayer is embedded with the status window, play/pause, stop, mute, and volume controls shown in addition to the video or visualization window.uiMode="mini" with audio uiMode="mini" with video
fullDefault. Player is embedded with the status window, seek bar, play/pause, stop, mute, next, previous, fast forward, fast reverse, and volume controls in addition to the video or visualization window.uiMode="full" with audio uiMode="full" with video
customPlayer is embedded with a custom user interface. Can only be used in C++ programs.(Custom user interface is displayed.)(Custom user interface is displayed.)

URL属性,打开要播放的文件,可以是超链接,或本地文件路径.

controls属性.这个属性很重要,完成了对当前播放媒体的控制.

The Controls object provides a way to manipulate the playback of media using the following properties and methods.

但可能与C#的一个属性名冲天突,在对象引入后找不到这个属性,不知道有没有其他途径得到Controls 对象.

Controls对象的主要功能:

MethodDescription
fastForwardStarts fast play of the media item in the forward direction.
fastReverseStarts fast play of the media item in the reverse direction.
getAudioLanguageDescriptionRetrieves the description for the audio language corresponding to the specified index.
getAudioLanguageIDRetrieves the LCID for a specified audio language index.
getLanguageNameRetrieves the name of the audio language with the specified LCID.
next Sets the current item to the next item in the playlist.
pause Pauses the playing of the media item.
play Causes the media item to start playing.
playItemCauses the current media item to start playing, or resumes play of a paused item.
previous Sets the current item to the previous item in the playlist.
stepCauses the current video media item to freeze playback on the next frame.
stop                                                                
Stops the playing of the media item.


关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有