![]() ![]() This means that to for example synchronize video between clients, you must handle networking the media URL and the media start time yourself.įor this purpose you might find my NetTable library useful, but medialib itself contains no networking code. Medialib provides no means of communication between server and client. See examples/ for more elaborate examples. SimpleText(timeStr, "DermaDefaultBold ", w - 5, h + 3, Color( 0, 0, 0), TEXT_ALIGN_RIGHT) Local timeStr = string.format( "%.1f / %.1f ", mediaclip: getTime(), duration)ĭraw. SimpleText(title, "DermaDefaultBold ", 5, h + 3, Color( 0, 0, 0)) Local title, duration = tostring(meta and meta. ![]() You should use Service#query on serverside. Note: this is a clientside shortcut to Service#query. 'meta' will be nil if metadata is still being fetched. Add( "HUDPaint ", "DrawVideo ", function() Store global reference for debugging purposes Create a mediaclip from the link local mediaclip = service: load(link) youtube, twitch, vimeo, webaudio) local service = medialib. If existing global reference exists, remove them if IsValid(CLIP) then CLIP: stop() end local link = " " - Get the service that this link uses (eg.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |