KDE 4.2 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

VideoWidget Class Reference

from PyKDE4.phonon import *

Inherits: QWidget → QObject
Namespace: Phonon

Detailed Description

\class VideoWidget videowidget.h Phonon/VideoWidget Widget to display video.

This widget shows the video signal.

 MediaObject *media = new MediaObject(parent);
 VideoWidget *vwidget = new VideoWidget(parent);
 Phonon.createPath(media, vwidget);

Author:
Matthias Kretz <kretz@kde.org>


Enumerations

AspectRatio { AspectRatioAuto, AspectRatioWidget, AspectRatio4_3, AspectRatio16_9 }
ScaleMode { FitInView, ScaleAndCrop }

Methods

 __init__ (self, QWidget parent=0)
 __init__ (self, VideoWidgetPrivate d, QWidget parent)
Phonon.VideoWidget.AspectRatio aspectRatio (self)
float brightness (self)
float contrast (self)
 enterFullScreen (self)
bool event (self, QEvent a0)
 exitFullScreen (self)
float hue (self)
 mouseMoveEvent (self, QMouseEvent a0)
float saturation (self)
Phonon.VideoWidget.ScaleMode scaleMode (self)
 setAspectRatio (self, Phonon.VideoWidget.AspectRatio a0)
 setBrightness (self, float value)
 setContrast (self, float value)
 setFullScreen (self, bool fullscreen)
 setHue (self, float value)
 setSaturation (self, float value)
 setScaleMode (self, Phonon.VideoWidget.ScaleMode a0)

Method Documentation

__init__ (  self,
QWidget  parent=0
)

Constructs a new video widget with a parent.

__init__ (  self,
VideoWidgetPrivate  d,
QWidget  parent
)

Internal:

Constructs a new video widget with private data pointer d and a parent.

Phonon.VideoWidget.AspectRatio aspectRatio (   self )
float brightness (   self )
float contrast (   self )
enterFullScreen (   self )

Convenience slot, calling setFullScreen(true)

bool event (  self,
QEvent  a0
)
exitFullScreen (   self )

Convenience slot, calling setFullScreen(false)

float hue (   self )
mouseMoveEvent (  self,
QMouseEvent  a0
)
float saturation (   self )
Phonon.VideoWidget.ScaleMode scaleMode (   self )
setAspectRatio (  self,
Phonon.VideoWidget.AspectRatio  a0
)
setBrightness (  self,
float  value
)
setContrast (  self,
float  value
)
setFullScreen (  self,
bool  fullscreen
)
setHue (  self,
float  value
)
setSaturation (  self,
float  value
)
setScaleMode (  self,
Phonon.VideoWidget.ScaleMode  a0
)

Enumeration Documentation

AspectRatio

Let the decoder find the aspect ratio automatically from the media file (this is the default).

Enumerator:
AspectRatioAuto = 0
AspectRatioWidget = 1
AspectRatio4_3 = 2
AspectRatio16_9 = 3

ScaleMode

Make width/height == 16/9, which is the size of most current media. (16:9)

Enumerator:
FitInView = 0
ScaleAndCrop = 1

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal