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

Forums

/

Someone help me please

16 replies [Last post]

Hi, this is my test page: http://www.elchevirtual.com/videotest.html

The video seems to be stuck right at the top of the page so I cant see it, if you press play it plays but obviously you cant see anything. If you go into fullscreen then it is fine. I implemented a playlist, here is the location of the playlist.

http://www.elchevirtual.com/playlist.xml

I have had no asnwers that is why Iam reposting, please Iam sure it must be a stupid mistake on my part....any solution?
Urgent.

Im sorry to keep insisting but Im feeling really frurstrated.....Ive really tried it all, read everything there is to read, saerched on google, looked over this forum and read loads of threads, had a look at the demo page, tried the wizard.....and Im going crazy!

Is there no one on this forum to help out? Ide just apreciate it if someone had a look at my test setup and helped me out....Ive nearly got it working its just theres a problem and I dont know why! or HOW to fix it.....Are there people on this forum that help out?
I know Ill probably get told off but really and honestly Ive tried everything and cant figure it out....
PLEASE, PORFAVOR, HELP!

OK, I've posted a lot on this forum and there were always people that helped me out, so now I'd like to help you. I checked out your page and it just shows up as white... nothing at all shows, just white. I also didn't hear any sound. When I had trouble before I used the wizard, so I did that with your file paths and the video played just fine. I noticed that you watch the videocopilot.net tutorials too! I love those and use a few effects myself in my work. Here is the code the wizard output for me that had the video playing fine for me:

<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('http://www.elchevirtual.com/player.swf','mpl','640','480','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://www.elchevirtual.com/playlist.xml&playlistsize=180&bufferlength=1&playlist=bottom&autostart=true&fullscreen=true&repeat=true');
so.write('player');
</script>

Also noticed that the second video in your playlist said the video couldn't be found "video1.flv" Check that path in the XML and make sure it is there. Hope this helps and post back if you need anything else. To avoid confusion, just copy and paste this in your HTML page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>

<body>
<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>

<div id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>

<script type="text/javascript">
var so = new SWFObject('http://www.elchevirtual.com/player.swf','mpl','640','480','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://www.elchevirtual.com/playlist.xml&playlistsize=180&bufferlength=1&playlist=bottom&autostart=true&fullscreen=true&repeat=true');
so.write('player');
</script>
</body>
</html>

Simetimes the full path helps and also using a bufferlength too. Notice that the swfobject.js file is on jeroen's site, change that to your file's location, but use the full path (ie,htp://www.elchevirtual.com/swfobject.js)

@Jose,

A word to the wise:

The help that you are getting on these forums is FREE and VOLUNTARY. We also have jobs, families, and other pursuits in life. Sometimes we're busy helping other users; sometimes we just don't have the time. And... sometimes, we just don't feel like sitting in front of the computer.

Getting insistent and demanding is a GREAT way to get ignored!

If you don't like that, well... that's just too bad.

First of, Klink...I know you are 100 percent right, Im a member of a couple of Forums and I know how to behave. My only excuse is that I was very frurstrated as I thought I had everything right but I could figure out the problem and believe me I tried.
So sorry about that.
Second, Pete thanks a lot for the help! Although Ive tried pasting your code and I do get the player and the playlist but the video doesnt play.

here is the code I pasted in
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>

<body>
<script type="text/javascript" src="http://www.elchevirtual.com/swfobject.js"></script>

<div id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>

<script type="text/javascript">
var so = new SWFObject('http://www.elchevirtual.com/player.swf','mpl','640','480','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://www.elchevirtual.com/playlist.xml&playlistsize=180&bufferlength=1&playlist=bottom&autostart=t...');
so.write('player');
</script>
</body>
</html>

hey,

the html file on your site has got a typo. at the end of the row where you addParam('flashvars you have both single and double quotes. get rid of the single quote and it'll play just fine.

oh, and the second item in your playlist is a 404.

/peder

Im sorry...Im thick, I dont see it! (the second video is not up thats why it doesnt play)

I cant see the error.....so.addParam('flashvars','&file=http://www.elchevirtual.com/playlist.xml&playlistsize=180&bufferlength=1&playlist=bottom&autostart=t...');

@Jose,

No problem... I know it can get very frustrating. We're here to help, just the time thing, you know.

I'll have some time this weekend to help if you haven't got it working yet.

on bottom right in this screengrab from your html doc:
http://clients.earthpeople.se/fnutt.png

i removed it and video came up fine.

I went to the test site and video is playing fine.

Hi, thanks to all those that have helped me out, youve been great! Its currently working at:
http://www.elchevirtual.com/videos.html

My questions are now a bit technical, and please be patient. I would like some advice on what output is best for flash video. I mean in terms of size/quality etc.(im not sure I can explain..) I think the current video is exported on NTSC Source to 256kbps, I think the source video is 720 x 480 and the output flash is 320 x 240 (exported from Premier). Now I have no idea about these settings or which would be best to achieve a Good quality video for the web. Is there any sizes that are used more than others?¿
Another thing is that if you go to the link where my video is at you can see it has two Vertical bars, quite big ones on both sides, Im not too happy about these bars. I know there is a stretch option but does this deform in anyway my video?
Basically Im looking for some info on outputsizes, etc (good quality videos) and how to set up with no bars or little as possible. What is the best work practice for this?
What about the thumnail image/preview.....how can I get it to fit the player and not look like a square inside the player? is the thumnail size automatic, does it just size it to a default size?
Well thats all, Ive managed to get quite far on my own and with help from all you kind people, although I must be honest and say that there are still quite a few things that I dont understand......
why is some code so.addParam and other s1.addParam...etc
Well I hope youve read this far, sorry if Im being a pain!
Cheers, great player!

About the bars. You should size the players displayarea to be the same as the native video size. If your video is 320x240, the display area should be 320x240. Resizing on the client burns a lot of CPU cycles.

About size and quality. For a given size and quality, H.264 uses less resources on the client. Until we all have fiber, keep the size, video bitrate and framerate within reason. Probably 640x480, 20fps, 800kpbs. You will have to experiment with the encoding settings to see if the quality is acceptable. The very expensive commercial encoders do a better job of encoding and compressing, so you can get better quality to the end user. Again it's a tradeoff of cost vs. quality.

If many of your users are expected to be on dialup, you should probably have a low quality video for them in addition to a better quality video for your users on faster pies.

The variable that you use is up to you. so, s1, myvariable, 123456abcdefg, whatever, all work. Don't use anything that isn't 123 or abc. Google "JavaScript variables".

Ok, thanks Im starting to understand...but how do i set the display area? in the code¿?

The display area is set here:

var so = new SWFObject('http://www.elchevirtual.com/player.swf','mpl',<strong>'640','480'</strong>,'9');

Then if you have a control bar at the bottom, add 20px, then, if you have a playlist, and have specified playlistsize, add that. Each track is 60px.

so you would use:

<script type="text/javascript">
var so = new SWFObject('http://www.elchevirtual.com/player.swf','mpl','640',<strong>'680'</strong>,'9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://www.elchevirtual.com/playlist.xml&playlistsize=180&bufferlength=1&playlist=bottom&autostart=true&fullscreen=true&repeat=true');
so.write('player');
</script>

You haven't specified the control bar, so the default bottom is used.

Im sorry but I dont understand....
My current settings are these:
<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","600","450","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam('wmode', 'opaque');
s1.addParam("flashvars","file=http://www.elchevirtual.com/playlist.xml&fullscreen=true&playlist=bottom& playlistsize=100&bufferlength=1&repeat=true");
s1.write("container");
</script></div>
If I change the 600 450 the whole player becomes smaller but the bars are Still there? I also dont understand about the control bar? do you mean where the play, fullscreen buttons are? What about the playlist, can it have a abcklground etc?
Right now the most important thing for me is to setup the size of the player and sort out the Bars, can you help with my specific example?
http://www.elchevirtual.com/videos.html
Thanks, and sorry if Im being a pain!

You're trying to do too many things at once.

First of all, what is your native video size?
If it is 640x480, then that should be the size of the display area.

So the height is now 480.

Then the default control bar is 20.

So the height is now 500.

Then each playlist track is 60, you must specify the playlist size in increments of 60, so two tracks is 120.

So the height is now 620.

<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","640","620","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam('wmode', 'opaque');
s1.addParam("flashvars","file=http://www.elchevirtual.com/playlist.xml&fullscreen=true&playlist=bottom&playlistsize=120&bufferlength=1&repeat=true");
s1.write("container");
</script>

For a 320x240 display area:

<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","320","380","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam('wmode', 'opaque');
s1.addParam("flashvars","file=http://www.elchevirtual.com/playlist.xml&fullscreen=true&playlist=bottom&playlistsize=120&bufferlength=1&repeat=true");
s1.write("container");
</script>

Most of the decoration effects including the playlist background are controlled by skinning: http://www.jeroenwijering.com/?item=Skinning_the_JW_Player

1234