Forums / Setup & design / ezP and Web cam : possible ?

ezP and Web cam : possible ?

Author Message

laurent le cadet

Wednesday 08 December 2004 8:14:30 am

Hi,

I have a client which want a web cam on his site.
I want to make this site with ezP but I never used a web cam before.
Is there someone who experiment this before ?
Is it compatible ?

Thanks.

Laurent.

Alex Jones

Wednesday 08 December 2004 8:30:35 am

While I don't know which interface your client's camera needs to use, I don't know of any reason why this wouldn't work. At the very least you could use an iframe to include the camera feed.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

laurent le cadet

Wednesday 08 December 2004 8:52:05 am

Hi Alex,

I don't know which interface is use and what's the process between the camera and the server which host the site (I'm completly new about this).

I presume that the camera sends .jpg every x minutes via an interface but I can manage to imagine how this images can be store dynamically on an eZ site.

But your right. A "magic" Iframe can do the trick.

Thanks.

Laurent

Ps : I'm still interest on informations about the process between the cam and the server.

Alex Jones

Wednesday 08 December 2004 9:14:11 am

Well, the only time I have worked with a web camera was 6+ years ago, so I'm sure a lot has changed. That particular camera had it's own server within it, so it dealt with everything internally. Hopefully someone with more recent knowledge will speak up. :)

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

laurent le cadet

Wednesday 08 December 2004 9:24:41 am

Thanks again for your fresh info ;))

For my opinion, webcams are gadgets and it's better to concentrate on more usefull content.
But "clients are kings" as we say here (France) !

So everything will be welcome.

Laurent.

Marko Žmak

Wednesday 08 December 2004 5:32:24 pm

As far se my experience goes, the web cam can send you data in two (most popular) ways. The first is sending a jpeg image as you mentioned, and the second is using live streaming.

In the first case the mechanism usually works like this: the picture is sent to the server and then stored somewhere. In which way it depends on the server. It could be done via email, ftp, web form or some other way. If this case is your case, check out how it's done and where the picture is stored. Then you should just include this image somwhere in your page, it can be done independently, without using any of the eZ mechanism.

In the second case you shuld use a server that supports live streaming. For this purpose you can use live streaming on the server where your site is located (if it exists) or on some other server. I've never done it, but it should be easy. In my opinion, you should basically, only put a link to the live streaming URL of your camera somwhere on your site.

In general using a web cam should be totally independent of eZ mechanism.

Hope this helps.

I'm planning to do something like this in the future so I would be glad to see what are your results and experiences. Hope you make it.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Paul Forsyth

Thursday 09 December 2004 12:43:18 am

We built a site for webcams a year or so ago. Its a private site so we cant give a url.

Its certainly possible. As Marko suggests keep the webcam part separate from eZ. Use eZ to view the pictures in some way, such as an iframe. You will likely need to write a module to handle the image interaction.

paul

laurent le cadet

Thursday 09 December 2004 12:46:53 am

thanks guys.
Laurent.

eZ debug

Timing: Jan 18 2025 10:21:59
Script start
Timing: Jan 18 2025 10:21:59
Module start 'content'
Timing: Jan 18 2025 10:21:59
Module end 'content'
Timing: Jan 18 2025 10:21:59
Script end

Main resources:

Total runtime0.2126 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.8281180.8359
Module start 'content' 0.00610.0058 769.6641101.8672
Module end 'content' 0.01190.2007 871.5313530.1484
Script end 0.2125  1,401.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.6578200.0002
Check MTime0.00130.6298200.0001
Mysql Total
Database connection0.00090.430310.0009
Mysqli_queries0.161575.93541410.0011
Looping result0.00160.76501390.0000
Template Total0.200294.110.2002
Template load0.00080.360710.0008
Template processing0.199493.785810.1994
Override
Cache load0.00050.250610.0005
Sytem overhead
Fetch class attribute can translate value0.00120.568110.0012
XML
Image XML parsing0.00020.116210.0002
General
dbfile0.00452.0989200.0002
String conversion0.00000.002930.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.0002 secs