AV Player (Audio Video Player module)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: AV Player (Audio Video Player module)

Post by mw »

Paul J wrote: Is that what the problem is? Won't this work with pretty URLs?
Yes,the module supports pretty urls, however it appears that the mp3-template is not loading which indicates that parameter is being discarded for some reason.
you could troubleshoot that by copying/overwriting  the contents of your mp3-template to the final_default
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: AV Player (Audio Video Player module)

Post by mw »

Paul J wrote: Is that what the problem is? Won't this work with pretty URLs?
Actually I just noticed that on your detail page the value for:
<param name="FlashVars" value="flv
is wrong it should be:
<param name="FlashVars" value="mp3

Code: Select all

<object type="application/x-shockwave-flash" data="uploads/audiovisual/player_mp3_maxi.swf" width="320"
height="40">
<param name="movie" value="uploads/audiovisual/player_mp3_maxi.swf" />
<param name="FlashVars" value="flv=http://www.yoursite.com/uploads/audiovisual/donald.mp3&showiconplay=1&iconplaycolor=eae5d4&iconplaybgcolor=dddddd&iconplaybgalpha=50&showstop=1&showvolume=1&showtime=1&showfullscreen=1"/>
<param name="wmode" value="transparent" />
</object>
should be:

Code: Select all

<object type="application/x-shockwave-flash" data="uploads/audiovisual/player_mp3_maxi.swf" width="320"
height="40">
<param name="movie" value="uploads/audiovisual/player_mp3_maxi.swf" />
<param name="FlashVars" value="mp3=http://www.yoursite.com/uploads/audiovisual/donald.mp3&showiconplay=1&iconplaycolor=eae5d4&iconplaybgcolor=dddddd&iconplaybgalpha=50&showstop=1&showvolume=1&showtime=1&showfullscreen=1"/>
<param name="wmode" value="transparent" />
</object>
so it *does* appear that it is dropping the mp3-template and using the final_default
I'll ponder that one...
Paul J
Forum Members
Forum Members
Posts: 52
Joined: Tue Feb 02, 2010 6:51 pm

Re: AV Player (Audio Video Player module)

Post by Paul J »

mw wrote: so it *does* appear that it is dropping the mp3-template and using the final_default
I'll ponder that one...
I just tried what you suggested: I pasted my mp3-template into final_default (keeping a copy of that one) and yes, it works! So at least I have a short-term solution. Thanks for your all your help. I really appreciate it.

Paul
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: AV Player (Audio Video Player module)

Post by mw »

Paul J wrote:
mw wrote: so it *does* appear that it is dropping the mp3-template and using the final_default
I'll ponder that one...
I just tried what you suggested: I pasted my mp3-template into final_default (keeping a copy of that one) and yes, it works! So at least I have a short-term solution. Thanks for your all your help. I really appreciate it.

Paul
Perhaps a better solution would be:
Create a "Userdefined1" field which holds two values; "mp3" and "flv"
assuming you have two Players, one called "Mp3Player" and another called "VideoPlayer"
each one will have a userdefined field of "mp3" or "flv"
Then in your template instead of:

Code: Select all

<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="mp3=http://yoursite.com/uploads{$item->mediafile}{$item->parent_object->parameters}"/>
    <param name="wmode"value="transparent" />
</object>
you will have:

Code: Select all

<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="{$item->parent_object->userdefined1_namevalue}=http://yoursite.com/uploads{$item->mediafile}{$item->parent_object->parameters}"/>
    <param name="wmode"value="transparent" />
</object>
note the above: {$item->parent_object->userdefined1_namevalue}.in place of mp3 (or flv)
Paul J
Forum Members
Forum Members
Posts: 52
Joined: Tue Feb 02, 2010 6:51 pm

Re: AV Player (Audio Video Player module)

Post by Paul J »

mw wrote:
Perhaps a better solution would be:
Create a "Userdefined1" field which holds two values; "mp3" and "flv"
assuming you have two Players, one called "Mp3Player" and another called "VideoPlayer"
each one will have a userdefined field of "mp3" or "flv"
It works!! That's brilliant. Really appreciate your help with this.

Cheers

Paul
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: AV Player (Audio Video Player module)

Post by mw »

jasonswint wrote: Hi there.. I am having trouble getting AVPlayer module to work:

http://www.acswnc.com/cmsms/index.php?page=links <-- Demo

Any ideas what I am doing wrong?
Works for me.
you have to click the "play" button if you don't have autoplay set in the options.
see the help for all the different options..
rowena
Forum Members
Forum Members
Posts: 80
Joined: Mon May 31, 2010 9:56 am

Re: AV Player (Audio Video Player module)

Post by rowena »

Hi there,
I have read the first page thread where it describes how to edit the template to show videos in fullscreen, etc, and i have edited as such, but i still cant get my videos to show in full screen mode.
Here is the link to my video – can someone please tell me what i am doing wrong?

http://safe-4.co.uk/index.php?page=how- ... d-end-user

Also, how do i get the video to be positioned in the centre, instead of being left justified?
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: AV Player (Audio Video Player module)

Post by mw »

rowena wrote: Hi there,
I have read the first page thread where it describes how to edit the template to show videos in fullscreen, etc, and i have edited as such, but i still cant get my videos to show in full screen mode.
Here is the link to my video – can someone please tell me what i am doing wrong?

http://safe-4.co.uk/index.php?page=how- ... d-end-user

Also, how do i get the video to be positioned in the centre, instead of being left justified?
even though you have specified allowFullScreen" value="true" you still need to add the button to the player which you can do by adding a parameter in the Player : &showfullscreen=1
look at: http://flv-player.net/players/maxi/generator and use the category dropdown and choose "buttons on the player bar" for all the different options.
as far as the centering goes, I would think css or html tags would work just fine...
rowena
Forum Members
Forum Members
Posts: 80
Joined: Mon May 31, 2010 9:56 am

Re: AV Player (Audio Video Player module)

Post by rowena »

aaaahhh, makes sense :-)

many thanks.
rowena
Forum Members
Forum Members
Posts: 80
Joined: Mon May 31, 2010 9:56 am

Re: AV Player (Audio Video Player module)

Post by rowena »

Something else i noticed, the start frame image that i uplaod gets automaticlaly resized to a width of 120px. my player is 500px wide and when the start frame shows, it's all distorted, obiously as it is tryign to show a 120px wide image in a 500px wide screen.

how do i get the start frame to show at the size i have created it?

Also, how id get the ideo to start playign automatically once the user is on the page?
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: AV Player (Audio Video Player module)

Post by mw »

rowena wrote: Something else i noticed, the start frame image that i uplaod gets automaticlaly resized to a width of 120px. my player is 500px wide and when the start frame shows, it's all distorted, obiously as it is tryign to show a 120px wide image in a 500px wide screen.

how do i get the start frame to show at the size i have created it?

Also, how id get the ideo to start playign automatically once the user is on the page?
The picture is actually for the thumbnail for the list template, if you want to use a "startimage" place it in the parameters, ie: &startimage=uploads/myimage.jpg
the autoplay param is documented...

sorry my mistake, that won't work as it will be global to the player.

I'll have a look at that later
Last edited by mw on Fri Nov 12, 2010 4:50 pm, edited 1 time in total.
rowena
Forum Members
Forum Members
Posts: 80
Joined: Mon May 31, 2010 9:56 am

Re: AV Player (Audio Video Player module)

Post by rowena »

Thanks so much - look forward to your reply re: autoplay
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm

Re: AV Player (Audio Video Player module)

Post by mw »

rowena wrote: Thanks so much - look forward to your reply re: autoplay
please refer to: http://flv-player.net/players/maxi/generator/
for all the possible parameters.
what version of avplayer are you running?
callmes1r
New Member
New Member
Posts: 3
Joined: Mon Sep 12, 2011 11:50 pm

Re: AV Player (Audio Video Player module)

Post by callmes1r »

I cant seem to make it work on my page.

A shot of my final_default template is attached. Am i missing something?
A shot of what it looks like on my page is also attached.
Attachments
videopagecode.JPG
videopage.JPG
templatecode.JPG
boder
Forum Members
Forum Members
Posts: 18
Joined: Tue Dec 09, 2008 4:24 pm

Re: AV Player (Audio Video Player module)

Post by boder »

Hello,

Can you help me, I do not get the player to work properly. The player is not playing the movie. Where did I go wrong?

I checked the FAQ's and dit all the steps:

Code: Select all

//FAQ  

http://forum.cmsmadesimple.org/viewtopic.php?f=7&t=36934&start=30

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 => Done, named av_player
2. Give it a name (this will be  necessary again when we place the tag into the page - see below) => done
3. Give the url to the location: http://www.yourdomain.org/modules/avpla ... v_maxi.swf => done see under for details
4. Give it a width and a heigt => done
5. Give it Parameters like this: => done
&showiconplay=1&iconplaycolor=eae5d4&iconplaybgcolor=dddddd&iconplaybgalpha=50&showstop=1&showvolume=1&showtime=1&showfullscreen=1
save it => done
6. Go to templates adjust all to "final_default" => done
Set final_default like this:
{$breadcrumbs}
{$item->name}
save it => done see under for final_default content
--
7. Go to Mediafiles => done
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. => done, see under for details
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!!) => picture selected, but how to set the size?
Save it. => done, see under for details
---
 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. => if it is the name given by 1, nothing is displayed on the webpage. If the name given by 8 is the moviename, then the movie and the player are displayed at the webpage. 

Additional important hint:
The param filed is only 255 characters long - to short for sophisticated params. To change this go ahead like this: => Counted the number of characters = 130, did not do step 11 to 13.
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. => not done
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));=> not done
change this to
$this->smarty->assign("parameters_input", $this->CreateInputText($id,"Aparameters",isset($item)?$item->parameters:"",50,500)); => not done
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&playerco

lor=fff0ca&showiconplay=1&iconplaycolor=eae5d4&iconplaybgcolor=dddddd&iconplaybgalpha=50&loadingcolor=938e7c&showstop=1&showvolume=1&showtime=1&showfullscreen=1&autoload=1

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

// mediafile 'bun_ren':
http://www.domainname.nl/uploads/media/bun_ren.flv
http://www.domainname.nl/uploads/005.jpg


// player:
http://www.domainname.nl/FLV_maxi_1.6.0/template_maxi/player_flv_maxi.swf

// all final_default templates: 
<h3>{$item->name}</h3>
{if $item->mediafile != ""}<p>{$labels->mediafile}: <a href="{$item->mediafile->url}">{$item->mediafile->filepath}</a> ({$item->mediafile->size_wformat})</p>{/if}

{if $item->picture != ""}<p>{$item->picture->image}</p>{/if}

<p>{$labels->userdefined2}: {$item->userdefined2_namevalue}</p>

<object type="application/x-shockwave-flash"data="{$item->parent_object->location}" width="{$item->parent_object->width}"height="{$item->parent_object->height}"><br />
<param name="movie"value="{$item->parent_object->location}" /><br />
<param name="FlashVars" value="{$item->parent_object->playertype_namevalue}=http://{$root_url}/uploads{$item->mediafile->filepath}{$item->parent_object->parameters}"/><param 

name="wmode"value="transparent" /></object>
{$breadcrumbs}
{$item->name}
=> this did not work, changed http://{$root_url}/uploads{$item->mediafile->filepath} to http://{$root_url}/uploads/media{$item->mediafile->filepath} => this also did not work.
Image
Attachments
webpage.JPG
Post Reply

Return to “Modules/Add-Ons”