Results 1 to 4 of 4

Thread: Run PHP script when stream starts

  1. #1
    Join Date
    Feb 2012
    Posts
    2

    Default Run PHP script when stream starts

    How can I run a php script when the stream starts ?

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You can use HTTPUtils API in publish or play command. The following examples show how to override play or publish. Refer to ServerSide API for HTTPUtils

    http://www.wowza.com/forums/content....-override-play

    http://www.wowza.com/forums/content....e-stream-name)

    Richard

  3. #3
    Join Date
    Feb 2012
    Posts
    2

    Default

    package com.wowza.wms.module;

    import com.wowza.wms.application.*;
    import com.wowza.wms.amf.*;
    import com.wowza.wms.client.*;
    import com.wowza.wms.module.*;
    import com.wowza.wms.request.*;
    import com.wowza.wms.stream.*;

    public class Testmodule extends ModuleBase {

    private void onStreamCreate(String message, IApplicationInstance appInstance) {
    String server_url = "http://myserver.com/webservice.php";
    HTTPUtils.HTTPRequestToByteArray(server_url, null, null, null);
    }

    }

    This script should do what I need ?

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You have to test.

    Richard

Similar Threads

  1. PHP Script Broadcast Video
    By EstevenRG in forum Integrating Wowza into your workflow
    Replies: 2
    Last Post: 06-13-2014, 11:04 PM
  2. API calling through php Script
    By imManish in forum Wowza Streaming Server Java API
    Replies: 3
    Last Post: 05-30-2014, 03:17 AM
  3. php script for play stream with any devices/browser
    By steveitl in forum Integrating Wowza into your workflow
    Replies: 2
    Last Post: 05-23-2014, 01:06 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
  •