Quest: WMP and saving DVD play state?...

B

Brandon Lewis

Hello,

I am working on a project for personal use only that uses WMP control to
play DVDs files and AVIs files. I am running VS.NET 2008 Pro on Vista Home
Premium and I have my project set up to play the DVDs files and AVIs files
correctly and I got the XML Serialization setup to save the play state of
all AVIs play ##% through either when closing application of switching media
and resume again at ##% through when played again... Stopping the AVIs or
100% reset the AVIs play state to the start of AVIs... For AVIs this in
simple because of the fact that AVIs only need a double to get/set the
current position.

DVDs have more detail such as menu and titles and chapters - I am finding no
google search results for this... Now I know the WMP control has the ability
to save current play state using .NET resources(which I am new to - I needed
to played a lot with resources in native Win32API/MFC projects - never
before in .NET) but that ability to save current play state of DVD is only
for saving one DVD play state at a time... But for my app I want to save 1+
DVD play states at a time just as I can store 1+ doubles to hold AVI play
states...

So where should find some info on accessing WMP control ability to save
current DVD's play state using .NET resource and expand that through my own
serialization method save 1+ DVD play states...

Any help here... Let me know...

Brandon
 
B

Brandon Lewis

Well I figured it out in the end and save the state of 1+ DVDs files just as
I can 1+ AVIs files...

One thing was when I was looking into serialization of the WMP's
AxHost.State that was giving me trouble because there is no
AxHost.State.State() for serialization I found info about passing a
BinaryForrmater a StreamingContext instance to do the serialization and that
did finally work...

Second after more google searches it turns out that WMP's AxHost.State is
not the only info store able and DVD state. I after finally figuring out to
search for "DVD bookmark" instead of "DVD play state" I found more info that
this extra info is in the registry under WMP stuff...

Then it was just a matter of reading and writing that info at the correct
time for the correct Item...

Later...

Brandon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top