Forums / Install & configuration / I can't see my .flv video on my site

I can't see my .flv video on my site

Author Message

Maxim Kopytov

Friday 06 November 2009 11:18:09 pm

Hallo!
I use eZ Publish 4.2.0 with "plain site" package on Windows XP, Apache, MySQL.
I want to make video gallery.
I have installed eZFlow package without content classes on my "plain site", because i need "Video/Flash Player" content class only.
I have exported "Video/Flash Player" content class from other full eZ Flow site, and then i have imported "Video/Flash Player" package into my "plain site".
Then i have copied flash_player.swf into \design\plain_site\flash\
and flash_player.tpl into \design\plain_site\override\templates\full\ from other full eZ Flow site.

I have added this block

[full_flash_player]
 Source=node/view/full.tpl
 MatchFile=full/flash_player.tpl
 Subdir=templates
 Match[class_identifier]=flash_player

into \settings\siteaccess\ncom\override.ini.append.php

Now I'm trying to watch my .flv video, but I can't see as the clip and the flash video player.
Where is my bug and how can i add flash video player on my site?

This is source code from loaded page:

 <script type="text/javascript">

    <!--
 insertMedia(
'<object type="application/x-shockwave-flash"
data="/design/plain_site/flash/flash_player.swf" width="448"
height="354"> ');

        insertMedia( '<param name="movie" value="/design/plain_site/flash/flash_player.swf"  /> ');
        insertMedia( '<param name="scale" value="exactfit" /> ');
        insertMedia( '<param name="allowScriptAccess" value="sameDomain" />');
        insertMedia( '<param name="allowFullScreen" value="true" />');
        insertMedia( '<param name="flashvars" value="moviepath=/index.php/ncom/content/download/73/268&amp;embedurl=<a href="http://nc.local/flash/embed/73&amp;embedlink=http://nc.local/index.php/ncom/Novosti/Video-rolik%22" title="http://nc.local/flash/embed/73&amp;embedlink=http://nc.local/index.php/ncom/Novosti/Video-rolik"">http://nc.local/flash/embed/73&am...x.php/ncom/Novosti/Video-rolik"</a> />');
        insertMedia( '<p>No <a href="<a href="http://www.macromedia.com/go/getflashplayer%22%3EFlash" title="http://www.macromedia.com/go/getflashplayer">Flash">http://www.macromedia.com/go/getflashplayer">Flash</a> player<\/a> avaliable!<\/p>');
        insertMedia( '<\/object>' );

    //-->

    </script>



    <noscript>
 <object
type="application/x-shockwave-flash"
data="/design/plain_site/flash/flash_player.swf" width="448"
height="354">

        <param name="movie" value="/design/plain_site/flash/flash_player.swf" />
        <param name="scale" value="exactfit" />
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
        <param name="flashvars" value="moviepath=/index.php/ncom/content/download/73/268&amp;embedurl=<a href="http://nc.local/flash/embed/73&amp;embedlink=http://nc.local/index.php/ncom/Novosti/Video-rolik%22" title="http://nc.local/flash/embed/73&amp;embedlink=http://nc.local/index.php/ncom/Novosti/Video-rolik"">http://nc.local/flash/embed/73&am...x.php/ncom/Novosti/Video-rolik"</a> />
        <p>No <a href="<a href="http://www.macromedia.com/go/getflashplayer%22%3EFlash" title="http://www.macromedia.com/go/getflashplayer">Flash">http://www.macromedia.com/go/getflashplayer">Flash</a> player</a> avaliable!</p>

    </object>

______________
I love eZ Publish

Yannick Komotir

Tuesday 10 November 2009 8:26:54 am

Hello !

Try to type your swf url directly on your browser and look at if you can see it.

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Maxim Kopytov

Tuesday 10 November 2009 1:41:16 pm

"

Hello !

Try to type your swf url directly on your browser and look at if you can see it.

"

You are very clever, but Your answer is useless...
I have tried it!
This direct link shown me video clip.

http://nc.local/var/plain_site/storage/original/video/06c1ba70708b4a81e1a88dcd5ad40350.flv

But I need in flash video player + flv clip
And this link

http://nc.local/design/plain_site/flash/flash_player.swf

shown me flash video player.
But I need in flash video player with uploaded clip from storage.
FireBug report me:

 insertMedia is not defined 

<a href="http://nc.local/ncom/Novosti/Video-rolik" title="http://nc.local/ncom/Novosti/Video-rolik">http://nc.local/ncom/Novosti/Video-rolik</a>    Line 298

*insertMedia( '<object type="application/x-shockwave-flash"
data="/design/plain_site/flash/flash_player.swf" width="448"
height="354"> ');

Where is my bug? Help me please.

______________
I love eZ Publish

Bertrand Dunogier

Tuesday 10 November 2009 4:09:07 pm

Maxim,

calling Yannick's answer's "useless" is a bit rude. He was trying to help you determine where the error is, and checking first if the flash item can be accessed is a good first step.

insertMedia is a JS function right ? Is it defined ?

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Maxim Kopytov

Tuesday 10 November 2009 9:39:43 pm

"

Maxim,
calling Yannick's answer's "useless" is a bit rude. He was trying to help you determine where the error is, and checking first if the flash item can be accessed is a good first step.

"

Hallo, Bertrand!
Hallo, Yannick!
Yannick, I'm sorry for my rudeness!
But I'm think that You answer for me with a jeer.
I'm take back my words.
What do You think about my problem with eZFlow and flash player?
I'm novice in eZ Publish.

______________
I love eZ Publish

Sylvain Gogel

Wednesday 11 November 2009 2:48:59 am

you are missing a .js file

check in ezflow/ if you have insertmedia.js and if it is declared in ezflow/settings/design.ini.append.php

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

Maxim Kopytov

Friday 13 November 2009 11:11:46 am

Hallo guys!
Thank you very much for your regard!

And I'm very sorry for my English and rudeness!

Realy it was a problem with insertMedia function as Bertrand said.

I had no insertmedia.js file and match setting in design.ini.append.php as Sylvain said.

I have copied insertmedia.js into \www\design\plain_site\javascript\
and have inserted this block

[JavaScriptSettings]
JavaScriptList[]=insertmedia.js

into \www\settings\siteaccess\<site>\design.ini.append.php

After that I have seen video player with my .flv clip!
It's great!

Yannick, Bertrand and Sylvain, thank you very much!

______________
I love eZ Publish

Bertrand Dunogier

Saturday 14 November 2009 2:04:33 am

No offense taken, and don't worry about your english :-)

Glad your issue was fixed.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

eZ debug

Timing: Jan 17 2025 23:59:21
Script start
Timing: Jan 17 2025 23:59:21
Module start 'content'
Timing: Jan 17 2025 23:59:21
Module end 'content'
Timing: Jan 17 2025 23:59:21
Script end

Main resources:

Total runtime0.7447 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.8359180.8203
Module start 'content' 0.00510.6174 768.6563733.3047
Module end 'content' 0.62260.1220 1,501.9609348.4375
Script end 0.7446  1,850.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5596210.0002
Check MTime0.00150.2000210.0001
Mysql Total
Database connection0.00070.088410.0007
Mysqli_queries0.642086.21412130.0030
Looping result0.00250.33822110.0000
Template Total0.717496.320.3587
Template load0.00210.277220.0010
Template processing0.715396.053120.3577
Template load and register function0.00010.014910.0001
states
state_id_array0.00090.124510.0009
state_identifier_array0.00100.128520.0005
Override
Cache load0.00200.2675850.0000
Sytem overhead
Fetch class attribute can translate value0.00160.217050.0003
Fetch class attribute name0.00130.1754120.0001
XML
Image XML parsing0.00380.503850.0008
class_abstraction
Instantiating content class attribute0.00000.0042160.0000
General
dbfile0.00450.6050450.0001
String conversion0.00000.000830.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 63
 Number of unique templates used: 9

Time used to render debug report: 0.0002 secs