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

Forums

/

error playing in new version

10 replies [Last post]

hello.
i cannot play videos as i did before with your player on my site.
from the version 4.2, i couldn't play anymore.

here is an example of code that doesn't work, why wouldn't? the file variable cannot handle php link with variable?
maybe someone can give me a idea, because i would like to use the latest version of your flv player.

thanks:)

<script type='text/javascript' src='swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('player-viral.swf','mpl','470','320','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://viewclips.net/video1.php?id=faG_o5P6rmE');
so.write('mediaspace');
</script>

so.addVariable('file', encodeURIComponent('http://viewclips.net/video1.php?id=faG_o5P6rmE'));

If a URI contains the flashvars stacking characters ( & = ? ), they must be urlencoded either manually or using JavaScript's encodeURIComponent() method.

yes i knew that, but still doesn't work with encodeURIComponent, http://viewclips.net/player/test.html it gives Error #2048 and after puting so.addVariable("type", "flv"); it says "No suiteable model found for playback of this file."

under the latest player i've put the 4.2 version that works.

thanks for your response

 
Your URI is invalid.

what do you mean? how can i make it work?

You have to get a valid URI from www.viewclips.net, like this one:http://viewclips.net/video1.php?id=muD6shNE6ro

i don't understand, what is wrong with the code?
i've tried also http%3A%2F%2Fviewclips.net%2Fvideo1.php%3Fid%3DmuD6shNE6ro and not working
can you give me a working example?

edit:
i've managed to make it work, just got an idea right now, i've struggled with this for months:)
solution: i've added
RewriteRule ^v1/(.*).flv /video1.php?id=$1 [QSA,L] in .htaccess and the file so.addVariable('file', 'http://viewclips.net/v1/muD6shNE6ro.flv');

but i'm still wondering why it wouldn't work with ?id= ... if it doesn't have a .flv, .mov, .mp4 at the end of file it doesn't work...

 
When your file URI doesn't end with a recognized media file extension (flv, mp4, jpg, etc.), then you have to tell the player what type of media file it will be receiving.

so.addVariable('type','video');

See:

    http://developer.longtailvideo.com/trac/wiki/FlashVars#Fileproperties

so.addVariable('type','video'); yes this was the missing part, in the previous versions it work with so.addVariable('type','flv'); so i've tried many configurations but didn't change type flv...
now it's working perfect, thanks for all the help lost, thread solved:)

hello

when i try to load the player i get the error message "No suiteable model found for playback of this file."

my code is

<script type='text/javascript'>
var so = new SWFObject('http://www.technetwork.gr/main/jwplayer/player.swf','mpl','600','300','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://www.technetwork.gr/main/jwplayer/playlist1.xml');
so.addVariable('logo','http://www.technetwork.gr/main/images/stories/logo.png');
so.addVariable('playlistsize','250');
so.addVariable('playlist','right');
so.addVariable('autostart','true');
so.addVariable('mute','false');
so.addVariable('stretching','exactfit');
so.write('mediaspace');
</script>

and my playlist is

<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Playlist1</title>
<trackList>
<track>
<location>http://www.technetwork.gr/main/jwplayer/acer.flv</location>
<image>/main/images/stories/acer.png</image>
<title>Acer adv</title>
<creator>ACER</creator>
<creator>Computer videos</creator>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/nokia.flv</location>
<image>/main/images/stories/nokia.png</image>
<title>nokia</title>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/omnia.flv</location>
<title>omnia</title>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/acer.flv</location>
<title>acer</title>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/nokia.flv</location>
<title>nokia</title>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/acer.flv</location>
<title>acer</title>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/nokia.flv</location>
<title>nokia</title>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/acer.flv</location>
<title>acer</title>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/nokia.flv</location>
<image>/main/images/stories/nokia.png</image>
<title>nokia</title>
<meta rel="type">flv</meta>
</track>
<track>
<location>http://www.technetwork.gr/main/jwplayer/acer.flv</location>
<image>/main/images/stories/acer.png</image>
<title>acer</title>
<meta rel="type">flv</meta>
</track>
</trackList>
</playlist>

this is a test html and playlist. just to see how it looks like..........but....i have this message.

any help?

thank you

 
See: http://developer.longtailvideo.com/trac/wiki/FlashVars#Fileproperties

This is NOT a valid type for the v4 player.<meta rel="type"><strong>flv</strong></meta>