Posted 9/24/2007 11:16:00 PM. 5 comments
We've had a number of people asking how to turn off AudioPlay in Silverlight published output from Expression Encoder 1.0 nso I thought I'd post about it here. If you think you are never likely to want AutoPlay, or if you are publishing to Silverlight Streaming, the best way is to actually fix this in the Expression Encoder template(s). To do this, open up the following file [nb on Vista, run notepad as administrator]
%programfiles%/Microsoft Expression/Encoder 1.0/Templates/en/<thetemplateyouwanttofix>/startplayer.js
Do a search for autoPlay which should yeild:
autoPlay : true
and replace it with
autoPlay : false
Now save the file. Next time you publish to that template, you should no longer see autoPlay kicking in.
This is something we are going to try to fix more gracefully in the next version.
We have also received feedback on the fact that, when the template loads the media immediately starts to download. This can be a problem when you have a number of players on the same page. Again, we are hoping to provide a solution to this in a future release.