This application is designated to test Server Push mechanism, provided by HTTP 2.0 protocol, in DASH-based media streaming. This is an extension of open-source SPDY-based QTSamplePlayer provided by bitmovin.

Current version of our HTTP 2.0 extension for QTSamplePlayer works with HTTP 2.0 servers only - it skipped the HTTP Upgrade mechanism required for switching connection from HTTP 1.1 to HTTP 2.0. Moreover, it communicates using “http” URI scheme only (not “https”).

Licence

This extension of the QTSamplePlayer is open source available and licensed under LGPL:

“This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA“

Contact person

Piotr Krawiec, PhD: This email address is being protected from spambots. You need JavaScript enabled to view it.

National Institute of Telecommunications, Warsaw, Poland

HTTP 2.0 Content Server

The HTTP 2.0 Content Server (CS) application is designed to test Server Push mechanism, provided by HTTP 2.0 protocol. It is an extension of the open-source HTTP 2.0 nghttpd server provided within nghttp2 version v0.5.1 library, which is compliant with IETF HTTP 2.0 Draft v13.

We introduced new AlertModule, which contains JSON-RPC server for receiving congestion alerts from an external module:

The havePushData() method of the AlertModule is called by the main thread of Content Server whenever a new request for media segment arrives (which means opening a new stream). This method checks if a congestion alert from the external module exists and, in positive case, it returns a path to the file which should be pushed to the client. When the response of the havePushData() is positive, the server triggers Push procedure and, at the same time, cancels the stream related with media segment request.

An external module sends to Content Server message (string) about congestion alert, jointly with an integer, which indicates validity time of this congestion alert (in seconds).

To run Content Server, please execute the following command in the src directory:

./nghttpd --no-tls -v 8500

This command run HTTP 2.0 server on port 8500 and JSON-RPC server on port 8501 (i.e. larger by one than the HTTP 2.0 listening port number).

To run dummy external module for sending alert to Content Server, please execute the following command in the src directory:

./alertclientapp

You can specify the text of alert message and the validity time by modifying the alertClientApp.cc file.

To define your own format for an alert message, you should modify alert.json file (src directory); next generate the stubs for client and server:

jsonrpcstub -s alert.json AlertModule

jsonrpcstub -c alert.json Alert

Then make the appropriate changes in the HTTPServer and alertClientApp files (src directory).

Licence

This extention of the nghttpd server is open source available and licensed under MIT License:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contact

Piotr Krawiec, PhD: This email address is being protected from spambots. You need JavaScript enabled to view it.