Video Player
Plays and records media from e.g. a camera or the network.
- class ceed.player.CeedPlayer(open_player_thread=True, **kwargs)
Bases:
kivy._event.EventDispatcher
Player and recorder that supports playing and recording from multiple player and recorder sources made available through
cpl_media
.Through the GUI which of the players is the current
player
and similarly for therecorder
.- ffmpeg_settings = None
The settings widget used in the GUI to configure the
ffmpeg_player
.
- flir_settings = None
The settings widget used in the GUI to configure the
flir_player
.
- thor_settings = None
The settings widget used in the GUI to configure the
thor_player
.
- client_settings = None
The settings widget used in the GUI to configure the
client_player
.
- player: cpl_media.player.BasePlayer
Currently selected player. It is one of
ffmpeg_player
,flir_player
,thor_player
, orclient_player
.
- player_settings
The settings widget used in the GUI to configure the currently selected player. It is one of
ffmpeg_settings
,flir_settings
,thor_settings
, orclient_settings
.
- player_name
The name of the currently selected video player. It is one of “ffmpeg”, “thor”, “flir”, or “client”.
- player_to_raw_name_map = {'Flir': 'flir', 'Network': 'client', 'Thor': 'thor', 'Webcam/File': 'ffmpeg'}
Maps a user friendly player-type name to the name used with
player_name
.
- player_to_nice_name_map = {'client': 'Network', 'ffmpeg': 'Webcam/File', 'flir': 'Flir', 'thor': 'Thor'}
Maps
player_name
to a user friendly name.
- image_file_recorder_settings = None
The settings widget used in the GUI to configure the
image_file_recorder
.
- video_recorder_settings = None
The settings widget used in the GUI to configure the
video_recorder
.
- recorder: cpl_media.recorder.BaseRecorder
Currently selected recorder. It is one of
image_file_recorder
orvideo_recorder
.
- recorder_settings
The settings widget used in the GUI to configure the currently selected recorder. It is one of
image_file_recorder_settings
orvideo_recorder_settings
.
- recorder_name
The name of the currently selected video recorder. It is one of “image_file” or “video”.
- recorder_to_raw_name_map = {'Images': 'image_file', 'Video': 'video'}
Maps a user friendly recorder-type name to the name used with
recorder_name
.
- recorder_to_nice_name_map = {'image_file': 'Images', 'video': 'Video'}
Maps
recorder_name
to a user friendly name.
- disk_used_percent
Percent of disk usage space in the
video_recorder
recorder directory.
- ffmpeg_player: cpl_media.ffmpeg.FFmpegPlayer = None
Player that can playback a video file.
- flir_player: cpl_media.rotpy.FlirPlayer = None
Player that can play a Flir camera.
- thor_player: cpl_media.thorcam.ThorCamPlayer = None
Player that can play a Thor camera.
- client_player: cpl_media.remote.client.RemoteVideoPlayer = None
Player that can play a video from a network stream.
- image_file_recorder: cpl_media.recorder.ImageFileRecorder = None
Recorder that can record the
player
video to a image file series.
- video_recorder: cpl_media.recorder.VideoRecorder = None
Recorder that can record the
player
video to a video file.
- create_widgets()
Creates all the widgets required to show player/recorder.
- display_frame(image, metadata=None)
The displays the image to the user and adds it to
last_image
.
- update_disk_usage(*largs)
Runs periodically to update
disk_used_percent
.
- load_screenshot(app, paths)
Loads a previously saved screenshot image file and displayes it.
- save_screenshot(img, app, paths)
Saves the currently displayed image to a file.
- stop()
Stops all the players and recorders from playing/recording.
- clean_up()
Stops all the players and recorders and cleans up their resources.