Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
I also have troubles to install
I installed and activated the plugin.
I uploaded the swf to files. ID is 2.
I uploaded one video to files. ID is 3.
I added in my article form :
<code>
<txp:bas_flvplayer player=‘2’ video=‘3’ />
</code>
and nothing except a white area in the page. I guess it is a problem of not translated char <code> (&) </code> in the HTML code :
<code>
<object type=“application/x-shockwave-flash” data=“http://neptuli.poivresl.com/index.php?s=file_download&id=2?file=http://neptuli.poivresl.com/index.php?s=file_download&id=3&autoStart=false” width=“320” height=“240”>
<param name=“movie” value=“http://neptuli.poivresl.com/index.php?s=file_download&id=2?file=http://neptuli.poivresl.com/index.php?s=file_download&id=3&autoStart=false” />
<param name=“wmode” value=“transparent” />
</object>
</code>
anyone can help ?
otherwise, once working, this will be a killer !
greatings !
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
I love this plugin, but I’m having some usability issues that are confusing some of my users.
When they arrive at the page the player says “click to play” They click it and nothing happens. Then, if it is clicked again, the movie begins to play. I can only assume that this first click loads the video and the second click plays. This may have to do with the fact that I have autostart turned off, but it seems like it should be able to load regardless of that option.
Check out the video here: http://www.danielnadeau.com/portfolio-selection/ambient-atmos
“Cathedrals, remember were “infinity imagined,” the heavens brought down to earthly scale. – Steven Johnson: Interface Culture
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Hi the plugin is great but it doesn’t work in Opera. Can you somehow fix this?
Thank you!
Offline
#52 2006-07-01 21:03:49
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
fuls wrote:
Hi the plugin is great but it doesn’t work in Opera.
Same here. I can’t see the player on your site in Opera either, Bastian. Otherwise, thanks for a great plugin!
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
I’m sorry to get back to this message, but may be someone can help me.
I have noticed that the plugin output the following url :
<code>data=“http://neptuli.poivresl.com/index.php?s=file_download&id=2?file=http://neptuli.poivresl.com/index.php?s=file_download&id=3&autoStart=false”</code>
is it normal to have those <code>& instead of &</code> ?
how could i fix that ?
Thansk for your help
luro wrote:
I also have troubles to install
I installed and activated the plugin.
I uploaded the swf to files. ID is 2.
I uploaded one video to files. ID is 3.
I added in my article form :
<code>
<txp:bas_flvplayer player=‘2’ video=‘3’ />
</code>
and nothing except a white area in the page. I guess it is a problem of not translated char <code> (&) </code> in the HTML code :
<code>
<object type=“application/x-shockwave-flash” data=“http://neptuli.poivresl.com/index.php?s=file_download&id=2?file=http://neptuli.poivresl.com/index.php?s=file_download&id=3&autoStart=false” width=“320” height=“240”>
<param name=“movie” value=“http://neptuli.poivresl.com/index.php?s=file_download&id=2?file=http://neptuli.poivresl.com/index.php?s=file_download&id=3&autoStart=false” />
<param name=“wmode” value=“transparent” />
</object>
</code>
anyone can help ?
otherwise, once working, this will be a killer !
greatings !
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Hi luro
I had the same problem with you, and even after i edit the plugin to output &
instead of &
it still display only white rectangular area.
Somehow I found out that the problem was because my .htaccess file was missing. So after I put back my .htaccess file, it works. So the output &
is ok, it doesn’t cause any problem. But that’s not all i found.
My root directory has a .htaccess file with this entry
<code>php_value output_handler ob_gzhandler</code>
And this entry made the player doesn’t work. so i had to turn off this entry in my .htaccess file that is in my textpattern directory.
Another thing is that I still can’t get the plugin to work if I use permalink mode ?messy. Perhaps someone can help with this? I’m happy enough though to get the plugin to work with other permalink mode.
Thanks Bastian and Jeroen :-)
Hope this helps.
Last edited by jsoldier (2006-09-01 11:43:03)
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Adding the following code to the output of the plugin seems to work for me to display it in Opera browser.
<code>
$out[]=’<embed src=”’.$player.’?file=’.$video.$autostart.’” type=“application/x-shockwave-flash” width=”’.$width.’” height=”’.$height.’”></embed>’;
</code><br />
You need to edit the plugin code and add the above code in the bas_flvplayer function section (near the end) when it’s outputting the html code. the <embed></embed>
tag should be right before the closing </object>
tag.
Last edited by jsoldier (2006-09-01 15:00:39)
Offline
#56 2006-09-01 16:31:20
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
jsoldier, if this works it’s great! But could you please tell me exactly where to put it (before or after which line of code)? I see several closing </object>
tags in the code.
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
it should be inside the <code>function bas_flvplayer($atts)</code>
Near the end of the function, like this: (inserted line in bold)
<code>function bas_flvplayer($atts) {</code>
// … some code here …
<code>
$out[]=’<object type=“application/x-shockwave-flash” data=”’.$player.’?file=’.$video.$autostart.’” width=”’.$width.’” height=”’.$height.’”>’;
$out[]=’ <param name=“movie” value=”’.$player.’?file=’.$video.$autostart.’” />’;
$out[]=’ <param name=“wmode” value=“transparent” />’;
</code>
<strong><code>
out[]=’<embed src=”’.$player.’?file=’.$video.$autostart.’” type=“application/x-shockwave-flash” width=”’.$width.’” height=”’.$height.’”></embed>’;
</code></strong>
<code>
$out[]=’</object>’;
return join(n,$out);
}
</code>
<br />
and this part too after if($debug=='true'){
<br />
<code>
$out[]=’<object type=“application/x-shockwave-flash” data=”’.$player.’?file=’.$video.$autostart.’” width=”’.$width.’” height=”’.$height.’”>’;
$out[]=’ <param name=“movie” value=”’.$player.’?file=’.$video.$autostart.’” />’;
$out[]=’ <param name=“wmode” value=“transparent” />’;
</code>
<strong><code>
$out[]=’<embed src=”’.$player.’?file=’.$video.$autostart.’” type=“application/x-shockwave-flash” width=”’.$width.’” height=”’.$height.’”></embed>’;
</code></strong>
<code>
$out[]=’</object>’;
</code>
// … some other code …
<br />
and the last one is near the end of the function
<br />
<code>
$out[]=’<object type=“application/x-shockwave-flash” data=”’.$player.’?file=’.$video.$autostart.’” width=”’.$width.’” height=”’.$height.’”>’;
$out[]=’ <param name=“movie” value=”’.$player.’?file=’.$video.$autostart.’” />’;
$out[]=’ <param name=“wmode” value=“transparent” />’;
</code>
<strong><code>
$out[]=’<embed src=”’.$player.’?file=’.$video.$autostart.’” type=“application/x-shockwave-flash” width=”’.$width.’” height=”’.$height.’”></embed>’;
</code></strong>
<code>
$out[]=’</object>’;
$out[] = ‘<code></pre>’;
return join(n,$out);
</code>
So in total, you need to insert it 3 times. There are only 3 closing </object>
tags in the codes.
I managed to view the player and the video in Opera ver 9.00 Build 8502. Try
http://www.jimmysie.com/tp/article/20/
Last edited by jsoldier (2006-09-02 15:49:24)
Offline
#58 2006-09-02 16:54:07
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Thank you very much! It works :)
Edit: but unfortunately because of the ‘embed’ element my page doesn’t validate anymore… I read this, but I just don’t understand enough of it :(
Last edited by els (2006-09-02 17:16:45)
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Yes, I realised that unfortunately the embed will cause your page to be invalid xhtml since embed is not part of xhtml. I’m also trying to search a work around on this but meanwhile, I still prefer practicality over standard :-) for my site.
Do post here if you find anything. I’ll do likewise.
Last edited by jsoldier (2006-09-03 05:16:09)
Offline