<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<div>Hello,</div>
<div>you have use a "MediaPipeline" as MediaContatiner Parent.</div>
<div>Exemplum:</div>
<div> <em>Public hControl As MediaControl</em></div>
<div><em> Public Sub Main()</em><br /><br /><em> Dim pl As MediaPipeline</em><br /> <br /><em> <span style="color: #ff0000;">pl = New MediaPipeline</span> </em><br /> <br /><em> hControl = New MediaControl(<strong><span style="color: #ff0000;">pl</span></strong>, "fdsink")</em></div>
<div><em><br /></em></div>
<div><em> ...etc....<br /></em></div>
<div><em><br /></em></div>
<div><em><br /></em></div>
<div>and <em> hControl["fd"] = ... </em>doesn't want a String, it wants an "Integer" value.</div>
<p>Il 12.04.2020 18:45 T Lee Davidson ha scritto:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>I am trying to create a new MediaControl with the Type="fdsink". But, I get errors on creation.
It seems that to specify a Type, a Parent must also be specified else I get a "Null object" error.
Given this:
' Gambas module file
Public hMediaContainer As MediaContainer
Public hControl As MediaControl
Public Sub Main()
' hMediaContainer = New MediaContainer As "hMediaContainer"
hControl = New MediaControl(Null, "fdsink") As "hControl"
hControl["fd"] = "myfile.mp4"
End
I get "Null object" on New MediaControl.
If I uncomment so as to create a new MediaContainer to be used as Parent for the MediaControl,
(ie: hControl = New MediaControl(hMediaContainer, "fdsink") As "hControl"),
I get "Null object" on New MediaContainer.
If I try hPlayer = New MediaPlayer(Null, "fdsink") As "hPlayer", the IDE console displays an error:
GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed
So it appears that a Parent is required.
How can a specific Type be specified when there is no parent?
<span class="sig">-- Lee ----[ <a href="http://gambaswiki.org/wiki/doc/netiquette">http://gambaswiki.org/wiki/doc/netiquette</a> ]---- </span></pre>
</blockquote>
</body></html>
<br><br/><br/>Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99€ al mese. <a href='http://tisca.li/smart30' target='_blank'>http://tisca.li/smart30</a><br/><br/>