This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Clutter; | |
using Gst; | |
using ClutterGst; | |
class AwesomeVideoActor { | |
private Clutter.Stage stage; | |
private Gst.Pipeline pipeline; | |
private Gst.Bus bus; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(process:25579): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed | |
(process:25579): ClutterGLX-CRITICAL **: Unable to find suitable GL visual. | |
(awesome:25579): GStreamer-CRITICAL **: | |
Trying to dispose element cluttergstvideosink0, but it is in READY instead of the NULL state. | |
You need to explicitly set elements to the NULL state before | |
dropping the final reference, to allow them to clean up. | |
This problem may also be caused by a refcounting bug in the | |
application or some element. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os, sys, optparse | |
import clutter | |
import gtk | |
import gst | |
import cluttergst | |
import gobject | |
gobject.threads_init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Gtk; | |
using Gst; | |
public class VideoSample : Window { | |
private DrawingArea drawing_area; | |
private Pipeline pipeline; | |
private Element src; | |
private Element sink; | |
private Element decode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Clutter; | |
using Mx; | |
class ButtonBar : Mx.BoxLayout { | |
public signal void play(); | |
public signal void spin1(); | |
public signal void spin2(); | |
delegate void ClickResponder(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Clutter; | |
using Mx; | |
class ButtonBar : Mx.BoxLayout { | |
public signal void play(); | |
public signal void spin1(); | |
public signal void spin2(); | |
delegate void ClickResponder(Mx.Button button); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Clutter; | |
using Gst; | |
using ClutterGst; | |
using Mx; | |
public class VideoPlayer { | |
private string fileName; | |
private Pipeline pipeline; | |
private Element src; | |
private Element sink; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MxBoxLayout { | |
padding: 10; | |
background-color: #8888; | |
/* FIXME: These don't work until Mx 1.1 */ | |
spacing: 10; | |
opacity: 50.5; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SORTEDLIST_H | |
#define SORTEDLIST_H | |
#include <QList> | |
#include <QObject> | |
#include <QtAlgorithms> | |
template <typename T> | |
class SortedList : public QList<T> | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SORTEDLIST_H | |
#define SORTEDLIST_H | |
#include <QList> | |
#include <QtAlgorithms> | |
template <typename T> | |
class SortedList : public QList<T> | |
{ | |
public: |
OlderNewer