Skip to content

Uniform get signature for video and audio handlers. #36

@BalzaniEdoardo

Description

@BalzaniEdoardo

Currently, VidoeHandler implements a get which accepts a single float, being the frame time and returns a single frame, while get of AudioHandler requires 2 floats (start, end) in order to get a chunk of the audio recording.

I would add an optional end=None parameter to VideoHandler get, that retrieves a range of frames. The simplest implementation would be converting the range to integers and use __getitem__.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions