javascript - Windows media player control embedded into HTML - change of control's size after starting playback -
I use the following HTML to display the media player on the web-page given in IE 8:
& lt; Object Type = "Application / X-MS-Wim" Class = "CLSID: 6 BF 52A 52-394A-11D3-B153-00C4F962AA66" width = "200" height = " 200 "& gt;
The control size remains the same after starting playback.
However, when I dynamically create control in JavaScript, the control increases after the video is started. The size of the video here is the code:
player = Document.edElement ('object'); Player Set Attribute ("Classic", "CLSID: 6 BF 52 A 52-394A-11D3-B153-00C4F942AA 66"); Player.setAttribute ("Type", "Application / X-MS-Wipe"); Player.setAttribute ("width", "200"); Player.setAttribute ("height", "200");
Is this a bug or am I forgetting something? How can I keep the same size of video as the original size of control?
Thank you.
P. s. BTW, if I set the properties of control in javascript different sequence ("class" after "type"), the control does not render. Do you know what the problem might be.
You use a better spofobobed library to embed video, especially if you want JavaScript later on Need to manipulate.
This forum post may be relevant:
- Andrian
Comments
Post a Comment