Wowza: Need to stream rtp-live to iphone

吃可爱长大的小学妹 提交于 2020-01-04 07:15:43

问题


I need to stream rtp-live to iphone. My channels are configured in SDP files. When I request channels from Flash player, I have a plug-in that starts streaming data to Wowza once it detects the request. This way I don't need to publish the streams. When I try to watch from iphone, I get error since the stream is not published. If I watch a channel from Flash player and then try to watch from iphone, then it works because the stream is automatically published. If I stop watching from Flash player, the stream unpublishes regardless active connection to iphone.

Please help

This is my 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>

回答1:


The StreamType rtp-live only works for flash RTMP.

Flash RTMP clients only

(Optional) If your application will only stream to Flash RTMP clients, in [install-dir]/conf/live/Application.xml, you can set the Streams/StreamType property to: <StreamType>rtp-live</StreamType>

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

Change the the StreamType to live and it should work.

<StreamType>live</StreamType>


来源:https://stackoverflow.com/questions/16410031/wowza-need-to-stream-rtp-live-to-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!