Skip to main content
Participant
July 3, 2007
Question

NetStream(ing) FLVs in Flash Player 7

  • July 3, 2007
  • 1 reply
  • 169 views
Hello,
Apologies if this has been addressed before (I've read the forums and seen references to this problem but couldn't find any real soultions) anyway here goes -

Using the NetConnection/NetStream method to play FLVs in Flash Player 7* is proving problematic - I'm getting Audio but no Video.

The ActionScript Language Reference quotes NetStream's availability as: Action Script 1.0 and Flash Player 7.
I have tried different combinations of 'publishing settings' (e.g. for Player 7 and Actionscript 1.0 / for Player 7 and ActionScript 2.0 )
The FLV I'm using is compressed with the Flash 8 Video Encoder using the Flash Player 7, Medium Quality Setting, so should be Flash Player 7 compatible.

Here is a sample section of code (pretty much lifted straight from the AS Language Reference example page on NetStream).

my_video = new Video();
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("video_1.flv");

*The reason I'm trying to do this with Flash Player 7 is that I have a client who is a little web savvy (it's true what they say, that a little knowledge can be a dangerous thing!) and is pretty much insisting I use 7, for reasons of ubiquity, even though practically the entire site is made up of 3D FLVs. (Do you think I'd be better off just saying 'it ain't gonna happen in 7 and that 8 is more than ubiquitous enough at this stage'?).

Anyway let me know what any of you think about this.

Thanks,
Justin.


This topic has been closed for replies.

1 reply

Inspiring
July 3, 2007
Do you have a Video object on stage called my_video? (If not, in library, right-click, new Video... then drag it onto stage and give it the name my_video)

Comment out the line that says:
//var my_video = new Video();

then try it.


You can tell your client a couple of things:
1. Targetting flash player 7 means you can't use the on2vp6 codec. So the quality is lower for the same bitrate.

2. This might help too (you probably already did this):
http://www.adobe.com/products/player_census/flashplayer/version_penetration.html
Participant
July 3, 2007
Hey GWD,

thanks for the reply -
Yes, 'my_video' is an instance of a video object - i tried commenting out that line but still no joy in 7.
But everything is working fine in 8 so I think I'll be going back to the client with a couple of stats on the use of 8 (including the codec - cheers)

Thanks,
Justin.