New mp3 and Ral Media Streaming extension

Author Message

Stuart Fenton

Saturday 30 September 2006 2:51:00 pm

I'm creating this forum in case anyone needs help with the extension I've just posted. Please feel free to ask any questions if you need to ask them.

The contribution can be found here:
http://ez.no/community/contribs/datatypes/audio_datatype_that_provided_mp3_and_real_media_streaming

Regards
fats.

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

Pascal France

Saturday 21 October 2006 11:50:22 am

Hi Fats,

I've a trouble with your extension and ezp 3.7.4: you can see here:
http://www.linuxorable.fr/ez_publish/index.php/linuxorable/musique/abba_mp3
what happen if you click on the file (The message says that you can't access this object so you have to log in).

I have created a new audio class with only the audio datatype.
This new class belongs to content class group which belongs to Standard section.
Anonymous users can read all classes in the standard section.

The m3u and mp3 files are in:
ez_publish/var/plain/storage/original/audio/

var/ and all sub-directories have rights 777 (to be sure)

If I use this URI:
http://www.linuxorable.fr/ez_publish/var/plain/storage/original/audio/1d12fdd569949d1c6e54c388523f9500.mp3
I can play the mp3 with xmms
But if I use:
http://www.linuxorable.fr/ez_publish/var/plain/storage/original/audio/1d12fdd569949d1c6e54c388523f9500.m3u
I get an error message from xmms:
Connection to www.linuxorable.fr impossible
Serveur returns: 404 NOT FOUND

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Stuart Fenton

Saturday 21 October 2006 4:42:48 pm

Have you updated the ini file to your web address like 'www.grandmore.com'. You need to do this to make the m3u file to know where to look for the original file.

If you download at the m3u file and open it in a text editor it will describe the path to your file. What does it say?

Usually the reason it won't pass the address of you original file is because you haven't specified where you file is located.

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

Pascal France

Saturday 21 October 2006 11:36:37 pm

Hi Fats,

Yes I have updated the extension/audio/settings/audio.ini.append.php which now contains:

<?php /* #?ini charset="iso-8859-1"?

[audio]
LinkFileSiteName=www.linuxorable.fr/ez_publish
...
...
...
[LinkFileFileSettings]
#eg LinkFileSiteName=www.site.com
# The LinkFileSiteName holds the name of the site that gets written into the m3u files
# This is usefull when testing the server and know it will be moved.
# This variable gets tested when a file is requested for download. If it does not match the
# m3u file it gets rewitten to this variable.
LinkFileSiteName=www.linuxorable.fr/ez_publish
...
...
...

The .m3u file contains this:
http://www.linuxorable.fr/ez_publish/linuxorable/audio/download/1420/6407/file/ABBA%20-%20Gimme%21%20gimme%21%20gimme%21.mp3
and the mp3 file is in:
ez_publish/var/plain/storage/original/audio/1d12fdd569949d1c6e54c388523f9500.mp3
(and you can access and play it)

I did a second test and the m3u file contains:
http://www.linuxorable.fr/ez_publish/linuxorable/audio/download/1421/6408/file/ABBA.mp3
and the mp3 file is in:
ez_publish/var/plain/storage/original/audio/64eae918b231a6970d5540cf95d823b4.mp3
(and you can access and play it)

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Sunday 22 October 2006 3:18:52 am

Hi,

I would like to know when is the extension/audio/design/plain/templates/node/view/listitem.tpl used ?

I did an override to use this template but it does not give the m3u or mp3 URL

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Stuart Fenton

Thursday 26 October 2006 11:17:32 am

Sorry to take so long to get back to you.

What exactly is the problem?

I think the extension is using the "plain" design so perhaps that's why it's not loading on your site. If your not using a plain design you will need to create appropriate design overrides for the design that as the same as you have used. For example "shop".

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

Julian Mancera Garcia

Thursday 13 November 2008 12:06:06 pm

Hi,

I was wondering if the extension works for eZ4.x. Have you made an upgrade?

Regards

Julian

Dhaivat Naik

Wednesday 21 January 2009 10:49:02 pm

Hi,

this works on ez 4.0? it would be gr8 if it works on ez 4.0.

Regards,

Dhaivat

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:15:49
Script start
Timing: Jan 31 2025 01:15:49
Module start 'layout'
Timing: Jan 31 2025 01:15:49
Module start 'content'
Timing: Jan 31 2025 01:15:49
Module end 'content'
Timing: Jan 31 2025 01:15:49
Script end

Main resources:

Total runtime0.0265 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2656151.2266
Module start 'layout' 0.00550.0036 739.4922220.7188
Module start 'content' 0.00910.0159 960.21091,005.9609
Module end 'content' 0.02490.0015 1,966.171941.9922
Script end 0.0264  2,008.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00269.6704140.0002
Check MTime0.00114.1337140.0001
Mysql Total
Database connection0.00114.228210.0011
Mysqli_queries0.00228.207030.0007
Looping result0.00000.053110.0000
Template Total0.00114.210.0011
Template load0.00093.216610.0009
Template processing0.00030.992710.0003
Override
Cache load0.00062.102410.0006
General
dbfile0.00228.255680.0003
String conversion0.00000.028840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs