如何使用 Wowza Streaming Engine 安排流式传输 [英] How to schedule streaming with Wowza Streaming Engine
问题描述
我正在尝试在 Wowza 服务器上安排播放列表,以便连续播放视频(如电视频道).我开始学习本教程:
I am trying to schedule a playlist on a Wowza server, so that videos get played successively (like a TV channel). I started following this tutorial :
在 /usr/local/WowzaStreamingEngine/conf/Server.xml
中,我在 ServerListeners 中添加了这个:
In /usr/local/WowzaStreamingEngine/conf/Server.xml
I added this in ServerListeners :
<ServerListener
<BaseClass>com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher</BaseClass>
</ServerListener>
在 /usr/local/WowzaStreamingEngine/conf/Application.xml
我在模块中添加了这个:
In /usr/local/WowzaStreamingEngine/conf/Application.xml
I added this in Modules :
<Module>
<Name>streamPublisher</Name>
<Description>Schedules streams and playlists.</Description>
<Class>com.wowza.wms.plugin.collection.module.ModuleStreamPublisher</Class>
</Module>
我在 /usr/local/WowzaStreamingEngine/content/ana.smil
中创建了一个 smil 文件,其中包含:
I created a smil file in /usr/local/WowzaStreamingEngine/content/ana.smil
containing this :
<?xml version="1.0" encoding="UTF-8"?>
<smil>
<head>
</head>
<body>
<stream name="live"></stream>
<playlist name="pl1" playOnStream="live" repeat="true" scheduled="2013-09-25 16:00:00">
<video src="mp4:sample.mp4" start="5" length="5"/>
<video src="mp4:sample.mp4" start="50" length="5"/>
<video src="mp4:sample.mp4" start="150" length="5"/>
</playlist>
</body>
</smil>
我重新启动了服务器...
现在我期待看到流进入我的应用程序通过名为live"的流进行直播......但没有任何显示.
Now I was expecting to see the stream coming to my Application "live through the Stream called "live"... But nothing shows.
我想我错过了一步,也许添加了 streamPublisherSmilFile
属性,正如我上面发布的 Wowza 链接中所说的那样......但是我在哪里设置?
I guess I missed a step, maybe adding streamPublisherSmilFile
property as said in Wowza link I posted above ... But where do I set that ?
谢谢你的帮助.问候,约翰
Thanks for you help. Regards, John
推荐答案
您需要同时添加服务器和应用程序属性
You need to add both the Server and Application Properties
服务器属性
/usr/local/WowzaStreamingEngine/conf/Server.xml
<!-- Properties defined here will be added to the IServer.getProperties() collection -->
<Properties>
<Property>
<Name>...</Name>
<Value>...</Value>
<Type>...</Type>
</Property>
</Properties>
应用程序属性
/usr/local/WowzaStreamingEngine/conf/{APP_NAME}/Application.xml
例如:对于实时应用:
/usr/local/WowzaStreamingEngine/conf/live/Application.xml
<!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
<Properties>
<Property>
<Name>...</Name>
<Value>...</Value>
<Type>...</Type>
</Property>
</Properties>
您还需要将模块 .jar 文件从附加组件集合复制到:
You also need to copy the module .jar file from the add-on collection to:
/usr/local/WowzaStreamingEngine/lib
然后重启 Wowza.
And then restart Wowza.
这篇关于如何使用 Wowza Streaming Engine 安排流式传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!