<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/OnDgsMediaStop?action=history&amp;feed=atom</id>
	<title>OnDgsMediaStop - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/OnDgsMediaStop?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsMediaStop&amp;action=history"/>
	<updated>2026-04-03T23:53:54Z</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=OnDgsMediaStop&amp;diff=68916&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client event}} __NOTOC__  This event is fired when a dgs media browser stops.  ==Parameters==  *'''currentTime''': The timestamp of the video/audio.  ==Source== The event...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsMediaStop&amp;diff=68916&amp;oldid=prev"/>
		<updated>2021-02-13T13:55:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client event}} __NOTOC__  This event is fired when a dgs media browser stops.  ==Parameters==  *&amp;#039;&amp;#039;&amp;#039;currentTime&amp;#039;&amp;#039;&amp;#039;: The timestamp of the video/audio.  ==Source== The event...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when a dgs media browser stops.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
*'''currentTime''': The timestamp of the video/audio.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the dgs media browser who stops.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
&lt;br /&gt;
media = DGS:dgsCreateMediaBrowser(600,600)&lt;br /&gt;
&lt;br /&gt;
function onStop(timestamp)&lt;br /&gt;
	outputChatBox(&amp;quot;Paused &amp;quot;..timestamp)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onDgsMediaStop&amp;quot;,media,onStop)&lt;br /&gt;
&lt;br /&gt;
image = DGS:dgsCreateImage(0,0,800,500,media,false)&lt;br /&gt;
DGS:dgsMediaLoadMedia(media ,&amp;quot;example.webm&amp;quot;,&amp;quot;VIDEO&amp;quot;) -- Give a video file PLZ! (Only .webm file)&lt;br /&gt;
DGS:dgsMediaPlay(media)&lt;br /&gt;
setTimer(function()&lt;br /&gt;
	DGS:dgsMediaStop(media)&lt;br /&gt;
end,5000,1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===DGS events===&lt;br /&gt;
{{DGSEVENTS}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>