C# 调用WINDOWS Media player
2005-07-24 23:23
453 查看
首先在.NET 2003中的工具栏,添加COM组件Windows Media player.然后托到WIN窗体中.
属性iuMode 设置控件的UI状态.
This property is a read/write String.
URL属性,打开要播放的文件,可以是超链接,或本地文件路径.controls属性.这个属性很重要,完成了对当前播放媒体的控制.
The Controls object provides a way to manipulate the playback of media using the following properties and methods.
但可能与C#的一个属性名冲天突,在对象引入后找不到这个属性,不知道有没有其他途径得到Controls 对象.
Controls对象的主要功能:
Stops the playing of the media item.
属性iuMode 设置控件的UI状态.
This property is a read/write String.
Value | Description | Audio example | Video example |
invisible | Player is embedded without any visible user interface (controls, video or visualization window). | (Nothing is displayed) | (Nothing is displayed) |
none | Player is embedded without controls, and with only the video or visualization window displayed. | ||
mini | Player is embedded with the status window, play/pause, stop, mute, and volume controls shown in addition to the video or visualization window. | ||
full | Default. 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. | ||
custom | Player is embedded with a custom user interface. Can only be used in C++ programs. | (Custom user interface is displayed.) | (Custom user interface is displayed.) |
The Controls object provides a way to manipulate the playback of media using the following properties and methods.
但可能与C#的一个属性名冲天突,在对象引入后找不到这个属性,不知道有没有其他途径得到Controls 对象.
Controls对象的主要功能:
Method | Description |
fastForward | Starts fast play of the media item in the forward direction. |
fastReverse | Starts fast play of the media item in the reverse direction. |
getAudioLanguageDescription | Retrieves the description for the audio language corresponding to the specified index. |
getAudioLanguageID | Retrieves the LCID for a specified audio language index. |
getLanguageName | Retrieves 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. |
playItem | Causes 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. |
step | Causes the current video media item to freeze playback on the next frame. |
stop |
相关文章推荐
- C#调用WindowsMediaPlayer控件实现音乐播放(一)
- C#调用Windows Media Player制作播放器
- C# 调用Windows Media Player程序
- C#调用Windows Media Player制作播放器
- C#基于WindowsMediaPlayer实现音视频文件播放器
- VFP调用Windows Media Player控件播放音乐、视频等
- Java通过Ole调用Windows Media Player,部分控件属性调用方法
- C#窗体程序Windows Media Player组件之播放功能
- Windows Media Player控件属性及方法(c#)
- C# Windows Media Player控件的常用属性及方法
- C#-WinForm-简单的音频播放器(基于WindowsMediaPlayer控件)(一)
- C# WindowsMediaPlayer 的一些用法实例
- C# Windows Media Player操作
- Windows Media Player在页面中调用的常用属性和方法
- js 调用windows media player 播放器
- C#中使用Windows Media Player播放音乐的方法
- c#.NET winform 利用windows media player播放视频,循环播放视频
- C#Windows Media Player控件
- C# windows media player详细用法(最全面)
- C# Winform WindowsMediaPlayer控件