Same server - some flv files play, some doesn't

#1
Hello.
Flv files called through xml playlist play just fine, but those called into php don't start playing at all. You can see the thumbnail, hit on play, and nothing happens (you got the button play again, if you hit it again - it will start "buffering" and never finish).

Any help/idea?
I tried so many things, checked the mime... everything looks fine.

Thanks.
 
#4
The website is established website for 3 years and it has maybe thousand of videos, so this is very important to me. I have been using apache, and it used to work great for a while but decided to check out LiteSpeed in case it will perform better. Although it seems that it performs better, this flv videos problem made me switch back to apache at least temporarily, until I solve this issue.

I am using Vivvo CMS and it takes the flv like this to publish it on the website:
<div id="article_body">
<div id="box_video_headline_container" style="text-align:center;"> </div>
<vte:if test="{article.video_attachment}">
<script type="text/javascript">
var s1 = new SWFObject("flash/mediaplayer.swf",'box_video_headline_container_mediaplayer','425','337',"7");
s1.addParam("allowfullscreen","true");
s1.addVariable("width",'425');
s1.addVariable("height",'337');
s1.addVariable("displaywidth",'425');
s1.addVariable("displayheight",'318');
s1.addVariable("autoscroll","true");
s1.addVariable('showicons', 'true');
s1.addVariable('backcolor','0xEEEEEE');
s1.addVariable('frontcolor','0x333333');
s1.addVariable('lightcolor','0x333333');
s1.addVariable('screencolor','0x000000');
s1.addVariable('enablejs','true');
s1.addVariable('file','<vte:value select="{VIVVO_URL}"/><vte:value select="{article.video_attachment}" />');
s1.addVariable('image','<vte:value select="{VIVVO_URL}" />thumbnail.php?file=<vte:value select="{article.image}" />%26size=article_large');
s1.write('box_video_headline_container');
</script>
</vte:if>
<p><strong><vte:value select="{article.get_abstract}" /></strong></p>
<vte:value select="{article.get_body}" />
</div>
So, this is the video
s1.addVariable('file','<vte:value select="{VIVVO_URL}"/><vte:value select="{article.video_attachment}" />');
and this is the thumbnail
s1.addVariable('image','<vte:value select="{VIVVO_URL}" />thumbnail.php?file=<vte:value
This flv video doesn't work when called.
But this one (it's setup in the corner of the website, called through XML), works:
<vte:template>
<vte:header type="script" href="{VIVVO_URL}js/swfobject.js" />
<div class="box">
<div class="box_body">
<div class="box_content">
<div id="box_video_container"> </div>
<script type="text/javascript">
var s1 = new SWFObject("flash/mediaplayer.swf",'box_video_headline_container_mediaplayer','425','337',"7");
s1.addParam("allowfullscreen","true");
s1.addVariable("width",'425');
s1.addVariable("height",'337');
s1.addVariable("displaywidth",'425');
s1.addVariable("displayheight",'318');
s1.addVariable("autoscroll","true");
s1.addVariable('backcolor','0xEEEEEE');
s1.addVariable('frontcolor','0x333333');
s1.addVariable('lightcolor','0x333333');
s1.addVariable('screencolor','0x000000');
s1.addVariable('enablejs','true')

s1.addVariable("file","<vte:value select="{VIVVO_URL}" />flv/something.xml");
s1.write("box_video_container");
</script>
</div>
</div>
</div>
</vte:template>

Anyone, please?
 
Last edited:

NiteWave

Administrator
#5
one of the demo sites
http://www.one.myvivvo.com/
should have same code as yours(the flash part)

I extracted its flash part, it can be simplified as
Code:
<embed type="application/x-shockwave-flash"
src="mediaplayer.swf" style=""
id="box_video_headline_container_mediaplayer" 
name="box_video_headline_container_mediaplayer"
quality="high" allowfullscreen="true" width="256" height="192"
flashvars="width=256&height=192&displaywidth=256&displayheight=192&autoscroll=true&backcolor=0xEEEEEE&frontcolor=0x333333&lightcolor=0x333333&screencolor=0x000000&enablejs=true&file=alone_dark.flv&image=alone_dark_screen012_939288789.jpg">
let's name it demo.htm. can get the rest 3 files by
Code:
wget http://one.myvivvo.com/flash/mediaplayer.swf
wget http://one.myvivvo.com/files/video/alone_dark.flv
wget -O alone_dark_screen012_939288789.jpg "http://one.myvivvo.com/thumbnail.php?file=alone_dark_screen012_939288789.jpg&size=article_large"
put the 4 files under site's document root.

then test yourdomain.com/demo.htm

the flv playing is normal and no special: mediaplayer.swf stream flv video.
--- tested demo.htm, working fine under litespeed.

for this specific issue, suggest:
1.when site working fine under apache, make sure "build match php" right for litespeed. so litespeed has equivalent php as apache.

2.if flv not play well under litespeed(waiting forever), in firefox, extract the flash html code like above example from View->Page Source. and investigate it. it's better than php source code.
 
Top