2016-05-12 1 views
0

私はUbuntu 14.04でWowzaStreamingEngine 4.4.1を使用しています。私は安らかなAPIを使用し、例のようにvodアプリケーション(restful_vod)を作成しましたが、vodファイルをストリーミングしないと動作しませんでした。そのため、私はデフォルトのvodアプリケーションとrestful_vodアプリケーションのapplication.xmlファイルを比較します。 MediaReaderのプロパティには違いがあります。デフォルトのVODアプリケーションがあるのプロパティを持たないが、restful_vodは以下があります:私はrandomAccessReaderClassという名前のプロパティを削除する場合mediaReaderRandomAccessReaderClass awow restful apiでの問題

<MediaReader> 
    <!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications --> 
    <Properties> 
    <Property> 
     <Name>randomAccessReaderClass</Name> 
     <Value></Value> 
     <Type>String</Type> 
    </Property> 
    </Properties> 
</MediaReader> 

は、それが動作し始めました。私はmediaReaderRandomAccessReaderClassパラメータが安らかなAPI側でその値を管理することを実現しました。しかし、私は安らかなAPIを使用している間にそれを追加する方法を見つけることができませんでした。私はmediaReaderRandomAccessReaderClass値を設定せず、mediaReaderRandomAccessReaderClassをfalse、null、空文字列に設定しようとしました。

これを追加するのを防ぐ方法はありますか、それともデフォルトの作業値ですか?

ありがとうございました。 「mediaReaderRandomAccessReaderClass」:あなたは次のように設定して、デフォルトのmediaReaderRandomAccessReaderClassを設定することができ

答えて

1

「」

をあなたの結果のApplication.xmlファイルでは、MediaReaderコンテナは、それが使用することを示していると思われる、空白になりますデフォルト値:

<MediaReader> 
    <!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications --> 
    <Properties> 
    </Properties> 
</MediaReader> 

たとえば、VODファイルを作成するためのREST APIコマンドは、次のようになります。

curl -X POST --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testvod -d' 
{ 
    "restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testvod", 
    "version": "1462342478287", 
    "name": "testvod", 
    "appType": "VOD", 
    "description": "Test VOD via REST.", 
    "applicationTimeout": 0, 
    "pingTimeout": 0, 
    "repeaterQueryString": "", 
    "clientStreamReadAccess": "*", 
    "avSyncMethod": "senderreport", 
    "maxRTCPWaitTime": 12000, 
    "httpStreamers": [ 
     "cupertinostreaming", 
     "smoothstreaming", 
     "sanjosestreaming", 
     "mpegdashstreaming" 
    ], 
    "mediaReaderRandomAccessReaderClass": "", 
    "httpOptimizeFileReads": false, 
    "mediaReaderBufferSeekIO": false, 
    "captionLiveIngestType": "", 
    "vodTimedTextProviders": [ 
     "vodcaptionprovidermp4_3gpp" 
    ], 
    "securityConfig": { 
     "restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testvod/security", 
     "secureTokenVersion": 0, 
     "clientStreamWriteAccess": "*", 
     "publishRequirePassword": true, 
     "publishPasswordFile": "", 
     "publishRTMPSecureURL": "", 
     "publishIPBlackList": "", 
     "publishIPWhiteList": "", 
     "publishBlockDuplicateStreamNames": false, 
     "publishValidEncoders": "", 
     "publishAuthenticationMethod": "digest", 
     "playMaximumConnections": 0, 
     "playRequireSecureConnection": false, 
     "secureTokenSharedSecret": "", 
     "secureTokenUseTEAForRTMP": false, 
     "secureTokenIncludeClientIPInHash": false, 
     "secureTokenHashAlgorithm": "", 
     "secureTokenQueryParametersPrefix": "", 
     "secureTokenOriginSharedSecret": "", 
     "playIPBlackList": "", 
     "playIPWhiteList": "", 
     "playAuthenticationMethod": "none" 
    }, 
    "streamConfig": { 
     "restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testvod/streamconfiguration", 
     "streamType": "default", 
     "storageDir": "${com.wowza.wms.context.VHostConfigHome}/content", 
     "createStorageDir": false, 
     "storageDirExists": true, 
     "keyDir": "${com.wowza.wms.context.VHostConfigHome}/keys", 
     "httpRandomizeMediaName": false 
    }, 
    "modules": { 
     "restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testvod/modules", 
     "moduleList": [ 
     { 
      "order": 0, 
      "name": "base", 
      "description": "Base", 
      "class": "com.wowza.wms.module.ModuleCore" 
     }, 
     { 
      "order": 1, 
      "name": "logging", 
      "description": "Client Logging", 
      "class": "com.wowza.wms.module.ModuleClientLogging" 
     }, 
     { 
      "order": 2, 
      "name": "flvplayback", 
      "description": "FLVPlayback", 
      "class": "com.wowza.wms.module.ModuleFLVPlayback" 
     }, 
     { 
      "order": 3, 
      "name": "ModuleCoreSecurity", 
      "description": "Core Security Module for Applications", 
      "class": "com.wowza.wms.security.ModuleCoreSecurity" 
     } 
     ] 
    } 
}' 
+0

私はこれまでに試したことがありますが、興味深いことに、空の文字列を設定することは間違いありません。とにかくありがとう。 – Bilal