Page 1 of 4

AV Player (Audio Video Player module)

Posted: Tue Sep 01, 2009 2:37 am
by mw
Audio Video Player incorporating  neolao players from: http://flv-player.net

I created this module to display video files in the same manner as yahoo or Utube whereby the movies are listed as a genre/category with a thumbnail.
I saw some need in this forum for a module like this so I am posting a link to the module for your use:
http://courtenay.widget-it.com/uploads/ ... player.zip

you can see a simple demo here:
http://www.comoxvalleycrimestoppers.bc. ... age=Videos

unzip the archive to your modules directory and install it.

I would have uploaded to the cmsms modules but I don't have time.
have fun!

Re: AV Player (Audio Video Player module)

Posted: Tue Sep 01, 2009 10:49 am
by purplerain12
Hi,

I tried your module and it's verry easy to use. But i cant get my flv movie to play.

This is the location: http://www.mewitec.nl/index.php?page=test-2

You know what i do wrong?

Re: AV Player (Audio Video Player module)

Posted: Tue Sep 01, 2009 2:07 pm
by mw
purplerain12 wrote: Hi,

I tried your module and it's verry easy to use. But i cant get my flv movie to play.

This is the location: http://www.mewitec.nl/index.php?page=test-2

You know what i do wrong?
The file: http://www.mewitec.nl/uploads/films/Rovibec_HTC710.flv
does not exist. check the template for the path, perhaps you are not using the "uploads" folder?

Re: AV Player (Audio Video Player module)

Posted: Fri Sep 04, 2009 9:18 am
by hexdj
@mw:

Thanks for this great module!
any change that it will support mp3 files to be selected?, I browsed my folders and it would only let me pick .swf files

Also, why is your excellent project not registered in the forge? Would be great!!!
http://dev.cmsmadesimple.org/

Thanks!!!

Re: AV Player (Audio Video Player module)

Posted: Fri Sep 04, 2009 2:28 pm
by mw
hexdj wrote: @mw:

Thanks for this great module!
any change that it will support mp3 files to be selected?, I browsed my folders and it would only let me pick .swf files

Also, why is your excellent project not registered in the forge? Would be great!!!
http://dev.cmsmadesimple.org/

Thanks!!!
I'm glad to hear you find it useful.
it does indeed support mp3 files, there is a sample template in the help file and info on how to setup.
I  see what you mean about picking mp3 files, I missed that.
In the avplayer module directory open the file "action.browsefiles.php"
and add 'mp3' to the list of $mediaext
note: I also modified the original so this is now fixed in the download file


This module was built as a one off for a website, It was only when I read in this forum that others were looking for something like this.
if I get the time I will upload to forge

Re: AV Player (Audio Video Player module)

Posted: Sat Sep 12, 2009 7:56 pm
by mw
hexdj wrote: @mw:

Thanks for this great module!
any change that it will support mp3 files to be selected?, I browsed my folders and it would only let me pick .swf files

Also, why is your excellent project not registered in the forge? Would be great!!!
http://dev.cmsmadesimple.org/

Thanks!!!
Module is now listed on the forge:

http://dev.cmsmadesimple.org/projects/avplayer

sample list with thumbnail template:

Code: Select all

<br />
<dl>
{foreach from=$itemlist item="item"}
<dt>
<a href="{$item->detailurl}"><img src="uploads{$item->picture}" 
alt="{$item->alias}"/>
</dt>
<dd>{if $item->is_selected}class="active"{/if}<br>{$item->detaillink}
</dd>
{/foreach}
</dl>
css for above code:

Code: Select all

dl {
float: left;
width: 100%;
}
dt {
clear: left;
margin: 0 0 0 0;
}
dt img {
float: left;
margin: 0 10px 10px 0;
border: solid 1px #ccc;
}
dd {
margin-left: 150px;
} 

Re: AV Player (Audio Video Player module)

Posted: Tue Sep 15, 2009 9:04 am
by Franck
I have a problem trying to install it : when I do, the modules menu disappears (install via xml/modulemanager/files on a local cmsms 1.6.5). Any idea ?
my + modules : babel, captcha, cgextensions, cgcalendar, formbuilder

Re: AV Player (Audio Video Player module)

Posted: Wed Sep 16, 2009 5:53 am
by mw
Tomek wrote: I have a problem trying to install it : when I do, the modules menu disappears (install via xml/modulemanager/files on a local cmsms 1.6.5). Any idea ?
my + modules : babel, captcha, cgextensions, cgcalendar, formbuilder
I have ver 1.6.5 installed and also just installed balel,captcha to duplicate your setup and downloaded the avplayer xml and it installed fine.
It sounds like you may have a corrupted file, try d/l again or try the zip archive

Re: AV Player (Audio Video Player module)

Posted: Wed Sep 16, 2009 8:00 pm
by Franck
I did installation by 3 ways : zip / xml / from module manager. the 3 times, I had this problem. I'm gonna investigate further.

[solved] Re: AV Player (Audio Video Player module)

Posted: Wed Dec 02, 2009 5:40 pm
by map_1961
Hi there.

I just installed avplayer - it's a great module.


Some questions i hope somebody can answer:
1. How to get a star-picture in the screen?
2. How to get a list of diferent flv files / videos?
3. How to make the palyer adding otpion for fullscreen, audio level ...?

Thanks

map_1961

>>>>>>>>>>>>>>>

Hi there again
this is the sollution:

1. Download players from http://flv-player.net (for example: maxi version - see download). Download the player_flv_maxi.swf and place it by ftp in your modules/avplayer  directory.
Now go to AVPlayer in the backend.
Add the Player

2. Give it a name (this will be  necessary again when we place the tag into the page - see below)

3. Give the url to the location: http://www.yourdomain.org/modules/avpla ... v_maxi.swf

4. Give it a width and a heigt

5. Give it Parameters like this:
&showiconplay=1&iconplaycolor=eae5d4&iconplaybgcolor=dddddd&iconplaybgalpha=50&showstop=1&showvolume=1&showtime=1&showfullscreen=1

save it

6. Go to templates
adjust all to "final_default"

Set final_default like this:
{$breadcrumbs}{$item->name}
parent_object->location}" width="{$item->parent_object->width}"
height="{$item->parent_object->height}">
parent_object->location}" />
mediafile}&startimage=http://www.yourdomain.org/cms/uploads{$ ... ameters}"/>




save it
---

7. Go to Mediafiles

8. Add a mediafile by giving it a name, choosing the player (if you use more tha the one mentioned above) select the mediafile - flv  for example in /uploads/flv/yourmovie.

9. Selcet or a picture (it should be of the same size and ratio as the player is adjustet to- it will be your start picture!!)

Save it.

10. Now go to a page an place this code: {cms_module module="avplayer" what="mediafile" alias="moviename"}
The name is the one you have given at 1.

Additional important hint:
The param filed is only 255 characters long - to short for sophisticated params. To change this go ahead like this:

11. Go to your database (4 people that know what they do only!!). open table "cms_module_avplayer_player" - click on Sturcture -  click on field parameters (4th position) - edit this field and change length/set from 255 to 500 - save this and close database.

12. Now edit file action.editA.php in your avplayer folder. Go to line 130 and find:
$this->smarty->assign("parameters_input", $this->CreateInputText($id,"Aparameters",isset($item)?$item->parameters:"",50,255));

change this to

$this->smarty->assign("parameters_input", $this->CreateInputText($id,"Aparameters",isset($item)?$item->parameters:"",50,500));

Save this and send it to your online folder. Now avplayer parameter options accepts 500 characters like this:
&bgcolor=fff0ca&bgcolor1=fff0ca&bgcolor2=fff0ca&playeralpha=100&buttoncolor=3e3b30&buttonovercolor=a6a08b&slidercolor1=666357&slidercolor2=3e3b30&sliderovercolor=a6a08b&playercolor=fff0ca&showiconplay=1&iconplaycolor=eae5d4&iconplaybgcolor=dddddd&iconplaybgalpha=50&loadingcolor=938e7c&showstop=1&showvolume=1&showtime=1&showfullscreen=1&autoload=1


Ready to go.
Have fun

map_1961

Re: AV Player (Audio Video Player module)

Posted: Sat Dec 12, 2009 1:45 pm
by map_1961
But even i have a question /problem that i can't solve currently:

Once the avplayer module is ready to work it is possible to set some userdefined fields to sort mediafiles into categories. But after i finished to sort all flv videos to a group/catergory defining (b) userdefined2 field i am not able to set up a seperate list for each group/category.
The tag
{cms_module module="avplayer" what="mediafile" userdefined2="xyz" listtemplate="thumbnail" lang="de_DE"}
does not work and shows all flv videos.

Who knows how2???

Thanks

map_1961

Re: AV Player (Audio Video Player module)

Posted: Sun Dec 13, 2009 6:33 am
by mw
map_1961 wrote: But even i have a question /pronlem that i can't solve currently:

Once the avplayer module is ready to work it is possible to set some userdefined fields to sort mediafiles into categories. But after i finished to sort all flv videos to a group/catergory defining (b) userdefined2 field i am not able to set up a seperate list for each group/category.
The tag
{cms_module module="avplayer" what="mediafile" userdefined2="xyz" listtemplate="thumbnail" lang="de_DE"}
does not work and shows all flv videos.

Who knows how2???

Thanks

map_1961
I'm glad to see your doing well with avplayer.
you can use templates to sort categories.
I uploaded the DNA file so you can use module maker to modify the AVPlayer  module to your needs.

http://dev.cmsmadesimple.org/project/files/737

have fun!

Re: AV Player (Audio Video Player module)

Posted: Sun Dec 13, 2009 9:11 am
by map_1961
Thank you.
The avplayer is really one the most wantet modules for cmsms from my point of view. I am happy that you did it.
Even thank you for that reply. I am sorry but i don't know how to handle the ".dna" file.
I opened it with the text editor. What is the content of it?
2. I never did any job in modulemaker.
3. Can you please provide a sample tremplate that takes care of userdefined2 group settings?

Thanks once again

map_1961

Re: AV Player (Audio Video Player module)

Posted: Sun Dec 13, 2009 6:03 pm
by mw
map_1961 wrote: Thank you.
The avplayer is really one the most wantet modules for cmsms from my point of view. I am happy that you did it.
Even thank you for that reply. I am sorry but i don't know how to handle the ".dna" file.
I opened it with the text editor. What is the content of it?
2. I never did any job in modulemaker.
3. Can you please provide a sample tremplate that takes care of userdefined2 group settings?

Thanks once again

map_1961
The Userdefined field was intended for adding some detail to the media file for description or notes.
To sort by group you should use either the final template or "Player", IE:

If you have movie genres like;
Action
Comedy
Fantasy
Horror
Create a "Player" for each one calling it as above, then when adding media files (movies) place them into the appropiate genre.
then to display a list of Horror movies, use AVPlayer like:
{cms_module module="avplayer" parent="Horror"}

To rebuild or add new features to AVPlayer you can download ctlModulemaker from:
http://dev.cmsmadesimple.org/projects/ctlmodulemaker
and load the dna file into it.
Hope that helps

Re: AV Player (Audio Video Player module)

Posted: Sat Dec 19, 2009 2:31 pm
by drew
Excuse any double post in this thread. For some reason, my last post appeared twice and deleting one deleted both?

mw,

Thank you so much for sharing this very useful module.

I've been able to install it and create a simple page for playing a 'test.flv' file. But I cannot figure out what I'm doing wrong because the player does not render the test.jpg preview and does not play the movie. Do you see any obvious bug in my setup:

Code: Select all

// content:
{cms_module module="avplayer" what="mediafile" alias="test"}

// mediafile 'test':
http://avplayer.webhop.net/cmsms/uploads/media/test.flv
http://avplayer.webhop.net/cmsms/uploads/images/test.jpg

// player:
http://avplayer.webhop.net/cmsms/modules/avplayer/player_flv_maxi.swf

// all default templates:
<object type="application/x-shockwave-flash" data="{$item->parent_object->location}" width="{$item->parent_object->width}"
height="{$item->parent_object->height}">
<param name="movie" value="{$item->parent_object->location}" />
<param name="FlashVars" value="flv=http://{$smarty.server.SERVER_NAME}/uploads/media/{$item->mediafile}{$item->parent_object->parameters}"/>
<param name="wmode" value="transparent" />
</object>

// expanded webpage source:
<object type="application/x-shockwave-flash" data="http://avplayer.webhop.net/cmsms/modules/avplayer/player_flv_maxi.swf"
width="480" height="320">
<param name="movie" value="http://avplayer.webhop.net/cmsms/modules/avplayer/player_flv_maxi.swf" />
<param name="FlashVars" value="flv=http://avplayer.webhop.net/uploads/media/test.flv"/>
<param name="wmode" value="transparent" />
</object>
A sample site is running here: http://avplayer.webhop.net/cmsms/

Thanks again, Drew