Wowza:需要将rtp实时传输到iphone
我需要将rtp实时传输到iphone。我的频道在SDP文件中配置。当我从Flash player请求频道时,我有一个插件,一旦它检测到请求,就会开始将数据流传输到Wowza。这样我就不需要发布流了。 当我试图从iphone上观看时,由于流未发布,所以出现了错误。如果我从Flash player观看一个频道,然后尝试从iphone观看,那么它会工作,因为流是自动发布的。如果我停止从Flash player观看,无论是否连接到iphone,流都将取消发布 请帮忙 这是我的application.xmlWowza:需要将rtp实时传输到iphone,iphone,stream,live,rtp,wowza,Iphone,Stream,Live,Rtp,Wowza,我需要将rtp实时传输到iphone。我的频道在SDP文件中配置。当我从Flash player请求频道时,我有一个插件,一旦它检测到请求,就会开始将数据流传输到Wowza。这样我就不需要发布流了。 当我试图从iphone上观看时,由于流未发布,所以出现了错误。如果我从Flash player观看一个频道,然后尝试从iphone观看,那么它会工作,因为流是自动发布的。如果我停止从Flash player观看,无论是否连接到iphone,流都将取消发布 请帮忙 这是我的application.xm
<Root>
<Application>
<Connections>
<AutoAccept>true</AutoAccept>
<AllowDomains></AllowDomains>
</Connections>
<Streams>
<StreamType>rtp-live</StreamType>
<StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
<KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
<LiveStreamPacketizers>cupertinostreamingpacketizer,smoothstreamingpacketizer,sanjosestreamingpacketizer</LiveStreamPacketizers>
<Properties>
</Properties>
</Streams>
<Transcoder>
<LiveStreamTranscoder></LiveStreamTranscoder>
<Templates>${SourceStreamName}.xml,transrate.xml</Templates> <ProfileDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles</ProfileDir>
<TemplateDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/templates</TemplateDir>
<Properties>
</Properties>
</Transcoder>
<DVR>
<Recorders></Recorders>
<Store></Store>
<WindowDuration>0</WindowDuration>
<StorageDir>${com.wowza.wms.context.VHostConfigHome}/dvr</StorageDir>
<ArchiveStrategy>append</ArchiveStrategy>
<Repeater>
<ChunkOriginURL></ChunkOriginURL>
</Repeater>
<Properties>
</Properties>
</DVR>
<HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming</HTTPStreamers>
<SharedObjects>
<StorageDir></StorageDir>
</SharedObjects>
<Client>
<IdleFrequency>-1</IdleFrequency>
<Access>
<StreamReadAccess>*</StreamReadAccess>
<StreamWriteAccess>*</StreamWriteAccess>
<StreamAudioSampleAccess></StreamAudioSampleAccess>
<StreamVideoSampleAccess></StreamVideoSampleAccess>
<SharedObjectReadAccess>*</SharedObjectReadAccess>
<SharedObjectWriteAccess>*</SharedObjectWriteAccess>
</Access>
</Client>
<RTP>
<!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
<Authentication>
<PublishMethod>digest</PublishMethod>
<PlayMethod>none</PlayMethod>
</Authentication>
<!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
<AVSyncMethod>senderreport</AVSyncMethod>
<MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
<IdleFrequency>75</IdleFrequency>
<RTSPSessionTimeout>90000</RTSPSessionTimeout>
<RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>
<RTSPBindIpAddress></RTSPBindIpAddress>
<RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>
<RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>
<IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>
<!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->
<Properties>
</Properties>
</RTP>
<MediaCaster>
<!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
<Properties>
<Property>
<Name>forceInterleaved</Name>
<Value>true</Value>
<Type>Boolean</Type>
</Property>
</Properties>
</MediaCaster>
<MediaReader>
<!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
<Properties>
</Properties>
</MediaReader>
<MediaWriter>
<!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->
<Properties>
</Properties>
</MediaWriter>
<LiveStreamPacketizer>
<!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
<Properties>
</Properties>
</LiveStreamPacketizer>
<HTTPStreamer>
<!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
<Properties>
</Properties>
</HTTPStreamer>
<Repeater>
<OriginURL></OriginURL>
<QueryString><![CDATA[]]></QueryString>
</Repeater>
<Modules>
<Module>
<Name>base</Name>
<Description>Base</Description>
<Class>com.wowza.wms.module.ModuleCore</Class>
</Module>
<Module>
<Name>properties</Name>
<Description>Properties</Description>
<Class>com.wowza.wms.module.ModuleProperties</Class>
</Module>
<Module>
<Name>logging</Name>
<Description>Client Logging</Description>
<Class>com.wowza.wms.module.ModuleClientLogging</Class>
</Module>
<Module>
<Name>flvplayback</Name>
<Description>FLVPlayback</Description>
<Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
</Module>
</Modules>
<!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
<Properties>
</Properties>
</Application>
</Root>
真的
实时传送
${com.wowza.wms.context.VHostConfigHome}/content
${com.wowza.wms.context.VHostConfigHome}/keys
cupertinostreamingpacketizer、smoothstreamingpacketizer、sanjosestreamingpacketizer
${SourceStreamName}.xml,transrate.xml${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles
${com.wowza.wms.context.VHostConfigHome}/transcoder/templates
0
${com.wowza.wms.context.VHostConfigHome}/dvr
追加
铜流、平滑流、sanjosestreaming
-1
*
*
*
*
消化
没有一个
发送报告端口
12000
75
90000
0
0.0.0.0
127.0.0.1
*
强制交错
真的
布尔值
基础
基础
com.wowza.wms.module.ModuleCore
性质
性质
com.wowza.wms.module.ModuleProperties
登录中
客户端日志记录
com.wowza.wms.module.ModuleClientLogging
flvplayback
FLVPlayback
com.wowza.wms.module.ModuleFLVPlayback
StreamTypertp live仅适用于flash RTMP
(可选)如果您的应用程序仅流式传输到Flash RTMP客户端,
在[install dir]/conf/live/Application.xml中,可以设置
Streams/StreamType属性到:rtp live
教程:
将StreamType更改为live,它应该可以工作
<StreamType>live</StreamType>
直播
您的问题不是很清楚。。。“我有一个插件,一旦它检测到请求,就开始将数据流传输到Wowza”,所以它对iphone不起作用,因为你从来没有从iphone调用过这个插件,对吗?忽略这个插件。我提到它是因为当我使用它时,不需要发布流。这就是我使用rtp live的原因。rtp live在有请求时自动发布流。由于某些原因,当请求由iphone发起时,它不起作用。这就是插件的作用。我不会一直将数据流传输到wowza,但只能按需传输。我有200个频道,提要位于不同的服务器上。当有观看频道的请求时,插件将命令发送到提要服务器,该服务器将开始向wowza流式传输。我知道这就像中继器,但我们使用自己的协议在服务器之间传输数据。这就是我们需要rtp live的原因。我可以发布所有频道,但是wowza中充斥着他们没有流的日志。对于200个频道,这几乎扼杀了进程。好的,明白了。。。因此,我看到的唯一解决方案是向服务器发送请求,从iphone开始发布流媒体,它可以是http请求,您可以在服务器端处理。谢谢,您了解了我的想法。我想到了完全相同的解决方案。我只需要保持当前连接的计数,以便在没有人使用流时取消发布流。非常感谢。多年来用户在Wowza StreamingEngine上遇到这个问题,我不明白为什么他们不实施解决方案!这是我的同一个问题,在有限带宽的情况下,每个站点都有不止一次的cam,我不能只激活我需要的流媒体。。。。我正在寻找一个工作环境或新的媒体服务器。。。。
<StreamType>live</StreamType>