Skip to main content
Participant
June 1, 2011
Question

F4v has an invalid file structure on Firefox

  • June 1, 2011
  • 3 replies
  • 2304 views

Hi, i'm trying to play external videos using netStream.

My script work fine with .flv files, but with .f4v it doesn't work with Firefox (i've tried versions 3.6 and 4): I get NetStream.Play.FileStructureInvalid

F4v files was exported using Media Encoder from Premiere.

Here's a part of my code:

ncConnection = new NetConnection();
ncConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
ncConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

ncConnection.connect(null);

nsStream = new NetStream(ncConnection);
nsStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nsStream.client = this;
nsStream.bufferTime = BUFFER_TIME;

nsStream.play("http://www.domain.com/myVideo.f4v");

Does anybody know what causes this problem?

Thank you!

This topic has been closed for replies.

3 replies

Inspiring
June 2, 2011

By the way, there are massive numbers of problems with Flash 10.1 and 10.2 (especially) and Firefox 4. Also, I have observed a lot of problems with Firefox 3.6 and Flash 10.2.

Some developers point to video playback problems in Firefox 4 and Flash 10.2.

With that said, my previous post still stands - I was able to play your video on Firefox 4, Flash 10.2 form a different server.

Inspiring
June 1, 2011

This most probably means that f4v file is not encoded with a supported codec and file container has a structure that is not recognized by Flash player. If you have access to this asset - try to reencode it again.

File extension doesn't really matter as long as file structure itself is conforming to specs.

fzenoAuthor
Participant
June 1, 2011

I repeat that it does not work only with firefox

Inspiring
June 2, 2011

Just tested this file in local environment and on another server - it plays perfectly in FF. I believe there may be server side issues (headers, permissions, etc.) that prevent this asset from playing in Flash.

Interestingly enough it plays in QuickTime in FF.

kglad
Community Expert
Community Expert
June 1, 2011

1.  using a relative path to your f4v unless you're loading cross-domain.

2.  do you see that error message when testing locally?  when your files are uploaded to a server?

fzenoAuthor
Participant
June 1, 2011

I'm testing with the swf and f4v (or flv) hosted on two different domains, so I can't use relative path.

I use html to embed it. Should I use javascript?

kglad
Community Expert
Community Expert
June 1, 2011

(you must be using js to embed or you wouldn't see your swf when loading an html page.)

what's the url to your embedding html?