Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

n is null

16 replies [Last post]

Hello,

I am trying to use flv player, however, it is not appearing and gives me javascript error: "n is null" on line 8.

Any help appreciated.

Movies can be viewed @:

www[dot]yemeniamerican[dot]net

[english section, middle bottom ( Site Movies)]

You might see another flv player, however, it is not the one I want (since it doesn't have controls).

Here is a direct link:

http://www.yemeniamerican.com/show.php?xid=17&lang=english

If you view the source, you can see that the .js file is included in the headers and that the code is placed as specified by documentation.

Thanks,

Question canceled.

I ended up using FlowPlayer.swf instead.

Thanks anyhow,

Bumb!

I am having the same problem, check http://pappmaskin.no/temp/urortvideoembedtest.html

the first embed uses object and embed, and works, the other examples uses variants of swfobject, but if you click play in firefox, the entire browser crashes, Same in google chrome.

Tips?

urortvideoembedtest.html is missing a placeholder for the player: <div id="articleplayer_swf_224298"></div>

please also note this from the embedding flash page - http://www.jeroenwijering.com/?item=Embedding_Flash

the three symbols ?, = and &. Since they are used to stack the flashvars, they cannot be used in the flashvars themselves. By escaping these vars, the problem can be solved. Therefore, replace the three symbols with their escaped strings and unescape() them again in the SWF:

? → %3F
= → %3D
& → %26

Hi,

I also encountered this problem, to solve this problem:

Put the JavaScript embed code below the container where the player should appear, preferably at the bottom of the page

So:

container div

other html code

script

If you don't do this and have a fast Internet connection, the SWFObject script may not find the container div, simply because it is not yet loaded by the browser.

Good luck.

I have tried with FlowPlayer.swf, I am getting the player in my web page but the video show loding......

FlowPlayer will never beat FLV Player. FLV Player is a lot easier to implement.

Now, this issue is caused by the browsers, not by the FLV Player.

I had the same issue and I fixed it using Tom's suggestion above.

All I did was to place this:
<script type="text/javascript" src="js/swfobject.js"></script>

...below the DIV that is replaced by the script.

Thanks Tom.
Had the same problem, it's solved using Tom method.

Hi there,

Just saying a thanks to Tom, was having the same problem myself. =)

Tom's suggestion doesn't work for me :(

I got the same problem and all what u say don't work

@Vincent - Can you provide a link to where you are running this?

Hi,

I'm having the same problem, although my situation is a little different:

1) I have the script reference to swfobject.js inside <head>
2) I have a <div> container for the player in the <body>
3) I have <script> with a function that instantiates the SWFOject.

Changing where I place the code in 1) or 3) has brought no effect on the error. This was suggest in this post: http://www.longtailvideo.com/support/forum/Setup-Problems/17809/n-is-null.

According to Firebug, the error occurs in this line: so.write('mediaspace');

Any ideas?

Sergio - Can you provide a link to where you are running this?

The problem is this:
he mis used the id of the <DIV> container in the so.write() function

if the is: <Div id=flashContent>

then use: so.write('flashContent')

to:Ricardo Z

thank you。
i Solve the problem like you speak

<div class="text">
<div class="flash">
<div id="flashcontent1">
<strong>You need to upgrade your Flash Player</strong>
</div>
</div>
</div>
<!-- here is the js-->
<script type="text/javascript" src="js/swfobject.js"></script>

while...
if this:

<!-- here is the js-->
<script type="text/javascript" src="js/swfobject.js"></script>
<div class="text">
<div class="flash">
<div id="flashcontent1">
<strong>You need to upgrade your Flash Player</strong>
</div>
</div>
</div>

the result is :n is null...