| Author |
Message |
Dan Schullman
Guest
|
Posted:
Tue Sep 28, 2004 12:10 am Post subject:
unable to add non-strings with IWMEncAttributes.Add() |
|
|
Hello,
I'm unable to add non-string values with IWMEncAttributes.Add() from the WM
Encoder 9 SDK and wonder if I'm doing something wrong or if this is a
bug/restriction with this method?
For example, I'd like to set "WM/EncodingTime" using:
(UInt64) DateTime.UtcNow.ToFileTimeUtc()
and something like "XXX/MyID" using:
Guid.NewGuid()
but I get a System.ArgumentException when I call the Add method. The C#
documentation for the method indicates it takes an Object for the value, but
it sure looks like it's not happy with something other than a String.
Thanks in advance,
Dan S.
|
|
| Back to top |
|
 |
The March Hare [MVP]
Guest
|
Posted:
Tue Sep 28, 2004 12:18 am Post subject:
Re: unable to add non-strings with IWMEncAttributes.Add() |
|
|
On Mon, 27 Sep 2004 16:10:03 -0400, Dan Schullman wrote:
<snip multi-post>
Please do not multi-post. If you do not understand, Thore's introduction
is useful:
New to newsgroups? Read: http://dev.6581.com/newsgroups.html |
|
| Back to top |
|
 |
Dan Schullman
Guest
|
Posted:
Tue Sep 28, 2004 12:33 am Post subject:
Re: unable to add non-strings with IWMEncAttributes.Add() |
|
|
Sorry about the multi-post. I originally posted in the windowsmedia.encoder
newsgroup and then remembered this one, deleted my post (but apparently not
soon enough!) from the other and reposted it here. I'm never quite sure
which one is more appropriate for WM Encoder SDK questions, but figure this
one may have more of a development (vs. user) focus.
That said, anyone have an answer to my original question?!!!
| Quote: | Please do not multi-post. If you do not understand, Thore's introduction
is useful: |
|
|
| Back to top |
|
 |
Chris P. [MVP]
Guest
|
Posted:
Fri Oct 01, 2004 1:08 am Post subject:
Re: unable to add non-strings with IWMEncAttributes.Add() |
|
|
Dan Schullman wrote:
| Quote: | Sorry about the multi-post. I originally posted in the
windowsmedia.encoder newsgroup and then remembered this one, deleted
my post (but apparently not soon enough!) from the other and reposted
it here. I'm never quite sure which one is more appropriate for WM
Encoder SDK questions, but figure this one may have more of a
development (vs. user) focus.
That said, anyone have an answer to my original question?!!!
|
You can only add strings that I'm aware of, despite the parameter being
variant/object. You're best of encoding in a string form that you will be
able to parse later. |
|
| Back to top |
|
 |
|
|
|
|