|
Home > Archive > Macromedia Flash Server > April 2005 > Cant play recorded FLV file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Cant play recorded FLV file
|
|
| Michael Kønig 2005-04-28, 7:45 am |
| I am gonna recap because I am really lost, really hope some can help me.
I have two swfs, one that records an flv and stores it on a FCS and one that
plays the recorded FLV of the FCS. I can record the FLV but I cant play it
back. The netConnect and Net Stream work fine in my playbackfile, but
nothing is showen on the screen, think I might be doing something basically
wrong.
I have an embede vidoe component on the stage in both files (live_send) - is
that the right component for playback?
What about the path names in my net connectionss - are they right?
Any help would be appreciated!!!!!
Here are my 2 scripts:
=======
record.swf:
=======
_global.connString = "rtmp://MyIP/recordVideo/myVideo";
doConnect = function () {
client_nc = new NetConnection();
client_nc.onStatus = ncStatus;
client_nc._tl = this;
client_nc.connect(connString);
};
ncStatus = function (nsObj) {
if (nsObj.code == "NetConnection.Connect.Success") {
trace("--->connection accepted");
this._tl.startCam();
}
};
startCam=function(){
var active_cam:Camera = Camera.get();
client_cam = active_cam;
client_cam.onStatus = nsStatus;
live_send.attachVideo(client_cam);
output = new NetStream(client_nc);
output.attachVideo(client_cam);
output.publish("myRecordedFile", "record");
}
doConnect();
=======
play.swf:
=======
_global.connString = "rtmp://MyIP/recordVideo"
doConnect = function () {
client_nc = new NetConnection();
client_nc.onStatus = ncStatus;
client_nc._tl = this;
client_nc.connect(connString);
};
ncStatus = function (nsObj) {
if (nsObj.code == "NetConnection.Connect.Success") {
this._tl.startCam();
}
};
startCam = function () {
var my_ns:NetStream = new NetStream(client_nc);
my_ns.play("myRecordedFile");
live_send.attachVideo(my_ns);
};
doConnect();
________________________________________
_________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Stefan Richter 2005-04-28, 7:45 am |
| Obvious one to check:
Is live_send really the video object you want to attach the NS to? Is =
the
path correct?
Also try attaching first, then play it.=20
Did you say the traces on the server are ok? Make sure you are forcing =
FCS
to play a recorded stream (you had the right parameters in there =
yesterday)
or otherwise you run the risk of the app waiting for a live stream to =
start.
Stefan
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org=20
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of=20
> Michael K=F8nig
> Sent: 28 April 2005 10:58
> To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> Subject: [FlashComm] Cant play recorded FLV file
>=20
> I am gonna recap because I am really lost, really hope some=20
> can help me.
>=20
> I have two swfs, one that records an flv and stores it on a=20
> FCS and one that plays the recorded FLV of the FCS. I can=20
> record the FLV but I cant play it back. The netConnect and=20
> Net Stream work fine in my playbackfile, but nothing is=20
> showen on the screen, think I might be doing something=20
> basically wrong.
>=20
> I have an embede vidoe component on the stage in both files=20
> (live_send) - is that the right component for playback?
>=20
> What about the path names in my net connectionss - are they right?
>=20
> Any help would be appreciated!!!!!
>=20
> Here are my 2 scripts:
>=20
> =3D=3D=3D=3D=3D=3D=3D
> record.swf:
> =3D=3D=3D=3D=3D=3D=3D
> _global.connString =3D "rtmp://MyIP/recordVideo/myVideo";
> doConnect =3D function () {
> client_nc =3D new NetConnection();
> client_nc.onStatus =3D ncStatus;
> client_nc._tl =3D this;
> client_nc.connect(connString);
> };
> ncStatus =3D function (nsObj) {
> if (nsObj.code =3D=3D "NetConnection.Connect.Success") {
> trace("--->connection accepted");
> this._tl.startCam();
> }
> };
> startCam=3Dfunction(){
> var active_cam:Camera =3D Camera.get();
> client_cam =3D active_cam;
> client_cam.onStatus =3D nsStatus;
> live_send.attachVideo(client_cam);
> output =3D new NetStream(client_nc);
> output.attachVideo(client_cam);
> output.publish("myRecordedFile", "record"); } doConnect();
>=20
> =3D=3D=3D=3D=3D=3D=3D
> play.swf:
> =3D=3D=3D=3D=3D=3D=3D
> _global.connString =3D "rtmp://MyIP/recordVideo"
> doConnect =3D function () {
> client_nc =3D new NetConnection();
> client_nc.onStatus =3D ncStatus;
> client_nc._tl =3D this;
> client_nc.connect(connString);
> };
> ncStatus =3D function (nsObj) {
> if (nsObj.code =3D=3D "NetConnection.Connect.Success") {
> this._tl.startCam();
> }
> };
> startCam =3D function () {
> var my_ns:NetStream =3D new NetStream(client_nc);
> my_ns.play("myRecordedFile");
> live_send.attachVideo(my_ns);
> };
> doConnect();
>=20
> ________________________________________
_________________________
> F=E5 alle de nye og sjove ikoner med MSN Messenger=20
> http://messenger.msn.dk/
>=20
>=20
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>=20
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>=20
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Michael Kønig 2005-04-28, 7:45 am |
| Hej Stefan,
Thanks for looking :-)
I changed it back to this and it didnt help:
my_ns.play("myRecordedFile",0,-1,true);
live_stream is not an appropriat name but shouldnt make a differnece right
now...But it is an embedded video object I should use right?
Also tried attaching first....AHHHH
/M
>From: "Stefan Richter" <stefan-fMeCE+ULXElEfu+5ix1nRw@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: "'FlashComm Mailing List'" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>Subject: RE: [FlashComm] Cant play recorded FLV file
>Date: Thu, 28 Apr 2005 11:08:39 +0100
>
>Obvious one to check:
>Is live_send really the video object you want to attach the NS to? Is the
>path correct?
>
>Also try attaching first, then play it.
>
>Did you say the traces on the server are ok? Make sure you are forcing FCS
>to play a recorded stream (you had the right parameters in there yesterday)
>or otherwise you run the risk of the app waiting for a live stream to
>start.
>
>
>Stefan
>
>
>
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
________________________________________
_________________________
Log på MSN Messenger direkte fra nettet http://webmessenger.msn.com/
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Mart Gordon 2005-04-28, 7:45 am |
| the connection in the recording file as you have it is:=20
rtmp://MyIP/recordVideo/myVideo, however, in the playback file it is:=20
"rtmp://MyIP/recordVideo". Should these not be the same?
Mart
Michael K=F8nig wrote:
> I am gonna recap because I am really lost, really hope some can help me=
..
>
> I have two swfs, one that records an flv and stores it on a FCS and=20
> one that plays the recorded FLV of the FCS. I can record the FLV but I=20
> cant play it back. The netConnect and Net Stream work fine in my=20
> playbackfile, but nothing is showen on the screen, think I might be=20
> doing something basically wrong.
>
> I have an embede vidoe component on the stage in both files=20
> (live_send) - is that the right component for playback?
>
> What about the path names in my net connectionss - are they right?
>
> Any help would be appreciated!!!!!
>
> Here are my 2 scripts:
>
> =3D=3D=3D=3D=3D=3D=3D
> record.swf:
> =3D=3D=3D=3D=3D=3D=3D
> _global.connString =3D "rtmp://MyIP/recordVideo/myVideo";
> doConnect =3D function () {
> client_nc =3D new NetConnection();
> client_nc.onStatus =3D ncStatus;
> client_nc._tl =3D this;
> client_nc.connect(connString);
> };
> ncStatus =3D function (nsObj) {
> if (nsObj.code =3D=3D "NetConnection.Connect.Success") {
> trace("--->connection accepted");
> this._tl.startCam();
> }
> };
> startCam=3Dfunction(){
> var active_cam:Camera =3D Camera.get();
> client_cam =3D active_cam;
> client_cam.onStatus =3D nsStatus;
> live_send.attachVideo(client_cam);
> output =3D new NetStream(client_nc);
> output.attachVideo(client_cam);
> output.publish("myRecordedFile", "record");
> }
> doConnect();
>
> =3D=3D=3D=3D=3D=3D=3D
> play.swf:
> =3D=3D=3D=3D=3D=3D=3D
> _global.connString =3D "rtmp://MyIP/recordVideo"
> doConnect =3D function () {
> client_nc =3D new NetConnection();
> client_nc.onStatus =3D ncStatus;
> client_nc._tl =3D this;
> client_nc.connect(connString);
> };
> ncStatus =3D function (nsObj) {
> if (nsObj.code =3D=3D "NetConnection.Connect.Success") {
> this._tl.startCam();
> }
> };
> startCam =3D function () {
> var my_ns:NetStream =3D new NetStream(client_nc);
> my_ns.play("myRecordedFile");
> live_send.attachVideo(my_ns);
> };
> doConnect();
>
> ________________________________________
_________________________
> F=E5 alle de nye og sjove ikoner med MSN Messenger http://messenger.msn=
..dk/
>
>
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Michael Kønig 2005-04-28, 7:45 am |
| I think they should be. I have tryed testing all different possibilities so
I must have copied the script at the wrong time - they are the same now so
unfortunantly that cant be it.....which of course is driving me crazy!
>From: Mart Gordon <mgordon-FpEJLV8oj+BSljaRc5+PrA@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>Subject: Re: [FlashComm] Cant play recorded FLV file
>Date: Thu, 28 Apr 2005 11:29:32 +0100
>
>the connection in the recording file as you have it is:
>rtmp://MyIP/recordVideo/myVideo, however, in the playback file it is:
>"rtmp://MyIP/recordVideo". Should these not be the same?
>
>Mart
>
>Michael Kønig wrote:
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
________________________________________
_________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Michael Kønig 2005-04-28, 7:45 am |
| Was just looking in my Comm App Inspector.
It traces my connection and then writes New NetStream created (stream ID:1)
Playing and resetting myRecordedFile
Started playing myRecordedFile
then about 1-2 sec afterwords it writes
Stopped playing myRecordedFile
Like it thinks it finished playing the movie or is being stoped??
>From: "Michael Kønig" <denlillekoder-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>Subject: Re: [FlashComm] Cant play recorded FLV file
>Date: Thu, 28 Apr 2005 12:31:06 +0200
>
>I think they should be. I have tryed testing all different possibilities so
>I must have copied the script at the wrong time - they are the same now so
>unfortunantly that cant be it.....which of course is driving me crazy!
>
>
> ________________________________________
_________________________
>Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
________________________________________
_________________________
Undgå pop-ups med MSN Toolbar - http://toolbar.msn.dk/ hent den gratis!
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Michael Kønig 2005-04-28, 7:45 am |
| OK - got it to work!
Very strange though
I changed
var my_ns:NetStream = new NetStream(client_nc);
to
my_ns = new NetStream(client_nc);
in the startCam function in the playback file and it works fine!!!!!!
Anyone know why?
>From: "Michael Kønig" <denlillekoder-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>Subject: Re: [FlashComm] Cant play recorded FLV file
>Date: Thu, 28 Apr 2005 12:54:27 +0200
>
>Was just looking in my Comm App Inspector.
>
>It traces my connection and then writes New NetStream created (stream ID:1)
>Playing and resetting myRecordedFile
>Started playing myRecordedFile
>
>then about 1-2 sec afterwords it writes
>Stopped playing myRecordedFile
>
>Like it thinks it finished playing the movie or is being stoped??
>
>
>
> ________________________________________
_________________________
>Undgå pop-ups med MSN Toolbar - http://toolbar.msn.dk/ hent den gratis!
>
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
________________________________________
_________________________
Del din verden med MSN Spaces http://spaces.msn.com
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Stefan Richter 2005-04-28, 7:45 am |
| Have you downloaded the flv from your server and confirmed that it =
contains
the footage that you would expect?
Stefan
=20
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org=20
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of=20
> Michael K=F8nig
> Sent: 28 April 2005 11:54
> To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> Subject: Re: [FlashComm] Cant play recorded FLV file
>=20
> Was just looking in my Comm App Inspector.
>=20
> It traces my connection and then writes New NetStream created=20
> (stream ID:1) Playing and resetting myRecordedFile Started=20
> playing myRecordedFile
>=20
> then about 1-2 sec afterwords it writes
> Stopped playing myRecordedFile
>=20
> Like it thinks it finished playing the movie or is being stoped??
>=20
>=20
> time - they=20
> of course is driving me crazy!
> file it is:=20
> some can help me.
> a FCS and=20
> the FLV but=20
> might be=20
>=20
> ________________________________________
_________________________
> Undg=E5 pop-ups med MSN Toolbar - http://toolbar.msn.dk/ hent=20
> den gratis!
>=20
>=20
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>=20
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>=20
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|
|
|
|