Welcome to WebmasterWorld Guest from 54.227.52.24

Forum Moderators: incrediBILL

Message Too Old, No Replies

use WMV in FF and detect PlayStateChange

     

jwstockwell

12:11 am on Oct 27, 2010 (gmt 0)



Hello all

I need to detect PlayStateChange when a user is browsing with FF. In IE it's no problem.

The purpose is to run a WMV once and when it is done, detect that it is finished and let the user proceed (this is a part of a survey, they've already agreed to take the survey, so please no lectures about making a user do something ;)

I have probably looked at and tried 5-10 snippets(all I can find) - can't get any to work (including an old one on microsoft.com).

Has anyone done this successfully?

TIA

tedster

2:42 am on Oct 27, 2010 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Here's what my research turned up:

For firefox, I have found out a ugly way, it will work just only remove the codes "for="MediaPlayer".

The codes as following.

//for firefox, for PlayStateChange
<SCRIPT event="PlayStateChange(NewState)">
function OnDSPlayStateChangeEvt(NewState)
{
//add your code here.
}
</SCRIPT>

[social.msdn.microsoft.com...]
 

Featured Threads

Hot Threads This Week

Hot Threads This Month