Add Wowza Application
Posted By : Arun Singh | 10-Feb-2018
We need to install node js and
Wowza is a streaming software platform which used for live streaming on the web browser, mobile, set-top box etc. We can add different application types like LIVE, VIDEO ON DEMAND, LIVE EDGE, VOD EDGE.Wowza is depending on java so we have to add the java update within the installation of Wowza Streaming engine.
SETUP OF WOWZA STREAMING ENGINE
1 first you update your ubuntu server.
$ sudo apt-get update
$ sudo apt-get upgrade
2 We have to install java because
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
3 Install Oracle JDK packages.
$ sudo apt-get install oracle-java8-installer
4 Now install
$ cd /tmp
5 Download the latest version of
$ wget https://www.wowza.com/downloads/WowzaStreamingEngine-4-7-3/WowzaStreamingEngine-4.7.3-linux-x64-installer.run
6 Make the file for executable.
$ sudo chmod +x WowzaStreamingEngine-4.7.3-linux-x64-installer.run
7 Some question will be asked. Enter Y.
press several times on ENTER to confirm the agreement
Do you accept this agreement? [y/n]: Y
8 Get your License key by fill developer form of
Enter License Key
Please enter your Wowza SE License Key.
Format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX[-XXXXXXXXXXXX]
License Key: []:
9 After you have to create a username and password to your choice (words in capitals you should fill in yourself).
Enter a user name and password that will be used to manage Wowza Streaming
Engine.
User Name: []: YOUR_DESIRED_USERNAME
Password: : YOUR_DESIRED_PASSWORD
Confirm Password: : YOUR_DESIRED_PASSWORD_AGAIN
10 If you can edit on
$ service WowzaStreamingEngine restart
$ service WowzaStreamingEngineManager restart
Create Add Application by userService in node js And this application detail also store in
UserService.prototype.createUser = function (user, callback, res) {
var data = new domain.User({
email: userInfo2.email,
});
data.save(function (err, userObj) {
if (err || !(!!userObj))
callback(err, null);
else {
request.post({
headers: { 'Content-type': 'application/json' },
url: 'http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/' + user.email,
body: JSON.stringify({
"restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/" + user.email,
"name": user.email,
"clientStreamReadAccess": "*",
"appType": "Live",
"clientStreamWriteAccess": "*",
"description": "A basic live application",
"streamConfig": {
"restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/" + user.email + "/ streamconfiguration",
"streamType": "live"
}
})
}, function (error, response, body) {
callback(null, response)
});
}
});
}
}
Pass email value by postman
Open wowza and check new application is created or not.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Arun Singh
Arun is a MEAN stack developer. He has a fastest and efficient way of problem solving techniques. He is very good in JavaScript and also have a little bit knowledge of Java and Python.