libgpac
Documentation of the core library of GPAC
JS HTTP output API

JavaScript API for httpout filter. More...

+ Collaboration diagram for JS HTTP output API:

Data Structures

interface  JSHTTPServer
 JSHTTPServer API. More...
 
interface  JSHTTPRequest
 JSHTTPRequest API. More...
 
interface  JSHTTPHeader
 JSHTTPHeader Object. More...
 

Variables

attribute JSHTTPServer httpout
 

Detailed Description

This section documents the JavaScript API available for implementing your own logic in GPAC HTTP server.

The logic is enabled using the option js option of the httpout filter :

gpac httpout:js=myserv.js vout
attribute JSHTTPServer httpout
Definition: httpout.idl:29

The loaded JavaScript context has all JS modules available in GPAC, except WebGL.

It is also possible to bind the logic from a JSFilterSession using JSFSFilter.bind


Data Structure Documentation

◆ JSHTTPHeader

interface JSHTTPHeader

The JSHTTPHeader object provides a description of a n HTTP header.

Data Fields
attribute readonly DOMString name

header name

attribute readonly DOMString value

header value

Variable Documentation

◆ httpout

attribute JSHTTPServer httpout

global context property representing the one and only JSHTTPServer object attached to the loaded script