class EdgeAI::Clips
- EdgeAI::Clips
- EdgeAI::Base
- ActionController::Base
- Reference
- Object
Defined in:
controllers/clips.crConstant Summary
-
PARSER_LIST =
["application/json"]
-
RESPONDER_LIST =
["application/json", "application/yaml"]
Class Method Summary
-
.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 Method Summary
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
- #config : Configuration::Pipeline
- #config? : Configuration::Pipeline | Nil
-
#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
-
#destroy(timestamp : Int64) : Nil
delete a clip from storage
- #find_configuration_config(id : String | Nil = nil) : Nil
- #id : String
- #id? : String | Nil
-
#index : Array(String) | Array(Metadata)
list clips saved on the device, optionally filtering by stream id
-
#replay(seconds_before : UInt32 = 3_u32, seconds_after : UInt32 = 3_u32) : Nil
obtains a clip of the event
- #replay(path : Path, before : Time::Span, after : Time::Span, & : File -> )
- #save_thumbnail(video_in : String, image_out : String, midpoint : Int) : Nil
-
#show(timestamp : Int64)
download the clip specified by the timestamp
- #thumbnail(timestamp : Int64)
Instance methods inherited from class EdgeAI::Base
bad_media_type(error) : AC::Error::ContentResponse
bad_media_type,
invalid_param(error) : AC::Error::ParameterResponse
invalid_param,
not_found(error) : NamedTuple(error: String | Nil)
not_found,
set_request_id
set_request_id
Class Method Detail
def self.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 Method Detail
def 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
list clips saved on the device, optionally filtering by stream id
obtains a clip of the event