Hi,
i have associated jw flv player with charlies content plugin, since this is one place support for variety of files and play list.
some how i am not able to play .aac files.
<script type="text/javascript" src="{$ROOT_URL}swfobject.js"></script> <script type="text/javascript"> swfobject.registerObject("player","10.0","{$ROOT_URL}expressInstall.swf"); </script> <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="{$resolution_x}" height="{$resolution_y}"> <param name="movie" value="{$ROOT_URL}player-viral.swf" /> {if ($Charlies.full==1)}<param name="allowFullScreen" value="true" />{/if} <param name="allowscriptaccess" value="always" /> <param name="flashvars" value="file={$SRC_IMG}&image=preview.jpg" /> <object type="application/x-shockwave-flash" data="{$ROOT_URL}player-viral.swf" width="328" height="200"> <param name="movie" value="{$ROOT_URL}player-viral.swf" /> {if ($Charlies.full==1)}<param name="allowFullScreen" value="true" />{/if} <param name="allowscriptaccess" value="always" /> <param name="flashvars" value="file={$SRC_IMG}&image=preview.jpg" /> <p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p> </object> </object>
using above code it does play mp3,mid,wave and other files. but when its a matter of .aac it doesnt play.
what i have seen from the error log that it strips out the .aac extension i.e if file name is test.aac the error log will show
"can not play file "test"
any suggestion
Offline
I am not familiar with .aac files.
I have to make a lot of tests before giving a solution.
Some people are using .aac on their website if they can give the solution.
(I think you aren't using the right player).
Offline
one Q VD, how can i associate all the files to one player in the backend (admin panel) for example, i want to all wav, midi,mp3,aac,etc files to quicktime player.
i tried but .mp3 file doesnt move. its always sticking to default (music player)
Offline
unselect the extension from other .tpl
eg. unselect .mid from charlie_music.tpl before selecting it for charlie_quicktime.tpl
Offline
ya but .mp3 can not be unselected. it is always stick to musicplayer tpl file
Offline
.mp3 might be unselected from charlie_mp3player.tpl (standard).
If it is not the case, please, tell us which browser you're using.
;-)
Offline
firefox
i tried un-selecting but it doesnt go.
Offline
mail sent.
Offline
Hi Digi
i have solved the issue, now i have associate Jw Flv player with all mp3 and wav file type.
the only problem is the .aac file.
i have gone thru many article and finally come to conclusion that its not the Charlie's problem. this is related to relative and absolute file path.
as someone says
An absolute URL always works —IF— the FLV file is accessible from the Internet.
If you use a relative URL for a FLV file, the origin of the relative URL is the location of the Flash movie (player.swf).
http://www.domain.com/player/player.swf
http://www.domain.com/video/video.flv
The origin of the relative URL is:http://www.domain.com/player/
therefore, the relative URL would be:../video/video.flv
Up one level to root, down one level to video.
this is why it wont read any flv or .aac files
i ma using $src_img and $src_img_encoded to call the files (which works fine with all other file type)
is there any alternate to $src_img which show the relative file path like
.././././/gallies/folder1/folder2/file.aac
i think i am close to it, but not finding the proper variable to call
your help is appreciated
Thaks
\
Last edited by saqwild (2009-08-28 17:55:54)
Offline
I didn't understand every detail points of your explanation.
It isn't a matter.
First step: On your website the .acc extension is associated to charlies_quicktime.tpl
Unselect it.
Save the configuration.
Before speaking about absolute URL or not...
Which tpl do you want to read any .aac extension?
Please tell me.
Offline
hi digi,
i will keep using quicktime.tpl but will associate Jw player instead of Quicktime plugin.
for this i need relative path of the file directory.
like ../././galleries/folder1/folder2/file.aac
i think this is not possible using $src_img variable
Offline
Available relative URL (to try):
{$current.element_url}
If it doesn't work just tell me if you need more ../ or less.
Offline
more ../
and just for info what could be for less
as well is there any variable that hold url from root like /home/user/domain/galleries/category/file.ext
Offline
../../../{$current.element_url}
less by 1
{$current.element_url|@substr:3}
less by 2
{$current.element_url|@substr:6}
substr is the native php-function (Php documentation on the substr function).
In Smarty substr php-function is called a "Variable Modifier"
All php-functions can be used as modifiers.
For more information read that page Variable Modifiers directly from Smarty documentation and don't miss the following paragraph and its first pitfall
All php-functions can be used .../... modifiers has two little pitfalls:
First - ...
Offline
saqwild wrote:
as well is there any variable that hold url from root like /home/user/domain/galleries/category/file.ext
Not available currently.
Do you really need that one? Why?
Offline