class

EdgeAI::Clips

Inherits EdgeAI::Base < ActionController::Base < ActionController::Responders < ActionController::Route::Builder < Reference < Object

Constants

PARSER_LIST = ["application/json"]
RESPONDER_LIST = ["application/json", "application/yaml"]

Class methods

base_route

Helper for obtaining base route

index(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)

Helper methods for performing redirect_to calls

Instance methods

base_route(*args, **options)

Helper for obtaining base route

base_route(*args, **options, &)

Helper for obtaining base route

config
Source
config?
Source
create(payload : JSON::Any, seconds_before : UInt32 = 3_u32, seconds_after : UInt32 = 3_u32) : Metadata

save a new clip to the device with the associated JSON payload

Source
destroy(timestamp : Int64) : Nil

delete a clip from storage

Source
find_configuration_config(id : String | Nil = nil) : Nil
Source
index

list clips saved on the device, optionally filtering by stream id

Source
replay(seconds_before : UInt32 = 3_u32, seconds_after : UInt32 = 3_u32) : Nil

obtains a clip of the event

Source
replay(path : Path, before : Time::Span, after : Time::Span, & : File -> )
Source
save_thumbnail(video_in : String, image_out : String, midpoint : Int) : Nil
Source
show(timestamp : Int64)

download the clip specified by the timestamp

Source
thumbnail(timestamp : Int64)
Source

Nested types