General utilities

araviq6.util provides utility classes and functions which are not video pipeline components.

Media controller

araviq6.util.controller provides widget to control media player.

class araviq6.util.controller.ClickableSlider(*args: Any, **kwargs: Any)[source]

Bases: QSlider

QSlider whose groove can be clicked to move to position.

class araviq6.util.controller.SignalProtocol(*args, **kwargs)[source]

Bases: Protocol

class araviq6.util.controller.PlayerProtocol(*args, **kwargs)[source]

Bases: Protocol

class araviq6.util.controller.MediaController(*args: Any, **kwargs: Any)[source]

Bases: QWidget

Widget to control QtMultimedia.QMediaPlayer.

This controller can change the playback state and media position by playButton(), stopButton(), and slider().

setPlayer() sets the player to be controlled by this widget.

player() PlayerProtocol | None[source]

Media player which is controlled by self.

setPlayer(player: PlayerProtocol | None)[source]

Set player() and connect the signals.

Testing helpers

araviq6.util.testing provides utilities to help writing unit tests.

araviq6.util.testing.get_samples_path(*paths: str) str[source]

Get the absolute path to the directory where the sample data are stored.

Parameters:
paths

Subpaths under araviq6/samples/ directory.

Returns:
path

Absolute path to the sample depending on the user’s system.