找到一个解决方案,但是无法下载zip包
https://stackoverflow.com/questions/21303361/how-to-stream-mp4-files-from-subdirectories-with-flowplayer
怕失效,原文贴出来:
I am using Wowza Media Server to enable streaming of MP4 files and as video player I use Flowplayer. To get some structure for my content I use sub directories within the configured The problem I have is that no matter what URL-format I use, Wowza keep looking for the file in the root storage directory. I‘ve tried using the URL format specified by Wowza here, but with no luck:
I also tried everything suggested in posts on the Wowza forum:
But Wowza keeps looking in the root storage directory, throwing exceptions like these:
Somehow Wowza thinks it should look for an FLV file in the root storage directory, even though the URL specify that it is an MP4 file in a subdirectory. Why is that? |
After spending hours looking into this, I finally found this post on the Wowza forum. The problem: Apparently there is an issue with some flash-based video players (like Flowplayer that I use), that accept a single string for the RTMP connection and stream name. Some of these players do not separate the RTMP connection and stream name properly when using sub directories. When breaking this URL apart:
The player will use this as the RTMP connection:
The player will then try to play The solution: To remedy this problem, there is a plugin for Wowza that fixes the URL, available for download here: Unzip the package and copy the JAR file into your Wowza
Doing so got it all working for me! |
下载地址:
http://www.ttstream.com/WowzaServerAddOnCollection_4.0.zip
要重启服务!