Results 1 to 2 of 2

Thread: redirect to a different appInstance

  1. #1

    Default redirect to a different appInstance

    Hi.

    In order to have a common player between vod and live streaming, I'd ideally like the netConnectionUrl to be the same.

    So I have attempted to do a server side redirect on play() method for live by
    public void play(IClient client, RequestFunction function,
    AMFDataList params) {

    if(client.getApplication().getName().equalsIgnoreCase("live")
    && streamName.contains("amazons3")) { // implies that this is really vod
    ((Client) client).setAppInstance(client.getApplication().getAppInstance("vod"));
    invokePrevious(client, function, params);
    getLogger().warn("forwarding to vod");
    return;
    }

    However, this does not seem to work. What am i missing?

    THanks.
    D

  2. #2
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Take a look at this example:

    http://www.wowza.com/forums/content....tion-instances

    Richard

Similar Threads

  1. How to move a client to a different AppInstance?
    By Mantriur in forum Server-side Modules and Code Samples Discussion
    Replies: 5
    Last Post: 05-31-2013, 01:57 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
  •