Results 1 to 6 of 6

Thread: MediaCache multiple configurations

  1. #1
    Join Date
    Jul 2012
    Posts
    3

    Default MediaCache multiple configurations

    Hi everyone,

    I want to create several prefix in order to separate the configurations of MediaCache. For example: for the same server, can serve vod with the frefix 'http/','<empty>', etc...

    Is this possible?
    I tried adding to the default config MediaCache.xml another MediaSource but I didn't work.

    Regards,
    Nicolas.

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

    Default

    Nicolas,

    Did you re-start Wowza after making the change?

    Copy in the MediaCache.xml, show us what you are doing.

    Richard

  3. #3
    Join Date
    Jul 2012
    Posts
    3

    Default

    Hi Richard,

    Yes, I restart Wowza after that. But my problem is that I don't know how to configure the xml in order to use many prefix. I'm just guessing and testing. Can you help me with that?
    This is the last part of my MediaCache.xml. Note that the first one has the prefix http/ and the second without a prefix. My goal is to have separate configurations in order to separate the traffic.

    ...
    <MediaCacheSource>
    <Name>http</Name>
    <BasePath>http://</BasePath>
    <Prefix>http/</Prefix>
    <BaseClass>com.wowza.wms.plugin.mediacache.impl.MediaCacheItemHTTPImpl</BaseClass>
    <ReaderClass></ReaderClass>
    <DefaultBlockSize>256K</DefaultBlockSize>
    <MaxTimeToLive>1200000</MaxTimeToLive>
    <MinTimeToLive>600000</MinTimeToLive>
    <ReadAhead>true</ReadAhead>
    <ReadAheadThreshold>50</ReadAheadThreshold>
    <IsPassThru>false</IsPassThru>
    <Properties>
    <!-- maximum number of concurrent connections this source will make back to the web server -->
    <Property>
    <Name>maxPoolSize</Name>
    <Value>25</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP request timeout -->
    <Property>
    <Name>httpReadTimeout</Name>
    <Value>6000</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP connection timeout -->
    <Property>
    <Name>httpConnectionTimeout</Name>
    <Value>6000</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP read request retry count -->
    <Property>
    <Name>httpReadRetries</Name>
    <Value>3</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP send buffer size -->
    <Property>
    <Name>httpSendBufferSize</Name>
    <Value>8000</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP receive buffer size -->
    <Property>
    <Name>httpReceiveBufferSize</Name>
    <Value>65000</Value>
    <Type>Integer</Type>
    </Property>
    <!-- Set to true if streaming from S3 so that bucket name is properly handled in URL structure -->
    <Property>
    <Name>isAmazonS3</Name>
    <Value>false</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>s3BucketNameInDomain</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>
    </Properties>
    </MediaCacheSource>
    <MediaCacheSource>
    <Name>http</Name>
    <BasePath></BasePath>
    <Prefix>http/</Prefix>
    <BaseClass>com.wowza.wms.plugin.mediacache.impl.MediaCacheItemHTTPImpl</BaseClass>
    <ReaderClass></ReaderClass>
    <DefaultBlockSize>256K</DefaultBlockSize>
    <MaxTimeToLive>1200000</MaxTimeToLive>
    <MinTimeToLive>600000</MinTimeToLive>
    <ReadAhead>true</ReadAhead>
    <ReadAheadThreshold>50</ReadAheadThreshold>
    <IsPassThru>false</IsPassThru>
    <Properties>
    <!-- maximum number of concurrent connections this source will make back to the web server -->
    <Property>
    <Name>maxPoolSize</Name>
    <Value>25</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP request timeout -->
    <Property>
    <Name>httpReadTimeout</Name>
    <Value>6000</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP connection timeout -->
    <Property>
    <Name>httpConnectionTimeout</Name>
    <Value>6000</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP read request retry count -->
    <Property>
    <Name>httpReadRetries</Name>
    <Value>3</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP send buffer size -->
    <Property>
    <Name>httpSendBufferSize</Name>
    <Value>8000</Value>
    <Type>Integer</Type>
    </Property>
    <!-- HTTP receive buffer size -->
    <Property>
    <Name>httpReceiveBufferSize</Name>
    <Value>65000</Value>
    <Type>Integer</Type>
    </Property>
    <!-- Set to true if streaming from S3 so that bucket name is properly handled in URL structure -->
    <Property>
    <Name>isAmazonS3</Name>
    <Value>false</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>s3BucketNameInDomain</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>
    </Properties>
    </MediaCacheSource>

    ...

    Thanks,
    Nicolas-
    Last edited by nlopez; 08-07-2012 at 01:56 PM.

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

    Default

    Nicolas,

    The BasePath in the 2nd MediaCacheSource is empty. You have to enter a location here. Since you are using "http://" as BasePath in the first, you can already point to any http location, but you might want the 2nd one to point to specific server:

    <BasePath>http://yourWebserver</BasePath>

    Each MediaCacheSource /Prefix has to be different. Make the one in the 2nd MediaCacheSource http2:

    <Prefix>http2/</Prefix>

    Then use http2/ prefix when you want to reference that content, for example "mp4:http2/yourfile.mp4" would playback a file located at http://yourWebserver/yourFile.mp4

    Richard

  5. #5
    Join Date
    Jul 2012
    Posts
    3

    Default

    Thanks! Now it works great.

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

    Default

    Cool, great, glad it's working. Thanks for the update

    Richard

Similar Threads

  1. Multiple instances sharing MediaCache
    By PalmerEk in forum On-Demand Streaming
    Replies: 5
    Last Post: 08-27-2014, 10:41 AM
  2. MediaCache + Alias - not working with multiple buckets
    By sgmota in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 7
    Last Post: 06-29-2012, 08:53 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
  •