Rovango / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 0 forks source link

Support for HTML5 audio & video tags #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Support for Video & Audio has been removed from CEF 1:

> Due to the loss of audio playback capability in Chromium revision 122508
> and the general lack of playback performance as compared to CEF3 we will 
> discontinue support for the HTML5 audio and video tags in CEF1. We can 
> reconsider this decision in the future if/when a new audio implementation 
> becomes available.

See this issue: http://code.google.com/p/chromiumembedded/issues/detail?id=530

It might still come back in CEF 1, but there is no know date. The solution to 
this problem is to use CEF 3, but there is no python port yet for CEF 3, though 
I plan to work on it in some future.

The solution for now is to use an older release of CEF Python, version 0.37 
should support audio & video:

http://code.google.com/p/cefpython/downloads/detail?name=cefpython_0.37_windows_
py2.7.zip

Branch 1084 (Chrome 19) of CEF 1 supports audio and video, but it would too 
much hassle for me to support 2 different branches.

The best would be to go for CEF Python 3 and have all the latest support for 
Chrome features, but it's a lot of work to do.

Original issue reported on code.google.com by czarek.t...@gmail.com on 19 Oct 2012 at 6:34

GoogleCodeExporter commented 8 years ago
In version 0.37 that supports audio and video there is a bug that crashes 
application on exit (Issue 2). The solution is to add a call to os.kill() after 
message loop and shutdown:

    cefpython.MessageLoop()
    cefpython.Shutdown()
    os.kill(os.getpid(), 9)

Original comment by czarek.t...@gmail.com on 19 Oct 2012 at 6:38

GoogleCodeExporter commented 8 years ago
A work on CEF 3 port has been started, but it's a long way to go, you will find 
a new directory structure in the repository, "cefpython3" directory was added 
[0], but none of it is yet working.

[0] http://code.google.com/p/cefpython/source/browse/cefpython3/

Original comment by czarek.t...@gmail.com on 24 Oct 2012 at 8:04

GoogleCodeExporter commented 8 years ago
Tried 0.37 and an mp4 video with the HTML5 <video> tag, without any luck.  It 
treats the tag correctly, adding controls and reserving space, but nothing 
loads.  Same results with the <audio> tag.

If you just want video, jsmovie and JQuery do work with a Jpeg image sequence.  
Be warned, jsmovie has few docs, and isn't 100%. Going to try again to get the 
Flash plugin to work for audio/video, until new options become available.

Original comment by rich...@gmail.com on 29 Nov 2012 at 8:35

GoogleCodeExporter commented 8 years ago
For those who are interested, the instructions to get the Flash plugin 
installed works fine.  Got a SWF loading a FLV audio/video file.

Original comment by rich...@gmail.com on 29 Nov 2012 at 9:01

GoogleCodeExporter commented 8 years ago
HTML5 video works fine in cefpython 0.37, used this url to test it:
http://www.youtube.com/watch?v=siOHh0uzcuY&html5=True

Original comment by czarek.t...@gmail.com on 29 Nov 2012 at 9:28

GoogleCodeExporter commented 8 years ago
Initial CEF 3 support is ready, cefpython3 v0.10 released, see revision 
edbe436fb522.

Original comment by czarek.t...@gmail.com on 2 Dec 2012 at 10:23

GoogleCodeExporter commented 8 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/cefpython/issues/18

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 6:25