繁体   English   中英

Wowza:需要将rtp-live流式传输到iphone

[英]Wowza: Need to stream rtp-live to iphone

我需要将rtp-live流式传输到iphone。 我的通道在SDP文件中配置。 当我从Flash Player请求频道时,我有一个插件,一旦它检测到请求,便开始将数据流传输到Wowza。 这样,我就不需要发布流。 尝试从iPhone观看时,由于未发布流,因此出现错误。 如果我从Flash Player观看一个频道,然后尝试从iphone观看,那么它可以正常工作,因为流是自动发布的。 如果我停止从Flash Player观看,则无论与iPhone的有效连接如何,流都将取消发布。

请帮忙

这是我的application.xml

<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>

StreamType rtp-live仅适用于Flash RTMP。

 Flash RTMP clients only 

(可选)如果您的应用程序仅流向Flash RTMP客户端,则可以在[install-dir] /conf/live/Application.xml中将Streams / StreamType属性设置to: <StreamType>rtp-live</StreamType>

教程: http ://www.wowza.com/forums/content.php? 38

将StreamType更改为live ,它应该可以工作。

<StreamType>live</StreamType>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM