私はWowza Streaming Engine 4.1を使用しているColdFusionアプリケーションを持っています。私はビデオやオーディオを記録し、JWプレーヤーで再生するために、すべての統合を行ってきました。私はWowzaのVOD(ビデオオンデマンド)アプリケーションを使用しています。私のサイトのユーザーにビデオをプライベートにする - wowza +レンチ
今、ユーザーが自分の動画しか再生できないようにしたいと思います。
<!-- Example Application.xml part from the Properties and modules element -->
<Modules>
<Module>
<Name>base</Name>
<Description>Base</Description>
<Class>com.wowza.wms.module.ModuleCore</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>
<Module>
<Name>Wrench module</Name>
<Description>A module for user authentication and much more</Description>
<Class>com.streamtoolbox.Wrench</Class>
</Module>
</Modules>
<!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
<Properties>
<!-- Example Application.xml part from the Properties element -->
<Property>
<Name>wrench.db.driver</Name>
<Value></Value> <!-- Setting to nothing to go into no-database mode -->
</Property>
<Property>
<Name>wrench.token.resolver.url</Name>
<Value>http://example.com/auth-token.cfm</Value>
<!--Value>http://streamtoolbox.com/streaming/auth-nok.php</Value-->
</Property>
<Property>
<Name>wrench.connect.authorization.url</Name>
<Value>http://example.com/auth-ok.cfm</Value>
<!--Value>http://streamtoolbox.com/streaming/auth-nok.php</Value-->
</Property>
</Properties>
私のauth-OK CFM:私はこの目的のためにhttps://streamtoolbox.com/webservice-authentication-authorization
を使用しています。この目的のために、それは私が私のapplication.xmlファイルのプロパティ]セクションに次のコードを追加しているので、データベースを必要としません。
{"username":"john"}
:
{"result": "allow"}
私のauth-トークンCFMファイルのみが次のコードが含まれています。ファイルは、唯一の次のコードが含まれています
私はWowzaアプリケーションを再起動し、ビデオをチェックしますが、動画には、次のエラーを与えているしている:
Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
私はそれがCFMファイルにリクエストを送信しているかどうかを確認するために、ColdFusionで、ファイルにテキストをログに記録していますか否か。しかし、何も見つかりません。だから、正しく動作していないapplication.xmlファイルに問題があるようです。
私が間違っていることを誰にでも知らせることができますか?
私はちょうどURLを更新しました@Leigh:あなたは以下の形式(more details in the docs)で、トークンのユーザ名を返す単純なWebサービスを実装する必要があります。私はこのURL http://streamtoolbox.com/streaming/auth-ok.phpを使って適切な応答を出しています。 URLは問題ありません。はい、私は別のブラウザで試しました。 –
私は私のコメントを質問に答えるのに役立たないので削除するつもりです。皆さんはいつもコメントを読んでいるわけではないので、あなたのコメントを質問に移すことをお勧めします(可視性を高めるため)。その後、コメントを削除します。 – Leigh