Skip to content

Commit

Permalink
Added NetStream.Play.StreamNotFound error to VOD
Browse files Browse the repository at this point in the history
  • Loading branch information
arut committed Nov 15, 2012
1 parent ffe04bb commit 6d37487
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ngx_rtmp_play_module.c
Expand Up @@ -570,7 +570,11 @@ ngx_rtmp_play_play(ngx_rtmp_session_t *s, ngx_rtmp_play_t *v)
if (ctx->file.fd == NGX_INVALID_FILE) {
ngx_log_error(NGX_LOG_ERR, s->connection->log, ngx_errno,
"play: error opening file '%s'", path);
return NGX_ERROR;

ngx_rtmp_send_status(s, "NetStream.Play.StreamNotFound", "error",
"Video on demand stream not found");

return NGX_OK;
}

ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
Expand Down

0 comments on commit 6d37487

Please sign in to comment.