[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] cannot save QMediaPlaylist with m3u8 format
From: "Zhao Lee" <redstone-cold () 163 ! com>
Date: 2017-01-23 5:38:31
Message-ID: 5774642a.9c.159c9d53b3b.Coremail.redstone-cold () 163 ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
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'))
[Attachment #5 (text/html)]
<div><div style="color: rgb(0, 0, 0); font-family: arial; font-size: 14px;">cannot \
save QMediaPlaylist with m3u8 format using following code, what's wrong \
?</div><div style="color: rgb(0, 0, 0); font-family: arial; font-size: \
14px;"><br></div><div>from PyQt5.QtCore import *</div><div>from PyQt5.QtGui import \
*</div><div>from PyQt5.QtWidgets import *</div><div>from PyQt5.QtNetwork import \
*</div><div>from PyQt5.QtMultimedia import *</div><div>playlist = \
QMediaPlaylist()</div><div>isok = \
playlist.addMedia(QMediaContent(QUrl("http://61.222.191.241/live/ch04/index.m3u8")))</div><div>print(isok, \
playlist.save(QFile('2222.m3u8'), 'm3u8'))</div><div style="color: rgb(0, 0, 0); \
font-family: arial; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); \
font-family: arial; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); \
font-family: arial; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); \
font-family: arial; font-size: 14px;"><br></div></div><!-- jy5ContentSuffix \
--><br><br><span title="neteasefooter"><p> </p></span>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic