Video : how to get the width and height

Author Message

Pascal France

Thursday 06 May 2010 8:29:04 pm

Hi,

In this page:

http://ez.no/doc_hidden/ez_publish/technical_manual/4_x/reference/objects/ezmedia

it seems we can get the width and height of a video file.

Could someone show me the way to do such a thing ?

I'm playing with « {$videos.0.xxx|attribute(show)} for quite a while without success.

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

Håvard Bergersen

Saturday 15 May 2010 12:39:37 pm

Have you tried?

$node.data_map.file.content.height

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 30 2025 01:04:35
Script start
Timing: Jan 30 2025 01:04:35
Module start 'layout'
Timing: Jan 30 2025 01:04:35
Module start 'content'
Timing: Jan 30 2025 01:04:35
Module end 'content'
Timing: Jan 30 2025 01:04:35
Script end

Main resources:

Total runtime0.0143 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2578151.2266
Module start 'layout' 0.00480.0022 739.484436.6953
Module start 'content' 0.00700.0062 776.179790.2188
Module end 'content' 0.01320.0011 866.398429.9922
Script end 0.0143  896.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002114.5333140.0001
Check MTime0.00096.3717140.0001
Mysql Total
Database connection0.00085.472610.0008
Mysqli_queries0.002114.561630.0007
Looping result0.00000.091410.0000
Template Total0.00085.610.0008
Template load0.00064.473810.0006
Template processing0.00021.135110.0002
Override
Cache load0.00043.074510.0004
General
dbfile0.002517.431780.0003
String conversion0.00000.063240.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