class Player::Media

Defined in:

mediaplayer/mediaplayer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(media : String, path : Bool = true) #

[View source]
def self.new(obj : Pointer(Pointer(Void))) #

[View source]

Instance Method Detail

def ==(media : Media) #

[View source]
def finalize #

[View source]
def get_formatted_length(format : Time::Format = Time::Format.new("%M:%S")) : String #

[View source]
def get_length : LibVlc::Time #

[View source]
def get_meta(meta : LibVlc::Meta) : String #

[View source]
def obj : Pointer(Pointer(Void)) #

[View source]
def obj=(obj : Pointer(Pointer(Void))) #

[View source]
def off(event : LibVlc::Event, proc : LibVlc::Callback, user_data = nil) #

[View source]
def off(event : LibVlc::Event, user_data = nil, &block : Pointer(LibVlc::EventData), Pointer(Void) -> Nil) #

[View source]
def on(event : LibVlc::Event, proc : LibVlc::Callback, user_data = nil) #

[View source]
def on(event : LibVlc::Event, user_data = nil, &block : Pointer(LibVlc::EventData), Pointer(Void) -> Nil) #

[View source]
def parse(options : Player::MediaParseFlag = Player::MediaParseFlag::ParseLocal, timeout = 0) #

[View source]
def parsed_status : LibVlc::MediaParsedStatus #

[View source]
def save_meta : Bool #

[View source]
def set_meta(meta : LibVLc::Meta, value) #

[View source]
def state : LibVlc::State #

[View source]
def stats : Pointer(LibVlc::MediaStats) #

[View source]
def subitems : MediaList #

[View source]
def type : LibVlc::MediaType #

[View source]
def url #

[View source]