[FONT=Verdana]Greetings.
For some reason calling [FONT=“Courier New”]play()[/FONT] on a [FONT=“Courier New”]VideoPlayer[/FONT], [COLOR=“Red”]unless[/COLOR] first an [FONT=“Courier New”]FLVPlayback[/FONT] is declared and instantiated, yields the following error.[/FONT]
[FONT=“Courier New”]VideoError: 1008: VideoPlayer.iNCManagerClass has not been set or its value is invalid: fl.video.NCManager
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::createINCManager()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_load()
at fl.video::VideoPlayer/play()
at FLVPE::Main/init()[C:\My Projects\FLVPlaybackExternal\src\FLVPE\Main.as:48]
at FLVPE::Main()[C:\My Projects\FLVPlaybackExternal\src\FLVPE\Main.as:34][/FONT]
package FLVPE
{
import flash.display.Sprite;
import flash.events.Event;
import fl.video.VideoPlayer;
import fl.video.FLVPlayback;
public class Main extends Sprite
{
private var videoPlayer:VideoPlayer = new VideoPlayer(320, 240);
private var flvp:FLVPlayback = new FLVPlayback();
//Commenting the above line out throws 1008 VideoError...
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
};
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
addChild(videoPlayer);
videoPlayer.play('video.mp4');
};
};
};
Obviously this has something to do with [FONT=“Courier New”]NCManager[/FONT] but the livedocs example doesn’t seem to rely on it.