mediablast
Generic processing server built on node-plan.
Quick Start
See a working example of a mediablast server
Server Code
var http = ;var mediablast = ; var app = ; app;app;app;app;app; var server = http;server;
HTTP Client Usage
Admin
Currently mediablast only supports one user. By default this user name is
admin
and the password is 3pTkHwHV
. You should change this before you
deploy.
For better user account management, see #1.
Submitting a Job
To submit a job, make a POST
request to /
. The tasks you have registered
dictate what parameters to send with this request. Usually you will want
this request to be a multipart file upload.
The request will look something like:
The response will look like:
Once you have the job id, you can use either the push notification status endpoint or the polling endpoint.
Push Notification Status Endpoint
GET /status/:jobId
is an EventSource URL which provides push notifications
for job status and progress updates. Each message is a JSON encoding of the
job. Once the job state is complete
, no more events will be sent and the
client should close the EventSource.
Polling Status Endpoint
GET /poll/:jobId
returns a pure JSON response instead of Server Sent Events.
Ping Endpoint
GET /status
will always return {"success": true}
. You may use this endpoint
to determine whether the server is online and responding to requests.
Admin Interface
Monitoring Jobs
Hit /admin/status
with your browser to monitor all jobs in the system.
Editing Settings and Templates
Hit /admin/settings
with your browser to edit settings and templates.
Testing a Template
Hit /admin/test
with your browser to test a template.