Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my videobox opens on pageload and plays a swf just fine but the quality is not great, i can get this script to work [as is] but i tried to modify it to just do it automatically with no buttons: heres my index page
XML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>My page loads a video!</title>
  <script type="text/javascript" src="js/mootools.js"></script>
  <script type="text/javascript" src="js/swfobject.js"></script>
  <script type="text/javascript" src="js/videobox.js"></script>
  <link rel="stylesheet" href="css/videobox.css"
 type="text/css" media="screen">
</head>
<body scroll="no" style="background-image: url(bg.jpg);"
 onload="doOpenVideoDelayed('ani.swf', 'Video', 'vidbox 400 300 play', 1000);">
stop();
_root._quality = "BEST";
this._parent._quality = "BEST";
}

is this part in the right place? :~ have i completely f***ed the code? :-O i modified it from the actionscript below

stop();
_root._quality = "BEST";
this._parent._quality = "BEST";
}


C#
stop();
_root._quality = "BEST";
low_qual_btn.onRelease = function() {
this._parent._quality = "LOW";
}
med_qual_btn.onRelease = function() {
this._parent._quality = "MEDIUM";
}
high_qual_btn.onRelease = function() {
this._parent._quality = "HIGH";
}
best_qual_btn.onRelease = function() {
this._parent._quality = "BEST";
}

from this site --> http://fcontheweb.com/articles/swf_quality/[^]
Posted

Have you tried using
http://code.google.com/p/swfobject/[^]

Here is the doc on flash params
http://kb2.adobe.com/cps/127/tn_12701.html[^]

vmode could be the solution to your problem you can set it to one of the following:
window: movie plays in its own rectangular window on a web page.
opaque: the movie hides everything on the page behind it.
transparent: the background of the HTML page shows through all transparent portions of the movie. This option can slow animation performance.

Setting vmode to transparent is the computationally most expensive option ..., while window (in IE on Windows) usually provides the best performance

Also remember that setting quality to best provides the best display quality, but does not consider playback speed. All output is anti-aliased and all bitmaps are smoothed

Regards
Espen Harlinn
 
Share this answer
 
v2
Comments
infamousbreed 10-Jan-11 3:21am    
actually im convinced now that the video quality cannot be improved it was just the way the video was - this tut helped me fix http://www.adobe.com/designcenter/tutorials/videoencoderwizard/ now it plays perfect.
Espen Harlinn 10-Jan-11 4:02am    
Nice that you found a solution..., sinse I answered your question I wouldn't mind a vote of confidence...
this tut helped me fix http://www.adobe.com/designcenter/tutorials/videoencoderwizard/ now it plays perfect.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900