<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi
    <div class="moz-forward-container">
      <p>I am running Linux Mint 19 Mate with VirtualBox on a Windows
        Host with all host and guest additions installed. Tests with
        GStreamer in a terminal showed, that only <i>autovideosink</i>
        works as video-sink in this environment (xvimagesink or
        ximagesink don't work) . The working GStreamer pipeline was
        successfully rebuilt in Gambas 3.13.0 with gb.media as follows:<br>
      </p>
      <p><tt>' Gambas class file</tt><tt><br>
        </tt><tt><br>
        </tt><tt>Public pl As MediaPipeline</tt><tt><br>
        </tt><tt>Public dr As DrawingArea</tt><tt><br>
        </tt><tt><br>
        </tt><tt>Public Sub Form_Open()</tt><tt><br>
        </tt><tt><br>
        </tt><tt>Dim src, snk As MediaControl</tt><tt><br>
        </tt><tt>Dim ftr1, ftr2 As MediaFilter</tt><tt><br>
        </tt><tt><br>
        </tt><tt>  With dr = New DrawingArea(Me)</tt><tt><br>
        </tt><tt>    .X = 10</tt><tt><br>
        </tt><tt>    .Y = 10</tt><tt><br>
        </tt><tt>    .W = 640</tt><tt><br>
        </tt><tt>    .H = 480</tt><tt><br>
        </tt><tt>    .Background = Color.Black</tt><tt><br>
        </tt><tt>  End With</tt><tt><br>
        </tt><tt>  </tt><tt><br>
        </tt><tt>  FMain.width = dr.w + 20</tt><tt><br>
        </tt><tt>  </tt><tt><br>
        </tt><tt>  pl = New MediaPipeline </tt><tt><br>
        </tt><tt>  </tt><tt><br>
        </tt><tt>  ' 'With webcam</tt><tt><br>
        </tt><tt>  ' src = New MediaControl(pl, "v4l2src")</tt><tt><br>
        </tt><tt>  ' src["device"] = "/dev/video0"</tt><tt><br>
        </tt><tt>  ' ftr1 = New MediaFilter(pl, "jpegdec")  </tt><tt><br>
        </tt><tt>  ' ftr2 = New MediaFilter(pl,
          "video/x-raw,width=640,height=480,framerate=15/1")</tt><tt><br>
        </tt><tt>  ' snk = New MediaControl(pl, "autovideosink")</tt><tt><br>
        </tt><tt>  ' src.LinkTo(ftr1)</tt><tt><br>
        </tt><tt>  ' ftr1.Linkto(ftr2)</tt><tt><br>
        </tt><tt>  ' ftr2.LinkTo(snk)</tt><tt><br>
        </tt><tt>  </tt><tt><br>
        </tt><tt>  'With test source</tt><tt><br>
        </tt><tt>  src = New MediaControl(pl, "videotestsrc")</tt><tt><br>
        </tt><tt>  snk = New MediaControl(pl, "autovideosink")</tt><tt><br>
        </tt><tt>  src.LinkTo(snk)</tt><tt><br>
        </tt><tt><br>
        </tt><tt>  'pl.SetWindow(dr)</tt><tt><br>
        </tt><tt> </tt><tt><br>
        </tt><tt>End</tt><tt><br>
        </tt><tt><br>
        </tt><tt>Public Sub Button1_Click()</tt><tt><br>
        </tt><tt><br>
        </tt><tt>  pl.pause</tt><tt><br>
        </tt><tt>  pl.Play()</tt><tt><br>
        </tt><tt><br>
        </tt><tt>End</tt><tt><br>
        </tt><tt><br>
        </tt><tt>Public Sub Button2_Click()</tt><tt><br>
        </tt><tt> </tt><tt><br>
        </tt><tt>  pl.pause</tt><tt><br>
        </tt><tt>  pl.close</tt><tt><br>
        </tt><tt>  pl.stop</tt><tt><br>
        </tt><tt><br>
        </tt><tt>End</tt></p>
      <p>The problem: When I am trying with the above out-commented
        command line "pl.SetWindow(dr)" to display the video in a Gambas
        control, Gambas throws the error "Not supported on this
        control". Earlier examples found in the Web showed, that this
        was working with Drawing Areas. Did this function went lost? Is
        there anything wrong in my program? <br>
      </p>
      <p>Claus<br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <p> <br>
      </p>
    </div>
  </body>
</html>