Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mediaplayer object
Message
From
09/08/2008 17:08:28
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01337818
Message ID:
01337832
Views:
18
thanks anyway :) i will use the ocx

>I've used the Windows API to play files before, but unfortunately, I don't have access to that code anymore. I've not needed to do that for quite awhile and I don't remember enough about it to whip up a demo.
>
>>Anyway i'm going to try with that, though i think that the other solution was less "heavvy"
>>
>>
>>>Are you sure you don't want oPlay = CREATEOBJECT("WMPlayer.OCX")
>>>
>>>
>>>>thanks..
>>>>i am going to check
>>>>>On my XP system, it's C:\WINDOWS\system32\wmpdxm.dll. (WM Player version 11)
>>>>>>don't know which one...but the file i was trying to play was a .wav file anyway.
>>>>>>by the way, which is the program called by the code ?
>>>>>>i mean ..wmp.dll or anything else ?
>>>>>>First i tried with a form in which i loaded a windows mediaplayer object , i mean an OLE object and it worked
>>>>>>actually i was trying to skip all that big application I don't need but i had this problem
>>>>>>>>Hi all,
>>>>>>>>I came into a strange problem and I was cought by surprise !!!
>>>>>>>>
>>>>>>>>i launch an application whith these instructions
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>oPlay = CreateObject("Mediaplayer.Mediaplayer")
>>>>>>>>oPlay.filename = "file.mp3"
>>>>>>>>oplay.volume   = lnVolume
>>>>>>>>oPlay.play()
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>well i get the error 1426 : OLE error code 0x800a0005: Unknown COM status code at the last line of code.
>>>>>>>>It is surprising but it works perfectly under Vista!!!! while i get the error under WinXP
>>>>>>>>
>>>>>>>>How come ?
>>>>>>>>
>>>>>>>>Thank you all again
>>>>>>>>Alessio
>>>>>>>
>>>>>>>What version of Media Player on XP? Earlier versions didn't support MP3 by default, you had to add the CODEC.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform