This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "Please give domain name as the parameter." | |
echo "Sample usage:" | |
echo "$0 example.com " | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Media | Installing | WebRTC | Market | | First | | |
| Server | to Ubuntu | Latency | Share | Price* | Release | | |
|----------------------|-------------|---------|---------|--------|---------| | |
| Wowza Streaming Eng. | Very Hard | -* | Biggest | $65 | 2007 | | |
| Red5 Pro | Easy | ~250ms | Medium | $109 | 2016* | | |
| Ant Media Server | Easy | ~250ms | Low | $39 | 2017 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
# Copy below commented out lines to /etc/init.d/antmedia | |
# jsvc_exec function | |
# | |
# INITIALIZED=/usr/local/antmedia/conf/initialized | |
## if [ ! -f "$INITIALIZED" ] | |
## then | |
## echo "sleep 3 ; /usr/local/antmedia/conf/init.sh" | at now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $diff -gt $timeout ] | |
then | |
echo "Restarting channel $channelNo" >> /var/log/channel_control | |
sudo service channel_$channelNo stop | |
sleep 2 | |
sudo service channel_$channelNo start | |
else | |
echo "Channel $channelNo running properly, last update time $diff seconds ago" >> /var/log/channel_control | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="ERROR_FILE"> | |
<File>log/ant-media-server-error.log</File> | |
<Append>false</Append> | |
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> | |
<fileNamePattern>log/ant-media-server-error.%i.log.gz</fileNamePattern> | |
<minIndex>1</minIndex> | |
<maxIndex>2</maxIndex> | |
</rollingPolicy> | |
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
var webRTCAdaptor = new WebRTCAdaptor({ | |
websocket_url : websocketURL, | |
mediaConstraints : mediaConstraints, | |
peerconnection_config : pc_config, | |
sdp_constraints : sdpConstraints, | |
localVideoId : "localVideo", | |
debug:true, | |
callback : function(info, description) { | |
if (info == "initialized") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": [], | |
"info": { | |
"name": "samples", | |
"_postman_id": "cbef37ab-d4ae-c349-4845-b4a91d1ab201", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# concatenate second file to end of first file | |
# first file 1.mp4 duration: 10sec | |
# second file 2.mp4 duration: 20sec | |
# output file 1.mp4 duration: 30sec | |
concatenate_files() | |
{ | |
file1=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Usage | |
#First parameter is the version name either release or snapshot works | |
#if release version, create and checkout branch, update version, commit, tag and push are done | |
# ./release 1.6.1 | |
#if snapshot version, update the version, commit and push are done. After that it should be merged with master | |
#./release 1.6.2-SNAPSHOT | |
check() { | |
OUT=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# concatenate second file to end of first file | |
# first file 1.mp4 duration: 10sec | |
# second file 2.mp4 duration: 20sec | |
# output file 1.mp4 duration: 30sec | |
concatenate_files() | |
{ | |
file1=$1 |