I think you have to tell it to load plugins:
class Browser(QWebView):
def __init__(self):
QWebView.__init__(self)
self.loadFinished.connect(self._result_available)
settings = self.settings()
settings.setAttribute(settings.PluginsEnabled, True)
Works for me when I add that.
On Thu, Nov 14, 2013 at 4:47 AM, johan Borgström <[email protected]>wrote:
> Hello!
>
> I am trying to display a videostream in a QWebView. But The video will not
> play. As I understand I need to enable some settings to use the hardware
> acceleration and or some HTML5 features. Have anyone got a snippet on how
> to embed streaming video?
>
> Best Regards,
> Johan
>
> from PySide.QtCore import QUrl
>
> from PySide.QtWebKit import QWebView
>
> class Browser(QWebView):
>
> def __init__(self):
>
> QWebView.__init__(self)
>
> self.loadFinished.connect(self._result_available)
>
>
> def _result_available(self, ok):
>
> frame = self.page().mainFrame()
>
> view = Browser()
>
> view.load(QUrl('http://vimeo.com/61790668'))
>
> view.show()
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/96c1508a-d4a9-4966-9584-e3188f101036%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2UehHs3rFH%3Dm3oqGA1E4gLLrXAtkBkbrkPmF8W-t%3DA7w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.