tkmedia

Welcome to tkmedia’s document!

class media.Audio(stream, mode='w')

Bases: object

close()
pause()
play(channels=2, device=None)
resume()
stop()
class media.Filter(stream=None, width=None, height=None, format=None, name=None, audio=False)

Bases: object

Process(frame)
addFilter(filter, arg)
availableFilters()
getFilter()
class media.Media(url, mode='r', **options)

Bases: object

Close()

Close media.

Pause()

Pause playing.

Play(audioDevice=None, videoFrame=None, video=None, audio=None, frame_type='label')

Play media. audioDevice(int): An number of Device(You can get with media.audio.getDevices func) videoFrame(tkinter.Label or tkinter.Canvas): An frame to playing video frame_type(str): videoFrame type(Label->label, Canvas->canvas) video(int): video stream number audio(int): audio stream number

Resume()

Resume playing.

Seek(point)

Seek media.

Stop()

Stop media.

class media.Picture

Bases: object

class media.Video(stream, mode='w')

Bases: object

close()
pause()
play(frame, frame_type)
resume()
stop()

media.audio module

class media.audio.Audio(stream, mode='w')

Bases: object

close()
pause()
play(channels=2, device=None)
resume()
stop()

media.exception module

exception media.exception.MediaFileError

Bases: Exception

exception media.exception.ModeError

Bases: Exception

exception media.exception.WrongOrderError

Bases: Exception

media.lib module

class media.lib.StopWatch(error=True)

Bases: object

clear()
getTime()
setTime(t)
start()
stop()

media.picture module

class media.picture.Picture

Bases: object

media.video module

class media.video.Video(stream, mode='w')

Bases: object

close()
pause()
play(frame, frame_type)
resume()
stop()

Module contents

class media.Audio(stream, mode='w')

Bases: object

close()
pause()
play(channels=2, device=None)
resume()
stop()
class media.Filter(stream=None, width=None, height=None, format=None, name=None, audio=False)

Bases: object

Process(frame)
addFilter(filter, arg)
availableFilters()
getFilter()
class media.Media(url, mode='r', **options)

Bases: object

Close()

Close media.

Pause()

Pause playing.

Play(audioDevice=None, videoFrame=None, video=None, audio=None, frame_type='label')

Play media. audioDevice(int): An number of Device(You can get with media.audio.getDevices func) videoFrame(tkinter.Label or tkinter.Canvas): An frame to playing video frame_type(str): videoFrame type(Label->label, Canvas->canvas) video(int): video stream number audio(int): audio stream number

Resume()

Resume playing.

Seek(point)

Seek media.

Stop()

Stop media.

class media.Picture

Bases: object

class media.Video(stream, mode='w')

Bases: object

close()
pause()
play(frame, frame_type)
resume()
stop()