forked from aau-zid/BigBlueButton-liveStreaming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartStream.sh
70 lines (57 loc) · 1.62 KB
/
startStream.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
STREAM_MEETING="";
if [ "${BBB_STREAM_URL}" != "" ]
then
STREAM_MEETING="-l -t ${BBB_STREAM_URL}";
fi
DOWNLOAD_MEETING="";
if [ "${BBB_DOWNLOAD_MEETING}" = "true" ]
then
DOWNLOAD_MEETING="-d";
fi
SHOW_CHAT="";
if [ "${BBB_SHOW_CHAT}" = "true" ]
then
SHOW_CHAT="-c";
fi
INTRO="";
if [ "${BBB_INTRO}" != "" ]
then
INTRO="-I ${BBB_INTRO}";
fi
BEGIN_INTRO="";
if [ "${BBB_BEGIN_INTRO_AT}" != "" ]
then
BEGIN_INTRO="-B ${BBB_BEGIN_INTRO_AT}";
fi
END_INTRO="";
if [ "${BBB_END_INTRO_AT}" != "" ]
then
END_INTRO="-E ${BBB_END_INTRO_AT}";
fi
START_MEETING="";
if [ "${BBB_START_MEETING}" = "true" ]
then
START_MEETING="-S";
fi
ATTENDEE_PASSWORD="";
if [ "${BBB_ATTENDEE_PASSWORD}" != "" ]
then
ATTENDEE_PASSWORD="-A ${BBB_ATTENDEE_PASSWORD}";
fi
MODERATOR_PASSWORD="";
if [ "${BBB_MODERATOR_PASSWORD}" != "" ]
then
MODERATOR_PASSWORD="-M ${BBB_MODERATOR_PASSWORD}";
fi
MEETING_TITLE="";
if [ "${BBB_MEETING_TITLE}" != "" ]
then
MEETING_TITLE="${BBB_MEETING_TITLE}";
fi
if [ "${BBB_ENABLE_CHAT}" = "true" ]
then
xvfb-run -n 133 --server-args="-screen 0 1920x1080x24" python3 chat.py -s ${BBB_URL} -p ${BBB_SECRET} -i "${BBB_MEETING_ID}" -r ${BBB_REDIS_HOST} -u "${BBB_CHAT_NAME}" -c ${BBB_REDIS_CHANNEL} $START_MEETING $ATTENDEE_PASSWORD $MODERATOR_PASSWORD -T "$MEETING_TITLE" &
sleep 10
fi
xvfb-run -n 122 --server-args="-screen 0 1920x1080x24" python3 stream.py -s ${BBB_URL} -p ${BBB_SECRET} -i "${BBB_MEETING_ID}" -u "${BBB_USER_NAME}" ${SHOW_CHAT} $START_MEETING $ATTENDEE_PASSWORD $MODERATOR_PASSWORD -T "$MEETING_TITLE" $STREAM_MEETING $INTRO $BEGIN_INTRO $END_INTRO $DOWNLOAD_MEETING;