import logging

import gst

from mopidy.backends import BaseBackend, BasePlaybackController

logger = logging.getLogger(u'backends.gstreamer')

class GStreamerBackend(BaseBackend):
    def __init__(self, *args, **kwargs):
        super(GStreamerBackend, self).__init__(*args, **kwargs)

        self.playback = GStreamerPlaybackController(self)

class GStreamerPlaybackController(BasePlaybackController):
    PAUSED = gst.STATE_PAUSED
    PLAYING = gst.STATE_PLAYING
    STOPPED = gst.STATE_NULL

    def __init__(self, backend):
        super(GStreamerPlaybackController, self).__init__(backend)

@@ -590,8 +590,203 @@
 ackend)%0A
+%0A        bin = gst.element_factory_make(%22playbin%22, %22player%22)%0A        sink = gst.element_factory_make(%22fakesink%22, %22fakesink%22)%0A%0A        bin.set_property(%22video-sink%22, sink)%0A%0A        self.bin = bin%0A

Add basic playbin to gstreamer backend