How to access VideoPlayer.load() method that accepts 5 parameters?
Please see my SO question here for details: http://stackoverflow.com/questions/17776642/flvplayback-videoplayer-how-to-access-videoplayer-load-method-that-accepts-5
Basically, in CS4 (or CS6), I want to call the five-argument version of VideoPlayer.load() that is documented here:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/video/VideoPlayer.html#load()
But I keep getting errors along the lines of "incorrect number of arguments."
Steps to reproduce:
- Start a new, blank FLA document (AS3).
- Drag an FLVPlayback component to the stage and name it vPlayer.
- Create a new layer and add Actionscript in frame 1:
import fl.video.*;
var innerPlayer = vPlayer.getVideoPlayer(vPlayer.activeVideoPlayerIndex);
trace(innerPlayer); // "[object VideoPlayer]" appears in Output window
innerPlayer.load( "RTMP://..." ,
0 // totalTime ,
false // isLive ,
60 // startTime ,
10 // duration );
This should give me a ten-second clip starting from the one-minute mark, but I keep getting errors like
ArgumentError: Error #1063: Argument count mismatch on fl.video::VideoPlayer/load(). Expected 1, got 5.