FLV Player Wwith External FLV Source

MobileHacks

New Member
If you know full URL for FLV video, can use this code.
Tip: Internet Download Manager can be detect a URL of FLV video from the web-player.

FLV player for this hack: The JW FLV Player is an easy and flexible way to add video and audio to your website. It supports playback of any format the Adobe Flash Player can handle (FLV, MP4, MP3, AAC, JPG, PNG and GIF). It also supports RTMP, HTTP and live streaming, various playlists formats, a wide range of settings and an extensive javascript API.

You can use noncommercial license only.

1- Upload attachments to forum root,

2- Custom BB Codes:

BB Code Tag Name:
PHP:
FLV

Example:
PHP:
[FLV]http://content.bitsontherun.com/videos/3ta6fhJQ.flv[/FLV]

Replacement:
PHP:
<script type="text/javascript" src="/embed/swfobject.js"></script>
 
<div id="player">"Please refresh page for player"</div>
 
<script type="text/javascript">
var so = new SWFObject('/embed/player.swf','mpl','640','480','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file={param}');
so.write('player');
</script>

The other settings for the BBCode are:

Use {option}: -> No
Remove Tag If Empty -> Yes
Disable BB Code Within This BB Code -> No
Disable Smilies Within This BB Code -> No
Disable Word Wrapping Within This BB Code ->No

Demo
 

caTRap

New Member
Pz11 guru said:
not working for me help..........


Header template-
Code:
<script type="text/javascript" src="http://www.[color=Red]example[/color].com/swfobject.js"></script>



Add New BB Code

Title
Code:
FLV Player -  BBcode

BB Code Tag Name
Code:
 flv

Replacement
Code:
<embed
  src="player.swf"
  width="470"
  height="320"
  bgcolor="#ffffff"
  allowscriptaccess="always"
  allowfullscreen="true"
  flashvars="file={param}"
/>

Example
Code:
[flv][/flv]

Description
Code:
 Flv player



Use {option}- No
Button Image (Optional)- www.example.com/example.gif
Remove Tag If Empty- Yes
Disable BB Code Within This BB Code- No
Disable Smilies Within This BB Code- Yes
Disable Word Wrapping Within This BB Code- No
 

KohPhiPhi

New Member
This is exactly the Replacement I used and it worked:

HTML:
<center>

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

<embed
  src="http://www.XXXXXXXXXXX.com/forum/embed/player.swf"
  width="600"
  height="460"
  bgcolor="#ffffff"
  allowscriptaccess="always"
  allowfullscreen="false"
  flashvars="file={param}"
/>

</center>
 
Top