如何通过quicktime player打开.mp4视频?

2024-09-29 21:31:37 发布

您现在位置:Python中文网/ 问答频道 /正文

import time
class Video(object):
    def __init__(self,path):
        self.path = "C:/Program Files (x86)/QuickTime/QuickTimePlayer.exe"

    def play(self):
        from os import startfile
        startfile(self.path)

class Movie_MP4(Video):
    type = "MP4"

movie = Movie_MP4(r"C:\Users\A\1.mp4")
movie.play()

如果更改“C:/Program Files(x86)/QuickTime”,则可以使用此代码播放windows media player文件/QuickTimePlayer.exe“去小径。在

如何才能让quicktime播放我的视频?在


Tags: pathimportselfplaydefvideofilesprogram

热门问题