video.Record

  IVideoWriter, string video.Record( table config )

Açıklama

Bir IVideoWriter oluşturmayı dener.

Argümanlar

1 table config
Video yapılandırması. VideoData yapısı sayfasına bakınız.

Dönen Değerler

1 IVideoWriter
Video nesnesi (bir hata varsa false döner)
2 string
Eğer bir hata varsa, hata metni

Örnek

Basit bir IVideoWriter nasıl oluşturulur ve nasıl kullanılır

local config = { container = "webm", video = "vp8", audio = "vorbis", quality = 50, bitrate = 200, fps = 30, lockfps = true, name = "Test", width = 1280, height = 720 } local iVideoWriter = video.Record( config ) iVideoWriter:SetRecordSound( true ) local function Record() iVideoWriter:AddFrame( FrameTime(), true ) end function StartRecording() hook.Add( "DrawOverlay", "Record", Record ) end function StopRecording() hook.Remove( "DrawOverlay", "Record" ) iVideoWriter:Finish() end

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord