Announcement

  •  » Extensions
  •  » charlie content-jw flv player help

#1 2009-08-23 23:33:58

saqwild
Member
2009-06-13
64

charlie content-jw flv player help

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.

Code:

<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

 

#2 2009-08-24 07:29:29

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: charlie content-jw flv player help

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).


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2009-08-24 11:32:05

saqwild
Member
2009-06-13
64

Re: charlie content-jw flv player help

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

 

#4 2009-08-24 15:22:52

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: charlie content-jw flv player help

unselect the extension from other .tpl

eg. unselect .mid from charlie_music.tpl before selecting it  for charlie_quicktime.tpl


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#5 2009-08-24 17:32:47

saqwild
Member
2009-06-13
64

Re: charlie content-jw flv player help

ya but .mp3 can not be unselected. it is always stick to musicplayer tpl file

Offline

 

#6 2009-08-24 20:46:35

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: charlie content-jw flv player help

.mp3 might be unselected from charlie_mp3player.tpl (standard).

If it is not the case, please, tell us which browser you're using.

;-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#7 2009-08-26 12:56:08

saqwild
Member
2009-06-13
64

Re: charlie content-jw flv player help

firefox
i tried un-selecting but it doesnt go.

Offline

 

#8 2009-08-26 13:25:40

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: charlie content-jw flv player help

mail sent.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#9 2009-08-28 17:22:14

saqwild
Member
2009-06-13
64

Re: charlie content-jw flv player help

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

 

#10 2009-08-28 20:53:39

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: charlie content-jw flv player help

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.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#11 2009-08-28 21:24:25

saqwild
Member
2009-06-13
64

Re: charlie content-jw flv player help

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

 

#12 2009-08-28 23:34:30

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: charlie content-jw flv player help

Available relative URL (to try):

{$current.element_url}

If it doesn't work just tell me if you need more ../ or less.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#13 2009-08-29 03:40:49

saqwild
Member
2009-06-13
64

Re: charlie content-jw flv player help

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

 

#14 2009-08-29 08:39:42

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: charlie content-jw flv player help

../../../{$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 - ...


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#15 2009-08-29 08:41:41

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: charlie content-jw flv player help

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?


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 
  •  » Extensions
  •  » charlie content-jw flv player help

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact