Forums / Developer / New mp3 and Ral Media Streaming extension

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

eZ debug

Timing: Jan 31 2025 00:26:50
Script start
Timing: Jan 31 2025 00:26:50
Module start 'content'
Timing: Jan 31 2025 00:26:50
Module end 'content'
Timing: Jan 31 2025 00:26:50
Script end

Main resources:

Total runtime0.1848 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0625370.2734
Module start 'content' 0.00680.0131 958.33591,009.7031
Module end 'content' 0.01990.1649 1,968.03913,898.0391
Script end 0.1848  5,866.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00422.2610200.0002
Check MTime0.00120.6656200.0001
Mysql Total
Database connection0.00070.374010.0007
Mysqli_queries0.094951.33781410.0007
Looping result0.00120.64671390.0000
Template Total0.164589.010.1645
Template load0.00070.373410.0007
Template processing0.163888.646510.1638
Override
Cache load0.00050.258010.0005
Sytem overhead
Fetch class attribute can translate value0.00191.029110.0019
XML
Image XML parsing0.00030.154710.0003
General
dbfile0.00673.6497200.0003
String conversion0.00000.002830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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