[PyQt] cannot save QMediaPlaylist with m3u8 format
Zhao Lee
redstone-cold at 163.com
Mon Jan 23 05:38:31 GMT 2017
cannot save QMediaPlaylist with m3u8 format using following code, what's wrong ?
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtNetwork import *
from PyQt5.QtMultimedia import *
playlist = QMediaPlaylist()
isok = playlist.addMedia(QMediaContent(QUrl("http://61.222.191.241/live/ch04/index.m3u8")))
print(isok, playlist.save(QFile('2222.m3u8'), 'm3u8'))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170123/51e20d9b/attachment.html>
More information about the PyQt
mailing list