1 /*****************************************************************************
2 * SWTVideoWidget.java: A component usable in SWT Application, embeds JVLC
3 *****************************************************************************
5 * Copyright (C) 1998-2006 the VideoLAN team
7 * Author: Kuldipsingh Pabla <Kuldipsingh.Pabla@sun.com>
9 * Created on 10-jun-2006
13 * This program is free software; you can redistribute it
14 * and/or modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2 of the
16 * License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * General Public License for more details.
23 * You should have received a copy of the GNU General Public
24 * License along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
30 package org.videolan.jvlc;
31 import java.awt.Frame;
32 import java.awt.Component;
35 public class GenericVideoWidget {
37 * This class implements a Composite container for VLC Video Output
41 * The root SWT Frame we embed JVLCCanvas in
43 public Frame rootFrame;
44 private JVLCCanvas jvlcCanvas;
46 public GenericVideoWidget( Component parent ) {
47 // allocate the new AWT Frame to embed in the Composite
48 rootFrame = new Frame ();
50 // add the JVLCCanvas to the Frame
51 jvlcCanvas = new JVLCCanvas();
52 rootFrame.add( jvlcCanvas );
56 public JVLC getJVLC() {
57 return jvlcCanvas.getJVLC();