Wowza streaming server needs flv: prefix for flv files
Steps to reproduce
Found the same bug for 1.6 (MH-10506) which was fixed for 1.6
As in custom.properties described, Wowza needs the "flv:" tag to work properly.
Some newer streaming server versions expect an "flv:" tag within the rtmp URL.
Not every RTMP-streaming server is compatible with this (i.e. nginx), so this
is the compatibility mode to the old syntax.
true = without "flv:" tag - old syntax
false = with "flv:" tag - new syntax
Steps to reproduce (just copied them from the old issue):
1. Install a Wowza 4 Media-Server following these instructions:
2. ingest a file with the default workflow (compose-distribute...) that produces an FLV video
3. try to play the video and you get an Error Message: "Stream not found".
4. When trying to test the stream with the Wowza engine manager I noticed that in Wowza 4 it seems that the prefix flv: before the stream-name is needed, otherwise the stream will not be found. Matterhorn omits the prefix.
Stream is not being found. Changing the setting of "org.opencastproject.streaming.flvcompatibility=false" to true or false makes no difference. Also when inspecting the media package via the rest endpoint, the stream URL is not correct, because the "flv:" tag is missing.
Player should play the stream correctly.
Workaround (if any):
in modules/matterhorn-distribution-service-streaming/src/main/java/org/opencastproject/distribution/streaming/StreamingDistributionService.java change:
String tag = "flv".equals(ext) ? "" : ext + ":";
+ String tag = ext + ":";