Page 2 of 4
Re: AV Player (Audio Video Player module)
Posted: Sat Dec 19, 2009 11:00 pm
by mw
@drew
your site:
http://avplayer.webhop.net/cmsms/
is different from your path in the template, change:
Code: Select all
<param name="FlashVars" value="flv=http://{$smarty.server.SERVER_NAME}/uploads/media/{$item->mediafile}{$item->parent_object->parameters}"/>
to:
Code: Select all
<param name="FlashVars" value="flv=http://{$smarty.server.SERVER_NAME}/cmsms/uploads/media/{$item->mediafile}{$item->parent_object->parameters}"/>
Re: AV Player (Audio Video Player module)
Posted: Sun Dec 20, 2009 12:41 am
by drew
That was it - it is now working nicely!
btw, would you now what video formats are supported by the flvplayer. Is it just for flash videos?
The flvplayer forum looks to be a good place for flvplayer enthusiasts but my French is not so good.
Merci bien
Re: AV Player (Audio Video Player module)
Posted: Sun Dec 20, 2009 9:33 pm
by mw
drew wrote:
That was it - it is now working nicely!
btw, would you now what video formats are supported by the flvplayer. Is it just for flash videos?
The flvplayer forum looks to be a good place for flvplayer enthusiasts but my French is not so good.
Merci bien
Honestly I don't know if it supports other formats, I have only tried flv...
perhaps someone else knows?
Re: AV Player (Audio Video Player module)
Posted: Wed Jan 06, 2010 3:25 am
by mw
map_1961 wrote:
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
I just realized other options you may use to sort, sorry I did not get this sooner:
Order by field
Code: Select all
Let's say your level has a dropdown field named "myfield", and you wish to list elements sorted on that field. Create the following template (which I'll call "order_by_myfield"):
<ul>
{assign var="fieldflag" value=false}
{foreach from=$itemlist item="item"}
{if $item->myfield != $fieldflag}
{if $fieldflag}</ul></li>{/if}
<li>{$item->myfield}<ul>
{assign var="fieldflag" value=$item->myfield}
{/if}
<li>{$item->name}</li>
{/foreach}
</ul>
and call it using {cms_module module="mymodule" what="item" listtemplate="order_by_myfield" orderby="myfield"}
taken from ctlmodulemaker faq
Re: AV Player (Audio Video Player module)
Posted: Fri Feb 12, 2010 9:43 am
by stetman
@Drew
I had the same problem. You can also use the tag for the uploads url:
mediafile}{$item-
Re: AV Player (Audio Video Player module)
Posted: Mon May 17, 2010 2:49 pm
by Kaylen
Hi,
First I want to say, great module, just what I needed!!
But...
I have a problem with the AVPlayer. I am running CMS 1.7.1 and the latest from AVPlayer and it installed fine and I created an mp3 template just like the help mentioned and I created 4 media files.
Then I added the following to my page: {cms_module module="avplayer" finaltemplate="mp3template" what="mediafile"}
When only 1 mediafile is active it works great, the mp3 gets played.
When all 4 mediafiles are active I get an overview of the 4 mediafile, I click on one and then when I click "play" nothing happends...
I checked my page source and it does have the right location for the mp3, but it keeps waiting and waiting never playing a thing...
This:
http://new.stellarexpress.nl/uploads/mp ... arfree/The Departure.mp3 is indeed the location of the mp3 and when I past this directly into my browser the song plays...
When I set it back to only 1 mediafile active (doesn't matter which one) the file playes inmediatly when I click "play".
Can someone please help me with this? I would very much appreciate it!!
Regards,
Kaylen
Re: AV Player (Audio Video Player module)
Posted: Tue May 18, 2010 3:38 am
by mw
to play a single song then you would uses "what=mediafile"
when you use:
{cms_module module="avplayer" finaltemplate="mp3template" what="mediafile"}
you are selecting just one file. I'm not sure how you managed to list all your files with the above...
to list all titles under the parent called "music"
{cms_module module="avplayer" parent="music" finaltemplate=mp3_template} (providing you have a parent called "music" )
then you will see a list of titles to choose from and when selecting one it will play.
or more simply:
{cms_module module="avplayer" finaltemplate=mp3_template}
will list everything regardless of parent
if you copy the contents of mp_template to the final_default then all you would need is:
{cms_module module="avplayer" }
which will do the same as the above.
Re: AV Player (Audio Video Player module)
Posted: Tue May 18, 2010 5:51 am
by Kaylen
Hi,
Thank you for your answer, but I have tried what you are saying now : {cms_module module="avplayer" finaltemplate=mp3_template} with the same result as what I mentioned in my earlier post.
I get a list of mediafiles, but when I click one and it opens another page with the player and I click play, the music doesn't get played....
Any more ideas? Thanks!
Re: AV Player (Audio Video Player module)
Posted: Mon Aug 02, 2010 4:25 pm
by Paul J
Firstly, thanks mw for developing this module!
I'm working on a test page at the moment and have the same problem as Kaylen in that individual MP3s display and play just fine:
Code: Select all
{cms_module module="avplayer" finaltemplate=mp3-template alias=Druk}
but if I use the below:
Code: Select all
{cms_module module="avplayer" finaltemplate=mp3-template parent=Sieben}
to display a list of MP3s under one category (parent), I get a list of the files in the category, and when I click on one, the player opens on a new page with the correct title, but nothing plays. I also checked the source code, and the correct path to the audio file is listed.
Anyone else having this problem? I'd be grateful if anyone had any more ideas; thanks in advance!
Paul
Re: AV Player (Audio Video Player module)
Posted: Tue Aug 10, 2010 6:09 pm
by mw
Paul, can you post your mp3-template?
or show a link to your test page
Re: AV Player (Audio Video Player module)
Posted: Fri Aug 13, 2010 2:02 pm
by Paul J
mw wrote:
Paul, can you post your mp3-template?
or show a link to your test page
Thanks for replying.
The template is below, as I've removed the links to multiple files for the moment. The site is installed in a sub-directory of my own webspace while it's still in development.
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://{$smarty.server.SERVER_NAME}/tursa/uploads{$item->mediafile}{$item->parent_object->parameters}"/>
<param name="wmode"value="transparent" />
</object>
Re: AV Player (Audio Video Player module)
Posted: Fri Aug 13, 2010 6:54 pm
by mw
You can see a test site with mp3 files listed here:
http://courtenay.widget-it.com/index.php?page=avplayer-2
the mp3 template is pretty standard:
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://{$smarty.server.SERVER_NAME}/uploads{$item->mediafile}{$item->parent_object->parameters}"/>
<param name="wmode"value="transparent" />
</object>
As your setup seems similar to the above the only thing I could suggest would be to hard code your server name instead of the smarty tag, from:
Code: Select all
<param name="FlashVars" value="mp3=http://{$smarty.server.SERVER_NAME}
to:
Code: Select all
<param name="FlashVars" value="mp3=http://www.myserver.com/uploads/etc
This is the list_default I am using in the above site:
Code: Select all
<h2>{$leveltitle}</h2><p>{$breadcrumbs}</p>
<ul>
{foreach from=$itemlist item="item"}
<li {if $item->is_selected}class="active"{/if}>{$item->detaillink}</li>
{/foreach}
</ul>
Also, my mp3 template is named mp3_template, and I have placed it in the page like:
Code: Select all
{cms_module module="avplayer" finaltemplate="mp3_template" parent="mp3player"}
I noticed your template is named mp3-template (dash no underscore)
Re: AV Player (Audio Video Player module)
Posted: Sat Aug 14, 2010 11:07 am
by Paul J
mw wrote:
You can see a test site with mp3 files listed here:
the mp3 template is pretty standard:
As your setup seems similar to the above the only thing I could suggest would be to hard code your server name instead of the smarty tag, from:
This is the list_default I am using in the above site:
Also, my mp3 template is named mp3_template, and I have placed it in the page like:
I noticed your template is named mp3-template (dash no underscore)
Thanks again for your help. I've just sent you a message with a link to a test page. Templates and things are as below:
mp3-template:
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://{$smarty.server.SERVER_NAME}/uploads{$item->mediafile}{$item->parent_object->parameters}"/>
<param name="wmode"value="transparent" />
</object>
Hard coding the server info didn't make any difference.
The sound files are referenced in the page as
Code: Select all
{cms_module module="avplayer" finaltemplate="mp3-template" parent=Sieben}
And the list_default is:
Code: Select all
<ul>
{foreach from=$itemlist item="item"}
<li {if $item->is_selected}class="active"{/if}>{$item->detaillink}</li>
{/foreach}
</ul>
Thanks in advance for any more suggestions you may have.
Cheers
Paul
Re: AV Player (Audio Video Player module)
Posted: Sat Aug 14, 2010 4:04 pm
by mw
Paul J wrote:
Thanks in advance for any more suggestions you may have.
Are you using "pretty urls" ?
View the source of your page that holds the list and compare it to the page that holds my list:
Code: Select all
<li ><a href="http://courtenay.widget-it.com/index.php?mact=avplayer,cntnt01,default,0&cntnt01finaltemplate=mp3_template&cntnt01parent=mp3player&cntnt01what=mediafile&cntnt01alias=sound-byte&cntnt01returnid=60">sound byte</a></li>
<li ><a href="http://courtenay.widget-it.com/index.php?mact=avplayer,cntnt01,default,0&cntnt01finaltemplate=mp3_template&cntnt01parent=mp3player&cntnt01what=mediafile&cntnt01alias=Schumann-1st&cntnt01returnid=60">Schumann.1st</a></li>
<li ><a href="http://courtenay.widget-it.com/index.php?mact=avplayer,cntnt01,default,0&cntnt01finaltemplate=mp3_template&cntnt01parent=mp3player&cntnt01what=mediafile&cntnt01alias=brahms-4th&cntnt01returnid=60">brahms 4th</a></li>
<li ><a href="http://courtenay.widget-it.com/index.php?mact=avplayer,cntnt01,default,0&cntnt01finaltemplate=mp3_template&cntnt01parent=mp3player&cntnt01what=mediafile&cntnt01alias=brahms2nd&cntnt01returnid=60">brahms2nd</a></li>
</ul>
Re: AV Player (Audio Video Player module)
Posted: Sat Aug 14, 2010 5:43 pm
by Paul J
mw wrote:
Are you using "pretty urls" ?
Yeah, example code below.
Code: Select all
<ul>
<li ><a href="http://www.mysitename.com/avplayer/detail/file-name-1/96">Song 1 name</a></li>
<li ><a href="http://www.mysitename.com/avplayer/detail/file-name-2/96">Song 2 name</a></li>
</ul>
Is that what the problem is? Won't this work with pretty URLs?
Thanks again for your help.
Paul