mirror of
https://github.com/ihmily/StreamCap.git
synced 2026-07-02 11:24:40 +08:00
14 lines
350 B
Python
14 lines
350 B
Python
class VideoFormat:
|
|
TS = "TS"
|
|
MP4 = "MP4"
|
|
FLV = "FLV"
|
|
MKV = "MKV"
|
|
MOV = "MOV"
|
|
|
|
@classmethod
|
|
def get_formats(cls):
|
|
"""Get all properties of the VideoFormat class"""
|
|
attributes = cls.__dict__
|
|
video_formats = [value for name, value in attributes.items() if name.isupper()]
|
|
return video_formats
|