I am using a simple FLVPlayback control in my AS3 document. In that I invoked FLVPlayback's methods like play, seek, and stop. Whenever I use these methods I get "VideoError: 1000: Unable to make connection to server or to find FLV on server" error while publishing the file. If I remove these method call then I am not getting this error.
Note: If I load above published file in another file then I'm not getting this error, however same is not working on LMS.
It will be of great help if someone help me resolve this issue.
Here is my file structure:
- Created movieclip at first frame of main timeline in this movieclip:
- Added FLVPlayback on bottom layer as vPlayer instance name
- Added actions on top frame-
- First frame action is: vPlayer.stop ();
- Second frame actions are: vPlayer.playheadTime = 0; vPlayer.play ();
If I remove all above action then it works well but whenever I include any of the action I get above mentioned error.
If you require any more information, please do let me know.
I added trace that you have mentioned in first frame and here is output:
Player Name :: vPlayer
Player Source :: courseContent/LN_1324634806568/sampleVideo_01.mp4
VideoError: 1000: Unable to make connection to server or to find FLV on server
This is what I added trace as at first frame:
trace ("Player Name :: " + vPlayer.name);
trace ("Player Source :: " + vPlayer.source);
I have placed sample mp4 file at same location where this SWF resides. In this example - "courseContent/LN_1324634806568". For simplicity we can give mp4's file name directly instade of complete path to test this SWF file as standalone.
To play that video I'm playing that movieclip from second frame. I have loader SWF which loads this SWF containing FLVPlayback, and this loader file request to play from file second frame. Whenever loader file loads another SWF, this flvplayback containing SWF file is made invisible and stop at it's first frame.
you don't need anything different in your 2nd frame but you don't need to execute the play() method if your video is already playing so you could use:
p.s. please mark helpful/correct responses.
I did that but it is throwing same error.
There is another code on second frame that I mentioned as playheadTime=0. As I mentioned earlier, that is required since the video page can be viewed another time and it should start from begining.
( Second frame actions are: vPlayer.playheadTime = 0; vPlayer.play (); )