Results 1 to 2 of 2

Thread: VODS3 hiding file name for packetsniffers

  1. #1
    Join Date
    Jul 2013

    Default VODS3 hiding file name for packetsniffers

    Hi All,

    If you are using the default VODS3 application it is quite easy to spot your file names using a packet sniffer such as wireshark. I don't prefer this, so I've made an own .jar file that overrides the play function, of which the code is written here:

    package com.wowza.wms.plugin.collection.module;
    import com.wowza.wms.amf.*;
    import com.wowza.wms.client.*;
    import com.wowza.wms.module.*;
    import com.wowza.wms.request.*;
    import com.wowza.wms.util.*;
    public class ModuleVODS3changename extends ModuleBase
    	public void play(IClient client, RequestFunction function, AMFDataList parameters)
    		String oldstring = extractStreamName2(client, function, parameters);
    		String newstring = "do what ever you want here" + oldstring + ".flv";
    		parameters.set(PARAM1, newstring);
    		invokePrevious(client, function, parameters);
    	public String extractStreamName2(IClient client, RequestFunction function, AMFDataList params)
    		String streamName = params.getString(PARAM1);
    		if (streamName != null)
    			String streamExt = MediaStream.BASE_STREAM_EXT;
    			String[] streamDecode = ModuleUtils.decodeStreamExtension(streamName, streamExt);
    			streamName = streamDecode[0];
    			streamExt = streamDecode[1];
    		return streamName;
    This works fine and the file name in the play method is hidden succesfully . But... now the Netstream.Play.Reset.description and Netstream.Play.Start.description are still revealing my original file name. Please have at look at my screenshot here: screenshot.

    Does anybody have an idea how to overwrite these as well? It must be possible since it are just descriptions. I've tried to overwrite PARAM2 until 10 but this was of little succes.

    Many thanks,

  2. #2



    There currently isn't a way to do this. I have brought it to the attention of our engineering team so that they can look into a solution.

    I noticed in your screen shot that you were also concerned about the stream metadata. This information is set by the encoder when the stream or file is created. Fortunately, you can modify this easily using api methods to rewrite the metadata before it is sent to the player.

    How to add onMetaData event on the fly to video on demand streams shows how to access the metadata packet when it is requested and add or modify information.

    In the example, the actual data is stored in dataObj which is a AMFDataMixedArray. The structure is similar to a java map and you have get* put & remove methods. Any data added to the array must be put as AMFDataItem objects. See com.wowza.wms.amf in the Server api documentation for more info.

    I would suggest only removing what you really don't want available as some players rely on the metadata to function properly.


Similar Threads

  1. vods3 can not get s3 file to playback (nothing changed on my wms)
    By andy_c in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 0
    Last Post: 12-24-2013, 07:30 PM
  2. Hiding server information in RTSP message.
    By scdmd78 in forum Server Administration Discussion
    Replies: 1
    Last Post: 05-02-2013, 01:31 PM
  3. Hiding vod filename for users?
    By divyat in forum Video On Demand Streaming Discussion
    Replies: 3
    Last Post: 10-26-2012, 12:17 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