I am getting this error in Firefox 3 when I try to forward the video to any specific point on the timeline:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.jeroenwijering.models::HTTPModel/getOffset()
at com.jeroenwijering.models::HTTPModel/seek()
at com.jeroenwijering.player::Model/seekHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.jeroenwijering.player::Controller/playHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.jeroenwijering.player::View/sendEvent()
at com.jeroenwijering.plugins::Display/clickHandler()
In both FF3 and IE7, the player does not attempt to request a restart of the video stream, i.e. I get 'start=0' requested when I start to play, and no further requests after that.
The embedded script is:
<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=MyVideo.flv&streamer=xmoov.php&config=config.xml');
s1.write('preview');
</script>
The config is simple:
<config>
<autostart>false</autostart>
<backcolor>0x000000</backcolor>
<frontcolor>0xCCCCCC</frontcolor>
<screencolor>0x666666</screencolor>
<volume>50</volume>
<thumbsinplaylist>true</thumbsinplaylist>
</config>
The xmoov.php script has been updated to accept the 'start' parameter.
Any clues what I could be doign wrong? The video does play right the way through.
-- Jason
Sounds like your FLV video container file is missing the metadata array.
Did you post-process it after encoding with FLVMDI, yamdi, or flvtool2 to create and inject the metadata array?