Spacing and use ascii checkmarks for codecs in about:
This commit is contained in:
parent
18b6b48ef5
commit
1488301535
1 changed files with 8 additions and 7 deletions
|
@ -3710,13 +3710,14 @@ list_video_formats ()
|
|||
gchar* value = sokoke_js_script_eval (js_context,
|
||||
"var supported = function (format) { "
|
||||
"var video = document.createElement('video');"
|
||||
"return !!video.canPlayType && video.canPlayType (format) != 'no' };"
|
||||
"' H264: ' + "
|
||||
"supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"') + "
|
||||
"' Ogg Theora: ' + "
|
||||
"supported('video/ogg; codecs=\"theora, vorbis\"') + "
|
||||
"' WebM: ' + "
|
||||
"supported('video/webm; codecs=\"vp8, vorbis\"')"
|
||||
"return !!video.canPlayType && video.canPlayType (format) != 'no' "
|
||||
"? 'x' : ' '; };"
|
||||
"' H264 [' +"
|
||||
"supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"') + ']' + "
|
||||
"' Ogg Theora [' + "
|
||||
"supported('video/ogg; codecs=\"theora, vorbis\"') + ']' + "
|
||||
"' WebM [' + "
|
||||
"supported('video/webm; codecs=\"vp8, vorbis\"') + ']' "
|
||||
"", NULL);
|
||||
gtk_widget_destroy (web_view);
|
||||
return value;
|
||||
|
|
Loading…
Reference in a new issue