Add Wowza Application

Posted By : Arun Singh | 10-Feb-2018

We need to install node js and mongodb in a system. Now creating setup of wowza in your system with license key.
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 wowza is depending on java.

$ 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 wowza go to a tmp directory.

$ cd /tmp

5 Download the latest version of wowza (version in this case 4.7.3). you can find here: https://www.wowza.com/pricing/installer .

$ 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 wowza.

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 wowza package then you need to restart wowza engine.

$ service WowzaStreamingEngine restart
$ service WowzaStreamingEngineManager restart

Create Add Application by userService in node js And this application detail also store in mongodb.

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.

 

About Author

Author Image
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.

Request for Proposal

Name is required

Comment is required

Sending message..