Plugin Creation - Grade-A-Software/Comcast-DASH-VLC GitHub Wiki

This is a description of how we created a basic Hello World plugin which we used to further develop on.

From project root:

cd modules/stream_filter
mkdir comcast_dash

Place the plugin code in this directory, then edit the makefile (eg: vi modules/stream_filter/Makefile.am)

Add these lines to stream_filter/Makefile.am:

libcomcast_dash_plugin_la_SOURCES = stream_filter/comcast_dash/hello.c
libcomcast_dash_plugin_la_CFLAGS = $(AM_CFLAGS)
libcomcast_dash_plugin_la_LIBADD = $(SOCKET_LIBS)
stream_filter_LTLIBRARIES += libcomcast_dash_plugin.la

This lines have these respective purposes

  • Includes Hello World code to plugin sources
  • Sets the flags for C compilation, will be different for c++
  • This is necessary to utilize other libraries
  • Adds the plugin to stream_filter's libraries

Then, build OSX, Linux the project and the plugin will be in the build directory.

Confirm this by changing to the build directory and entering the command ./vlc --list | grep comcast. This should show you a working Comcast plugin.

To demonstrate that the plugin will run, execute the following command:

./vlc --stream-filter comcast_dash

⚠️ **GitHub.com Fallback** ⚠️