flyingbits
07-19-2005, 05:24 PM
I'm attempting to update my embedded windows media from 7 to 9/10. There are a number of <param 's that are no longer valid with 9/10. One of them is the "transparentAtStart" property.
I use this property to expose a gif file (placed in the background) that imitates "loading" until the media starts to play. This was a great way to eliminate the Windows animation that was present with version 7 and replace it with my own animated gif.
Win Player 9 does not use an animation that tells the viewer that the media is loading and it will not support the transparancy property that allowed my gif to show up prior to the media playing. Instead the viewer sees a black screen that gives no indication that anything is loading. I know that I can allow the "buffering" property to be added to my embed, but this would mean altering the size of my media play area -- and that's a pain.
Microsoft supplies a work around for this issue. I just can't figure out how to make it work. Here's the info that Microsoft supplies:
----------
TransparentAtStart Property
You can use the 9 Series or later object model Player.uiMode property with a value of "invisible" to mimic this behavior. Your code should follow these basic steps:
Position your background image on your Web page to be aligned with the Player control.
Set the Player.uiMode property to "invisible".
In script, handle the PlayStateChange event. In the event handler, test the playState property to determine the current state.
When the play state equals 3 (playing), change the value for uiMode to the desired setting.
-----
I understand the first part up to "invisible" It's the scripting "PlayStateChange" that I find confusing. Could someone please help me with this. A sample of working script would be extremely helpful. I've spent soooo much time looking for an answer.
Thanks in advance..
I use this property to expose a gif file (placed in the background) that imitates "loading" until the media starts to play. This was a great way to eliminate the Windows animation that was present with version 7 and replace it with my own animated gif.
Win Player 9 does not use an animation that tells the viewer that the media is loading and it will not support the transparancy property that allowed my gif to show up prior to the media playing. Instead the viewer sees a black screen that gives no indication that anything is loading. I know that I can allow the "buffering" property to be added to my embed, but this would mean altering the size of my media play area -- and that's a pain.
Microsoft supplies a work around for this issue. I just can't figure out how to make it work. Here's the info that Microsoft supplies:
----------
TransparentAtStart Property
You can use the 9 Series or later object model Player.uiMode property with a value of "invisible" to mimic this behavior. Your code should follow these basic steps:
Position your background image on your Web page to be aligned with the Player control.
Set the Player.uiMode property to "invisible".
In script, handle the PlayStateChange event. In the event handler, test the playState property to determine the current state.
When the play state equals 3 (playing), change the value for uiMode to the desired setting.
-----
I understand the first part up to "invisible" It's the scripting "PlayStateChange" that I find confusing. Could someone please help me with this. A sample of working script would be extremely helpful. I've spent soooo much time looking for an answer.
Thanks in advance..