diff --git a/tasks/main.yml b/tasks/main.yml index 4f9f283..d23e1d5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,11 +22,18 @@ ustreamer_install_janus: "{{ ustreamer_h264_sink != None }}" # If the `build uStreamer` step should be run with the `WITH_JANUS` option, we -# need to install the Janus Debian package beforehand, because it provides -# C-headers. +# need to install the Janus Debian package and its dependencies beforehand, +# because Janus provides C headers that uStreamer needs for the `WITH_JANUS` +# build option. - name: install Janus Debian package apt: - deb: "{{ ustreamer_janus_deb_file }}" + deb: "{{ item }}" + with_items: + # Janus requires libnice 0.1.18 or later, which is not currently available + # from the Raspbian apt repositories, so we install an explicit libnice + # Debian package from URL. + - "{{ ustreamer_libnice_deb_file }}" + - "{{ ustreamer_janus_deb_file }}" tags: - janus when: ustreamer_install_janus diff --git a/vars/main.yml b/vars/main.yml index 2a6f7b6..e495ef6 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -3,5 +3,6 @@ ustreamer_settings_file: /home/{{ ustreamer_user }}/config.yml # These variables are only used within this role. -ustreamer_janus_deb_file: https://github.com/tiny-pilot/janus-debian/releases/download/1.0.1-20221104/janus_1.0.1-20221104_armhf.deb +ustreamer_libnice_deb_file: https://github.com/tiny-pilot/libnice-debian/releases/download/0.1.18-202211161620/libnice10_0.1.18-202211161620_armhf.deb +ustreamer_janus_deb_file: # TODO ustreamer_janus_install_dir: /opt/janus