Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Web Cam and XUL

33 views
Skip to first unread message

Ravi Singh

unread,
Oct 8, 2007, 3:42:42 AM10/8/07
to
Hi,
I am trying to display my web cam output to XUL window.But no
success...I am using Firefox3(gran paradiso alpha7) on Ubuntu fiesty
7.04.
I have a SDL window which pops up with the web cam output. But I don't
want the web cam output in SDL window but in my XUL.
How can we use XUL to display my web cam video(live) in it.Is it
possible??

Thanks,
~Ravi

Nickolay Ponomarev

unread,
Oct 8, 2007, 7:24:46 AM10/8/07
to Ravi Singh, dev-te...@lists.mozilla.org
You can write a binary NPAPI plugin, like Flash and use it (via
<object>) in a XUL window.

http://developer.mozilla.org/en/docs/NPAPI

Nickolay

Nickolay Ponomarev

unread,
Oct 9, 2007, 6:24:04 AM10/9/07
to Ravichandra Singh, dev-te...@lists.mozilla.org
On 10/9/07, Ravichandra Singh <rcsi...@gmail.com> wrote:
> Thanks for the reply nickolay.
> Isn't there any other method of doing this (like passing the window ID of
> our XUL to SDL to just use our XUL window for rendering) ??
>
If you want to paint the whole window, why do you need it to be XUL?
This is probably possible, but I don't have any tips here.

Nickolay

Nickolay Ponomarev

unread,
Oct 9, 2007, 9:20:44 AM10/9/07
to Ravichandra Singh, dev-te...@lists.mozilla.org
On 10/9/07, Ravichandra Singh <rcsi...@gmail.com> wrote:
> No I don't want to paint the whole XUL window just a part of it I need to
> use for web cam capture window rendering.
> Can't we use <canvas> or <iframe> for this??
>
No, it would be harder to implement properly than an NPAPI plugin,
IMO. iframe won't help you and I'm not sure if you can implement
custom rendering contexts for <canvas>.

Nickolay

Question

unread,
Oct 10, 2007, 5:07:04 AM10/10/07
to Nickolay Ponomarev, dev-te...@lists.mozilla.org
Do you mean call an application like this?

<object id="player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject" width="300" height="60">

I'm a newbie, what does "NPAPI plugin" means?
cpp files compiled to dll and make idl/xpt for it?
I'm not sure. Any examples?

On 10/8/07, Nickolay Ponomarev <asqu...@gmail.com> wrote:
>
> On 10/8/07, Ravi Singh <rcsi...@gmail.com> wrote:

> You can write a binary NPAPI plugin, like Flash and use it (via
> <object>) in a XUL window.
>
> http://developer.mozilla.org/en/docs/NPAPI
>
> Nickolay

> _______________________________________________
> dev-tech-xul mailing list
> dev-te...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-xul
>

--
>: ~

Nickolay Ponomarev

unread,
Oct 10, 2007, 5:19:10 AM10/10/07
to Question, dev-te...@lists.mozilla.org
On 10/10/07, Question <wanl...@gmail.com> wrote:
> Do you mean call an application like this?
>
> <object id="player"
> classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
> type="application/x-oleobject" width="300" height="60">
>
DLLs invoked via <object>, yes.

> I'm a newbie, what does "NPAPI plugin" means?
> cpp files compiled to dll and make idl/xpt for it?
> I'm not sure. Any examples?
>

See the link I posted. No IDL/XPT, since this is a cross-browser API
and XPCOM is moz-specific.

Nickolay


>
> On 10/8/07, Nickolay Ponomarev <asqu...@gmail.com> wrote:
> >
> > On 10/8/07, Ravi Singh <rcsi...@gmail.com> wrote:

MaX

unread,
Oct 11, 2007, 10:53:49 AM10/11/07
to Ravi Singh, dev-te...@lists.mozilla.org
On 10/8/07, Ravi Singh <rcsi...@gmail.com> wrote:

You can otherwise use the VLC Mozilla plugin (www.videolan.org). The
API is easy to use to show the webcam stream into a XUL page.

--
Max

0 new messages