<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsMediaGetDuration?action=history&amp;feed=atom</id>
	<title>DgsMediaGetDuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsMediaGetDuration?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMediaGetDuration&amp;action=history"/>
	<updated>2026-05-25T23:49:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsMediaGetDuration&amp;diff=66302&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;__NOTOC__  {{Client function}} This function gets the duration of the loaded media.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; int dgsMediaGetDuration( element multiMediaBrowse...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMediaGetDuration&amp;diff=66302&amp;oldid=prev"/>
		<updated>2020-05-01T13:55:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} This function gets the duration of the loaded media.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int dgsMediaGetDuration( element multiMediaBrowse...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function gets the duration of the loaded media.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int dgsMediaGetDuration( element multiMediaBrowser )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''multiMediaBrowser :''' The multi media browser you want to operate.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
returns an ''integer'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())()  --Import DGS functions&lt;br /&gt;
browser = dgsCreateMediaBrowser(256,256) --Create Multi Media Browser&lt;br /&gt;
dgsMediaLoadMedia(browser,&amp;quot;test.webm&amp;quot;,&amp;quot;VIDEO&amp;quot;)  --Load the video file into multi media browser&lt;br /&gt;
image = dgsCreateImage(200,200,200,200,browser,false)  --Apply the browser to a dgs-dximage&lt;br /&gt;
dgsMediaPlay(browser)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onDgsMediaLoaded&amp;quot;, browser, function() -- on loaded&lt;br /&gt;
    outputChatBox(&amp;quot;Duration: &amp;quot;..dgsMediaGetDuration(browser))&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>