OnDgsMediaPlay

From Multi Theft Auto: Wiki
Revision as of 13:53, 13 February 2021 by Thisdp (talk | contribs) (Created page with "{{Client event}} __NOTOC__ This event is fired when a dgs media browser starts to play. ==Parameters== *'''currentTime''': The timestamp of the video/audio. ==Source== The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is fired when a dgs media browser starts to play.

Parameters

  • currentTime: The timestamp of the video/audio.

Source

The source of this event is the dgs media browser who starts to play.

Example

DGS = exports.dgs

media = DGS:dgsCreateMediaBrowser(600,600)

function onCursorTypeChange(timestamp)
	outputChatBox("Starts to play "..timestamp)
end
addEventHandler("onDgsMediaPlay",media,onPlay)

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)

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