Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Install libnice separately from Janus #76

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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