[vlc-devel] [PATCH v2 00/18] Add NativeClient/PPAPI support

Dennis Hamester dhamester at jusst.de
Mon Mar 13 12:36:46 CET 2017


Changes compared to v1:
 * Move android/thread.c to posix/thread_nocancel.c to avoid code duplication in nacl/thread.c
 * video_output: Remove display.c and move NaCl specific code to window.c
 * audio_output: Fixed popping noise when no data available
 * audio_output: Fixed flushing
 * vlc_fixup: Add fixup for TCP_NODELAY
 * Patches have been reordered slightly

Original Description:
This patch series makes it possible to compile VLC for Google Chrome's Native
Client environment. NaCl uses a newlib libc plus several NaCl specific
changes/replacements. This requires some special treatment here and there.
By design most access plugins are not usable in a sane way in NaCl, but for
now UDP and RTP access are working when sufficient permissions are given to
the Chrome App.
Ontop of changes to make a build possible two new modules are added.
video_output/ppapi/: GL module to render video to the Chrome GL context
audio_output/ppapi.c: Audio output to render audio to Chrome

Building for NaCl requires usage of a NaCl toolchain from the NaCl SDK. For
convenience we use webports (https://chromium.googlesource.com/webports) to
build libvlc and it's dependencies. The patches to add libvlc in there will be
pushed for webports once these patches have landed in VLC.

Besides that a demo application using libvlc, exposing part of the libvlc API
as JavaScript, exists and will be published soonish.

Best,
Julian & Dennis


Dennis Hamester (7):
  android/thread: Remove monotonic clock checks
  Rename android/thread.c to posix/thread_nocancel.c
  posix/thread_nocancel: Fall back to _SC_NPROCESSORS_ONLN
  configure: Test if pathconf exists
  nacl: Implement vlc_getaddr_info_i11e
  nacl: Add custom thread implementation
  compat: Add custom implementation of recvmsg/sendmsg on NaCl

Julian Scheel (11):
  nacl: Add new system type
  newlib/nacl: Provide flockfile implementation
  nacl: Do not use signals
  nacl: nacl comes with xlocale dummies for C++
  newlib/nacl: Include sys/uio for iovec
  configure: Enable extended C++11 support
  keystore: nacl: Include fcntl.h for flock
  nacl: vlc_fixups: Define TCP_NODELAY
  lib/media_player: Add variables for NaCl handles
  video_output: Add PPAPI plugin
  audio_output: Add PPAPI plugin

 NEWS                                              |   3 +
 compat/flockfile.c                                |   2 +-
 compat/recvmsg.c                                  |  51 ++++-
 compat/sendmsg.c                                  |  50 ++++-
 configure.ac                                      |  14 +-
 include/vlc/libvlc_media_player.h                 |  35 +++
 include/vlc_fixups.h                              |  15 +-
 include/vlc_threads.h                             |   2 +-
 include/vlc_vout_window.h                         |   9 +
 lib/libvlc.sym                                    |   3 +
 lib/media_player.c                                |  48 ++++
 modules/audio_output/Makefile.am                  |   8 +
 modules/audio_output/ppapi.c                      | 261 ++++++++++++++++++++++
 modules/keystore/file.c                           |   4 +
 modules/video_output/Makefile.am                  |  15 ++
 modules/video_output/ppapi/gl.c                   | 186 +++++++++++++++
 modules/video_output/ppapi/window.c               | 155 +++++++++++++
 src/Makefile.am                                   |  16 +-
 src/nacl/plugin.c                                 |  46 ++++
 src/nacl/thread.c                                 | 176 +++++++++++++++
 src/network/getaddrinfo.c                         |   3 +-
 src/posix/filesystem.c                            |  15 +-
 src/{android/thread.c => posix/thread_nocancel.c} |  10 +-
 23 files changed, 1112 insertions(+), 15 deletions(-)
 create mode 100644 modules/audio_output/ppapi.c
 create mode 100644 modules/video_output/ppapi/gl.c
 create mode 100644 modules/video_output/ppapi/window.c
 create mode 100644 src/nacl/plugin.c
 create mode 100644 src/nacl/thread.c
 rename src/{android/thread.c => posix/thread_nocancel.c} (98%)

-- 
2.12.0



More information about the vlc-devel mailing list