class

Emerald::VLC::VideoTrack

Inherits Reference < Object

Represents a video stream track in a media source.

Constructors

new(id : Int32, name : String, width : UInt32 = 0_u32, height : UInt32 = 0_u32, frame_rate : Float64 = 0.0, codec : String = "", aspect_ratio : String | Nil = nil)
Source

Instance methods

aspect_ratio
Source
codec
Source
frame_rate
Source
height
Source
name
Source
resolution

Returns resolution string formatted as "WIDTHxHEIGHT" (e.g. "1920x1080")

Source
to_s(io : IO) : Void

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
width
Source