[BETA] Flash Video (FLV) integration

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

thanks for that, i've tried many different ways and i'm getting nothing, any chance you can spot what i've done wrong, please ignor the successful .wmv and .swf ones on this test forum. excuse the mess.

http://totaledgepoker.com/attachmodtest ... c.php?t=12


http://totaledgepoker.com/attachmodtest
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

Please install the mod as discribed in the install file, you have changed a lot of it.
Best you can do is redo it.
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

ok thanks for looking, i followed instructions and it seemed very easy, dont know what i did wrong but i'll try installing again.
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

ok i now have the FLV intergration on my forum, when i put a flv video on there it shrinks it to about 2/3s the size which makes the quality pretty poor, is there any way of changing the size of the player? or making it so it keeps the original size of your videos?
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

in "templates/subSilver/bbcode.tpl", you can change it like this:

Code: Select all

<!-- BEGIN flv -->
<div align="center"><hr width="95%" /></div>
<table width="95%" border="1" cellpadding="2" cellspacing="0" class="attachtable" align="center">
<tr>
	<td colspan="2" align="center"><br />
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="[b]YOUR WIDTH[/b]" height="[b]YOUR HEIGHT[/b]"> 
	<param name=movie value="./flvplayer.swf"> 
	<param name=loop value=true> 
	<param name=quality value=high> 
	<param name=scale value=noborder>
	<param name=wmode value=transparent> 
	<param name=bgcolor value=#000000> 
	<param name=flashvars value="file={FLV}&type=flv&autostart=false&image=preview.jpg&overstretch=false"> 
	<embed src="./flvplayer.swf"  flashvars="file={FLV}&type=flv&autostart=false&image=preview.jpg&overstretch=false" loop=true quality=high scale=noborder wmode=transparent bgcolor=#000000  width="[b]YOUR WIDTH[/b]" height="[b]YOUR HEIGHT[/b]" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed> 
	</object><br /><br />
	</td>
</tr>
</table>
<div align="center"><hr width="95%" /></div>
<!-- END flv -->
and for he real attachments in "attach_mod/displaying.php":

Code: Select all

// Flash Videos
					
$template->assign_block_vars('postrow.attach.cat_flv', array(
	'U_DOWNLOAD_LINK'		=> $filename,
	'DOWNLOAD_NAME'		=> $display_name,
	'FILESIZE'			=> $filesize,
	'SIZE_VAR'			=> $size_lang,
	'COMMENT'		=> $comment,
	'L_DOWNLOADED_VIEWED'	=> $lang['Viewed'],
	'WIDTH'			=> [b]YOUR WIDTH[/b],
	'HEIGHT'			=> [b]YOUR HEIGHT[/b])
);
The above block appears twice in that document.

Change the YOUR WIDTH and YOUR HEIGHT accordingly
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

thanks alot for the reply, i will do that but i seem to have lost the flash streaming player now, take a look here:

http://www.totaledgepoker.com/viewtopi ... =3025#3025

That was a 2 seocnd video streaming in the flv video player, all i did was i went into the ACP, allowed some other file types + increased files sizes, uploaded a .swf ( i really dont think i did anything else?) anyway i cant seem to get it back to streaming in the player now, i just get a download tag?
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

could you please create a test account.
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

yup sorry.

user: test333
password: test333
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

Hi SaWey or anyone who can help,

I still cant get the FLV player to work, like i said its been installed professionally and was working when i first tried it. I made a video of my ACP settings, any chance you could take a look? the video will appear almost instantly when you click this link, there is sound.

edit: i will PM the link to you and anyone that can help

thanks

steve
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

Fixed!

You can download the new version (same link as before) or you can do the following:

Code: Select all

#-----[ OPEN ]------------------------------------------
#
admin/admin_extensions.php
#
#-----[ FIND ]------------------------------------------
#
$types_category = array(IMAGE_CAT, STREAM_CAT, SWF_CAT
#
#-----[ REPLACE WITH ]------------------------------------------
#
$types_category = array(IMAGE_CAT, STREAM_CAT, SWF_CAT, FLV_CAT
#
#-----[ FIND ]------------------------------------------
#
$modes_category = array($lang['Category_images'], $lang['Category_stream_files'], $lang['Category_swf_files']
#
#-----[ REPLACE WITH ]------------------------------------------
#
$modes_category = array($lang['Category_images'], $lang['Category_stream_files'], $lang['Category_swf_files'], $lang['Category_flv_files']
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_attachments.php
#
#-----[ FIND ]------------------------------------------
#
	$s_assigned_group_images = $lang['None'];
	$s_assigned_group_streams = $lang['None'];
	$s_assigned_group_flash = $lang['None'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
	$s_assigned_group_flv = $lang['None'];
#
#-----[ FIND ]------------------------------------------
#
		else if ($row[$i]['cat_id'] == SWF_CAT)
		{
			$s_assigned_group_flash[] = $row[$i]['group_name'];
		}
#
#-----[ AFTER, ADD ]------------------------------------------
#
		else if ($row[$i]['cat_id'] == FLV_CAT)
		{
			$s_assigned_group_flv[] = $row[$i]['group_name'];
		}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin_attach.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Category_swf_files'] = 'Flash Files';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Category_flv_files'] = 'Flash  Video Files';
#
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

Forgot to mention, when you don't do a reinstall (thus just add the code I posted),
then you will need to go to the admin panel, select 'Extension Groups Control ' and change the special category of Flash Video to 'Flash Video Files'
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

ok i'm still testing it out but it seems to have worked after doing what you said - thanks for the update, now i can look into the changing the size edits you put up.

:)
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

I was just wondering is there a reason why the FLV player has to resize the media you put on? to get the best quality it would mean the media you put on has to be the same size as the player does it not?

It would be cool if you could set it to not alter the size of the media you put on and be flexible, like for example when you put a .wmv on the attachment mod it will just play in whatever size you put it on there .

i have noticed with the flv player when i put a small size width and height flv it plays the first frame in the size i put it on there and then quickly refits the size in the next frame.
SaWey
Registered User
Posts: 58
Joined: Sun Jan 14, 2007 1:18 pm
Location: Belgium

Re: [BETA] Flash Video (FLV) integration

Post by SaWey »

The problem is that I cant load the size dynamic from the flv's, I'll try to search for a solution.
User avatar
steve8675537
Registered User
Posts: 215
Joined: Mon Mar 19, 2007 6:02 pm
Location: phpbb3 newbie

Re: [BETA] Flash Video (FLV) integration

Post by steve8675537 »

ok i see. I think it would make the mod alot better if you manage to solve it.
Post Reply

Return to “[2.0.x] MODs in Development”