I am trying to evaluate wowza for my streaming needs. I need to send an encrypted url, decrypt it at server and play the movie from the url name. From what I have understood so far
package com.unite.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.*;
import com.wowza.wms.rtp.model.*;
import com.wowza.wms.httpstreamer.model.*;
import com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.*;
import com.wowza.wms.httpstreamer.smoothstreaming.httpstreamer.*;
import java.security.*;
import java.math.*;
import java.lang.Long;
import java.lang.String;
public class Authorization extends ModuleBase {
public void onConnect(IClient client, RequestFunction function, AMFDataList params)
{
try {
// get flashvar variables
String myHash= getParamString(params, PARAM1);
//connect to database here, check if supplied url is valid,check if user has access to play this movie and decrypt myHash to get movie path and name.
//How do I now pass this movie path to play it?
}
catch(Exception e){
.....
}
}
}
So once I get the decrypted movie path, how do I play it? Also, this is the same procedure for iphone,ipad etc if the client uses a player?
The iPhone one is a little different than RTMP and I can not find the example of how to change the filename requested, but when I do will post the URL.
the problem is the file is mp4 format so for Wowza to choose the correct container format it needs the mp4: prefix. By default Wowza will assume FLV container so when it attempts to read the file as FLV it fails.