| Bill Pickard 2006-01-13, 9:12 pm |
| Hi Stefan,
I was under the weather yesterday so sorry for the delay in response.
Interestingly enough, when I play the second video and omit the .flv from
the path, it works. It also works for successive videos. But, if I attempt
to append the .flv extension on to it, I get error 1000.
Is this a bug?
Bill P.
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Stefan Richter
Sent: Tuesday, January 10, 2006 1:48 AM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] Dynamically setting
FLVPlayback_contentpathatruntimeusing RTMP
Hi Bill,
It makes no difference where the video was recorded.
Could you try the following for me (using FLVPlayback):
Play your first video as before. Then when you want to play the second
video, omit the .flv when you set the contentpath, so instead of ...+
videoName + ".flv"; do
+ videoName;
What happens now?
Stefan
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of
> Bill Pickard
> Sent: 09 January 2006 23:28
> To: 'FlashComm Mailing List'
> Subject: RE: [FlashComm] Dynamically setting FLVPlayback
> _contentpathatruntimeusing RTMP
>
> Hi Stefan,
>
> I built a barebones version to attempt to play video stored
> on the server.
>
> It contains 2 buttons, 2 textfields and the FLVPlayback
> component. I have the required main.asc in the proper place
> on the server.
>
> <code>
> import mx.video.*;
> var NC:NetConnection = new NetConnection(); NC.onStatus =
> function(info) {
> status_txt.text = info.code;
> };
> connect_btn.onPress = function() {
> NC.connect("rtmp://XXX.XX.XXX.XXX/ITAVIDEO");
> };
> function playVideo(videoName) {
> if(NC.isConnected){
> var CP:String =
> "rtmp://XXX.XX.XXX.XXX/ITAVIDEO/" + videoName + ".flv";
> flvPB.contentPath = CP;
> }
> }
> play_btn.onPress = function() {
> var vidToPlay:String = vid_txt.text;
> playVideo(vidToPlay);
> };
> </code>
>
> Using the FLVPlayback component, this works for the first FLV
> I specify, but successive attempts fail.
> I get "failed to play aaa.flv; stream not found" in the
> FlashComm app inspector.
>
> So I decided to try the MediaPlayBack component instead, this
> works fine in the barebones version, but, in my non-barebones
> app, neither component will work!
>
> The only difference between the two apps is that in the
> non-barebones app, the component is embedded into a movieclip
> that's dynamically attached to the stage when the app is
> initialized and the clip holding the component's visibility
> is set to false.
>
> When I play the video in the non-barebones app, I pass the
> videoname to a function which sets vid_holder's visibility to
> true and sets the contentPath of the component... And I get
> nothing. These videos are rather small, and the server is 8
> feet to my right.. so it's not a matter of waiting for it to stream.
>
> In using these components, does it matter whether or not the
> FLV is recorded using FlashCom or not?
>
> I'm clued out...
>
> Thanks for everyone's help so far.
>
> Bill
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of
> Stefan Richter
> Sent: Saturday, January 07, 2006 6:55 AM
> To: 'FlashComm Mailing List'
> Subject: RE: [FlashComm] Dynamically setting FLVPlayback
> _contentpath atruntimeusing RTMP
>
> Question:
> Do you first play a video (and that works) and then try to
> play another (which fails) by updating the contentpath?
>
> Stefan
>
>
>
>
> _contentpath at
> seem to find
> FLV name
> I'd like
> reloaded my app,
> with the
> was using
> but still to
>
>
> =-----------------------------------------------------------
> 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
>
>
>
> =-----------------------------------------------------------
> 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
>
=-----------------------------------------------------------
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
=-----------------------------------------------------------
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
|