Wer mit Wowza einen HTTP-Livestream über CloudFront ausliefern möchte, der sollte die Caching-Einstellungen optimieren:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
<HTTPStreamer> <Properties> <!-- HTTP origin mode: on, off --> <Property> <Name>httpOriginMode</Name> <Value>on</Value> </Property> <!-- Apple HLS: cache control --> <Property> <Name>cupertinoCacheControlPlaylist</Name> <Value>max-age=1</Value> </Property> <Property> <Name>cupertinoCacheControlMediaChunk</Name> <Value>max-age=3600</Value> </Property> <!-- Microsoft Smooth Streaming: cache control --> <Property> <Name>smoothCacheControlPlaylist</Name> <Value>max-age=1</Value> </Property> <Property> <Name>smoothCacheControlMediaChunk</Name> <Value>max-age=3600</Value> </Property> <Property> <Name>smoothCacheControlDataChunk</Name> <Value>max-age=3600</Value> </Property> <!-- Adobe HDS: cache control --> <Property> <Name>sanjoseCacheControlPlaylist</Name> <Value>max-age=1</Value> </Property> <Property> <Name>sanjoseCacheControlMediaChunk</Name> <Value>max-age=3600</Value> </Property> <!-- Apple HLS: transport stream counter --> <Property> <Name>cupertinoOnChunkStartResetCounter</Name> <Value>true</Value> <Type>Boolean</Type> </Property> </Properties> </HTTPStreamer> |
und
1 2 3 4 5 6 7 8 9 |
<LiveStreamPacketizer> <Properties> <Property> <Name>httpRandomizeMediaName</Name> <Value>true</Value> <Type>Boolean</Type> </Property> </Properties> </LiveStreamPacketizer> |
andernfalls nervt insbesondere beim Neustarten des Streams der gecachte Status “kein Video gefunden”