|
返回>Script程序语言论坛 2010-1-31 8:28:41 来自:song7894ps 快速回复 添加新话题 |
主题内容:
请问各位大大知道用c#该怎么取得.mov档资讯?
例如:来源 格式 影片(格/秒) 播放(格/秒) 资料大小原来大小:480*270px
以上这些资料...
我是用过 AxWindowsMediaPlayer 类别
但似乎不能支援到.mov档...
谢谢大大~
|
|
回应:2010-1-31 | 用户:ailang9 | 你能评论 |
IP:113.94.*.* | 1楼 |
|
|
Joe
How do I get access to file details as displayed in Windows Explorer, files size, type, duration, ect http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/0fb22189-a927-445f-a46e-7bb051652378/
这篇有帮助吗...
chiyuan
Joe大大 似乎不行耶
FileInfo f = new FileInfo("C:\\9800001001.mov"); Response.Write(f.Attributes + "<br/>"); Response.Write(f.CreationTime + "<br/>"); Response.Write(f.Extension + "<br/>"); Response.Write(f.FullName + "<br/>"); Response.Write(f.Length + "<br/>");
跟 的属性落差蛮大 格式 影片(格/秒) 播放(格/秒) 资料大小原来大小:480*270px
还是谢谢 Joe 感谢你这么快 ~
蹂躏
Hi, 参考 Windows Media Player控件研究 http://www.cnblogs.com/jerrold1108cn/articles/1428286.html
你 的应该是 axWindowsMediaPlayer1.Ctlcontrols.Rate
其它的 是没看到 可能 透过别的方式取得
chiyuan
to 蹂躏 :
axWindowsMediaPlayer 似乎不支援.mov文件的播放...> <"
加进去后 按play都不理 ~
currentMedia.getItemInfo(const string); 获取当前媒体信息"Title"=媒体标题,"Author"=艺术家,"Copyright"=版权信息,"Description"=媒体内容描述,"Duration"=持续时间(秒),"FileSize"=文件大小,"FileType"=文件类型,"sourceURL"=原始地址
除了 axWindowsMediaPlayer1.currentMedia.getItemInfo("Title") axWindowsMediaPlayer1.currentMedia.getItemInfo("FileType") axWindowsMediaPlayer1.currentMedia.getItemInfo("sourceURL") 有资料
其余都无....
|
|
|
|
|