wmp

Delphi: play memorystream in wmp activex

走远了吗. 提交于 2019-12-11 07:49:11
问题 I'm new to this site and I hope someone can help me with my problem. I am using a Delphi language. And I would want to play a memorystream to windowsmediaplayer ActiveX. Is this possible? If it is, can someone give me a hint or something.. sample code maybe. Thanks. 回答1: I can't speak for Delphi 2009, but earlier version of Delphi didn't support this with the TMediaPlayer component. What you could do is write the MemoryStream to a temporary file, then have the TMediaPlayer load that file.

Reference to wmp.dll (\windows\system32\wmp.dll)

别等时光非礼了梦想. 提交于 2019-12-11 01:02:10
问题 Can I use a reference to wmpLib.ddl / wmp.dll (\windows\system32\wmp.dll) in a commercial application? I am using Visual Studio 2008 Express edition. I have to deliver that DLL. 回答1: To add to Darins reply: I don't think that you can simply deploy wmp.dll with your product (I'm guessing you're thinking about doing that from the last sentence "I have to deliver that dll.")! You will have to create an installer that checks whether the correct version of the DLL is present on the target system

Stream video to Windows Media Player over http

眉间皱痕 提交于 2019-12-10 21:02:51
问题 Trying to stream video to windows media player from a servlet (progressive download style). The streaming works, but I have some weird behavior, which I would like to rule out is not caused by a problem in my implementation. When using WMP to open an url from the servlet, WMP will perform a total of 4 http-get requests for the same resource, but with slightly different headers each time. The connection for the first 3 requests seems to be closed as soon as the request (including headers) have

How to attach event to dynamic object or COM object

大憨熊 提交于 2019-12-10 11:06:10
问题 I think this article has the same problem with me. However, there's no workable solution for my case. I'm using Windows Media Player ActiveX in my program. For some reason, I don't want to add a reference of it and convert to AxHost automatically by IDE. I create the instance by Activator and ProgID protected const string WMP_PROG_ID = "WMPlayer.OCX.7"; private dynamic _wmp; protected virtual bool init(){ try{ _wmp = Activator.CreateInstance(Type.GetTypeFromProgID(WMP_PROG_ID)); } catch{

AccessViolation exception when form with AxWindowsMediaPlayer closed

依然范特西╮ 提交于 2019-12-10 10:22:17
问题 I have a AxWMPLib.AxWindowsMediaPlayer on a form. When I close the form, I get "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." exception. It is OK with hiding the form but not with closing. Everything's fine when the component is removed from the form. This is Winforms .Net3.5. Any help appreciated. 回答1: This was happening to me, and it was when closing the form during a key press. Seems the WMP control will cause problems if it has a

iPhone compressed audio formats that will play on Windows Media player

戏子无情 提交于 2019-12-08 11:08:27
问题 I have to record audio on an iPhone that will play back on Windows Media Player, using no non-standard codecs; that is, using no codecs that don't already ship with WMP. (Corporate requirement.) The audio has to go base-64 to a server, so I need to get the audio size as small as possible. Even at 8Kb recording frequency, AIFF files take ginormous amounts of space. I can't seem to find a compressed AIFF format that WMP will swallow. 回答1: Best bet is to write WAV files with ulaw or alaw

How to attach event to dynamic object or COM object

こ雲淡風輕ζ 提交于 2019-12-06 05:03:26
I think this article has the same problem with me. However, there's no workable solution for my case. I'm using Windows Media Player ActiveX in my program. For some reason, I don't want to add a reference of it and convert to AxHost automatically by IDE. I create the instance by Activator and ProgID protected const string WMP_PROG_ID = "WMPlayer.OCX.7"; private dynamic _wmp; protected virtual bool init(){ try{ _wmp = Activator.CreateInstance(Type.GetTypeFromProgID(WMP_PROG_ID)); } catch{ return false; } return true; } I was tried to do this by Reflection , but I found that dynamic is suitable

AccessViolation exception when form with AxWindowsMediaPlayer closed

纵饮孤独 提交于 2019-12-05 23:59:32
I have a AxWMPLib.AxWindowsMediaPlayer on a form. When I close the form, I get "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." exception. It is OK with hiding the form but not with closing. Everything's fine when the component is removed from the form. This is Winforms .Net3.5. Any help appreciated. This was happening to me, and it was when closing the form during a key press. Seems the WMP control will cause problems if it has a key event to process. Example with Form.KeyPreview = True Sub Form_KeyDown(e As KeyEventArgs)

Problem with Chrome - embed windows media player

你说的曾经没有我的故事 提交于 2019-12-02 01:11:27
问题 I am having a problem. I embed WMP in my page, and I need to hide buttons from player. I make it to hide them in IE and FF, but I can't make it happen in Google Chrome. Here is the code <object id="MediaPlayer1" width="690" height="500" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" > <param

Problem with Chrome - embed windows media player

风格不统一 提交于 2019-12-01 21:36:39
I am having a problem. I embed WMP in my page, and I need to hide buttons from player. I make it to hide them in IE and FF, but I can't make it happen in Google Chrome. Here is the code <object id="MediaPlayer1" width="690" height="500" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" > <param name="FileName" value='<%= GetSource() %>' /> <param name="AutoStart" value="True" /> <param name=