OnDgsMediaPlay: Difference between revisions
Jump to navigation
Jump to search
(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...") |
No edit summary |
||
Line 15: | Line 15: | ||
media = DGS:dgsCreateMediaBrowser(600,600) | media = DGS:dgsCreateMediaBrowser(600,600) | ||
function | function onPlay(timestamp) | ||
outputChatBox("Starts to play "..timestamp) | outputChatBox("Starts to play "..timestamp) | ||
end | end |
Latest revision as of 13:54, 13 February 2021
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 onPlay(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
- onDgsBlur
- onDgsCreate
- onDgsCursorTypeChange
- onDgsCursorStateChange
- onDgsDestroy
- onDgsElementRender
- onDgsElementMove
- onDgsElementSize
- onDgsElementEnter
- onDgsElementLeave
- onDgsFocus
- onDgsKey
- onDgsPositionChange
- onDgsPreRender
- onDgsRender
- onDgsElementScroll
- onDgsSizeChange
- onDgsTextChange
- onDgsWindowClose
- onDgsPropertyChange
Check Box
Combo Box
Drag'N Drop
Edit
Grid List
Menu
Selector
Mouse
- onDgsMousePreClick
- onDgsMouseClick
- onDgsMouseClickDown
- onDgsMouseClickUp
- onDgsMouseDrag
- onDgsMouseDoubleClick
- onDgsMouseDoubleClickDown
- onDgsMouseDoubleClickUp
- onDgsMouseDown
- onDgsMouseHover
- onDgsMouseEnter
- onDgsMouseLeave
- onDgsMouseMultiClick
- onDgsMouseMove
- onDgsMouseStay
- onDgsMouseUp
- onDgsMouseWheel
Radio Button
Switch Button
Tab
Animation
Plugin
Media
- onDgsMediaPlay
- onDgsMediaPause
- onDgsMediaStop
- onDgsMediaLoaded
- onDgsMediaTimeUpdate
- onDgsMediaBrowserReturn
Color Picker
QRCode
Remote Image
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled