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.Video(stream, mode='w')
Bases:
object
- close()
- pause()
- play(frame, frame_type)
- resume()
- stop()
media.audio module
media.exception module
media.lib module
media.picture module
media.video module
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.