woohoo! i managed to get pyjd MSHTML video playback working, as well!
(i also have pythonwebkit pyjd working, that was the first one).
the COM interface for IHTMLObjectElement has a member variable
"object". i was trying to add PARAM elements to the object element
(which derives from IHTMLElement so it does actually succeed but
they're all completely ignored).
so instead, i just did this:
obj = DOM.createElement("OBJECT")
obj.type = "application/x-mplayer2"
obj.object.FileName="http://pyjs.org/mshtml_com_rocks.wmv"
obj.object.ShowControls = "true"
and dang me if it actually worked. amazing.
this COM stuff is just... stunning. i wish it was properly available
for linux, and people stopped criticising microsoft for having got
something right.
l.