Results 1 to 4 of 4

Thread: Application restart API

  1. #1

    Default Application restart API

    I'm using server side playlists, from time to time the stream has problem loading so the application needs a restart. I need to provide my client a client side so he can be able to reset the app when needed.
    Used the code from:
    But this causes the application to shutdown and when trying to play it it doesn't start.

    A workable restart is when I do restart to the app from the enginemanager, can you provide me a sample code that this Restart button is calling on the backend, this way I can create custom method that can be available to the client side.


  2. #2
    Join Date
    May 2013


    You can utilize the vhost.shutdownApplication method as described here. This should shutdown all client connections to all child app instances. After shutdown, the application should be available for starting thereafter.
    vhost.shutdownApplication(applicationName, false);

  3. #3


    Ok, configured development environment and tested this shutdown and now I have success starting the stream again. Will setup on production now.

    Thank you.

  4. #4
    Join Date
    May 2013


    Great, glad it seems to be working for you. Thanks for the update.


Similar Threads

  1. Restart Application from API
    By grantk in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 06-18-2012, 10:58 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