Results 1 to 4 of 4

Thread: graceful server shutdown

  1. #1

    Default graceful server shutdown

    Hi, is there a way to redirect users of a VOD application to other servers before server shutdown so the user will not suffer vidoe loss?

  2. #2
    Join Date
    Dec 2007


    There is nothing built-in like that, but if the clients are all Flash RTMP you can send a custom command with with info on new server to connnect to before shutdown. Flowplayer has a Javascript API that you can hook into these custom calls. For example, this will handle server-side like"stopStream");
    HTML container:
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    	<script type="text/javascript" src="flowplayer-3.2.11.min.js"></script>
    	<link rel="stylesheet" type="text/css" href="style.css">
    	<title>Ensemble Player</title>
    	<div id="page">
    		<div style="color:red;font-size:28px" id="message"></div>
    		<a  style="display:block;width:520px;height:330px" id="player"></a>
    			var player = flowplayer("player", "flowplayer-3.2.15.swf",
    				connectionCallbacks: [ "stopStream" ],
    				clip: {
    					stopStream: function(clip,info) {
    					//clip.url = "mp4:busyMessage.mp4";
    					document.getElementById("message").innerHTML = "Come back later, video viewers are at max.";
    					url: 'mp4:sample.mp4',
    					provider: 'rtmp'
    					plugins: {
    					rtmp: {
    					url: 'flowplayer.rtmp-3.2.11.swf',
    					netConnectionUrl: 'rtmp://localhost:1935/vod'
    player.onFinish(function() {
       // alert("finished")
    player.onLoad(function() {
       // alert("loaded")
    player.onStart(function() {
       // alert("started")

  3. #3


    Hi Richard, unfortunately clients are all HLS players, nothing there?

  4. #4


    Hi Shay,

    There is nothing built in to do what you describe.

    You may be able to put something together with this:
    How to convert onTextData events in a live or VOD stream to timed events (ID3 tags) in an Apple HLS stream

    Or you might poll the server with an HTTPProvider:
    HTTP Providers


Similar Threads

  1. cannot shutdown server
    By Amer.K in forum Server Administration Discussion
    Replies: 1
    Last Post: 12-26-2013, 09:15 AM
  2. How to ReStart The Server after shutdown
    By Amer.K in forum General Forum
    Replies: 1
    Last Post: 12-19-2013, 09:27 AM
  3. Frequent Server Shutdown
    By babadjedi in forum General Forum
    Replies: 4
    Last Post: 08-06-2012, 11:34 AM
  4. Wowza server unexpected shutdown
    By alexitekako in forum General Forum
    Replies: 1
    Last Post: 03-14-2012, 05:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts