OnDgsMediaStop

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This event is fired when a dgs media browser stops.

Parameters

  • currentTime: The timestamp of the video/audio.

Source

The source of this event is the dgs media browser who stops.

Example

DGS = exports.dgs

media = DGS:dgsCreateMediaBrowser(600,600)

function onStop(timestamp)
	outputChatBox("Paused "..timestamp)
end
addEventHandler("onDgsMediaStop",media,onStop)

image = DGS:dgsCreateImage(0,0,800,500,media,false)
DGS:dgsMediaLoadMedia(media ,"example.webm","VIDEO") -- Give a video file PLZ! (Only .webm file)
DGS:dgsMediaPlay(media)
setTimer(function()
	DGS:dgsMediaStop(media)
end,5000,1)

See Also

DGS events

General

Check Box

Combo Box

Drag'N Drop

Edit

Grid List

Menu

Selector

Mouse

Radio Button

Switch Button

Tab

Animation

Plugin

Media

Color Picker

QRCode

Remote Image

Client event functions