M
Mad Scientist Jr
I need to embed windows media player in my pocket pc app, and be able
to make it play/pause an mp3 file, and also read the play time (the
min/sec the file is currently paused at). .. i found an faq from MS ,
the excerpt below says you need to use eVC to write a "wrapper" so you
can call WMP for pocket pc from eVB (i assume... that is -HOPE- this
still holds true for VC++/VB.NET for Smart Devices). Anyway, using
VS.NET 2003, can someone outline how to write a wrapper to access WMP
7.1 (which works on my Pocket PC 2000 iPAQ, not sure if WMP 9 would
work) from my Pocket PC program? i am not a c or c++ programmer but I
suppose with the right guidance I can hack this wrapper together and
compile to a DLL. any help appreciated ! and your karma will improve
tenfold!
eMbedded Visual Basic
Q: How can I automate the MediaPlayer from eVB?
A: Unfortunately, eVB cannot automate the MediaPlayer. There are a
couple of alternatives to play media files from eVB:
1. Launch the MediaPlayer with the CreateProcess API with the media
file
as one of the command line parameters.
2. If you're just playing a .wav file, use the PlaySound API.
3. There is a Windows Media Player for Pocket PC SDK available on the
Microsoft website. Unfortunately, it does not support usage directly
from
eVB. There is an eVC sample that downloads with the SDK: "The SDK
also
includes a code sample that demonstrates how to embed the control in a
custom C++ program using Microsoft eMbedded Visual C++®." So you
could
conceivably wrap it in eVC and expose it to eVB.
to make it play/pause an mp3 file, and also read the play time (the
min/sec the file is currently paused at). .. i found an faq from MS ,
the excerpt below says you need to use eVC to write a "wrapper" so you
can call WMP for pocket pc from eVB (i assume... that is -HOPE- this
still holds true for VC++/VB.NET for Smart Devices). Anyway, using
VS.NET 2003, can someone outline how to write a wrapper to access WMP
7.1 (which works on my Pocket PC 2000 iPAQ, not sure if WMP 9 would
work) from my Pocket PC program? i am not a c or c++ programmer but I
suppose with the right guidance I can hack this wrapper together and
compile to a DLL. any help appreciated ! and your karma will improve
tenfold!
eMbedded Visual Basic
Q: How can I automate the MediaPlayer from eVB?
A: Unfortunately, eVB cannot automate the MediaPlayer. There are a
couple of alternatives to play media files from eVB:
1. Launch the MediaPlayer with the CreateProcess API with the media
file
as one of the command line parameters.
2. If you're just playing a .wav file, use the PlaySound API.
3. There is a Windows Media Player for Pocket PC SDK available on the
Microsoft website. Unfortunately, it does not support usage directly
from
eVB. There is an eVC sample that downloads with the SDK: "The SDK
also
includes a code sample that demonstrates how to embed the control in a
custom C++ program using Microsoft eMbedded Visual C++®." So you
could
conceivably wrap it in eVC and expose it to eVB.