【问题标题】:How to use PHP to retrieve Wowza HTTP Providers如何使用 PHP 检索 Wowza HTTP 提供程序
【发布时间】:2014-03-05 02:36:18
【问题描述】:

Wowza Streaming Server 提供 HTTP 提供程序,用于提供有关当前连接和服务器状态的信息。他们使用http://username:password@url.com:8086/connectioncounts 模型中的基本HTTP 身份验证。这将输出服务器上正在发生的事情以及有多少流连接的 xml 视图。

诚然,我是 PHP 新手,但我搜索过大量的 Stackoverflow 和 Google。我已经尝试了许多示例,到目前为止,在尝试以编程方式访问数据时返回的所有内容都没有。

我尝试使用 cURL 以及使用 simplexml 工具。 phpinfo() 告诉我,我有所有必要的包来远程使用和处理 url 和远程 xml 文件。我已经在我的网站等其他页面上测试了相同的代码,尽管我的主页没有使用基本身份验证,但它工作得很好。

我尝试过的类似问题:

典型输出如下所示:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<WowzaMediaServer>
<ConnectionsCurrent>1</ConnectionsCurrent>
<ConnectionsTotal>2</ConnectionsTotal>
<ConnectionsTotalAccepted>2</ConnectionsTotalAccepted>
<ConnectionsTotalRejected>0</ConnectionsTotalRejected>
<MessagesInBytesRate>1324.0</MessagesInBytesRate>
<MessagesOutBytesRate>0.0</MessagesOutBytesRate>
<VHost>
<Name>_defaultVHost_</Name>
<TimeRunning>5883.723</TimeRunning>
<ConnectionsLimit>0</ConnectionsLimit>
<ConnectionsCurrent>1</ConnectionsCurrent>
<ConnectionsTotal>2</ConnectionsTotal>
<ConnectionsTotalAccepted>2</ConnectionsTotalAccepted>
<ConnectionsTotalRejected>0</ConnectionsTotalRejected>
<MessagesInBytesRate>1324.0</MessagesInBytesRate>
<MessagesOutBytesRate>0.0</MessagesOutBytesRate>
<Application>
<Name>live</Name>
<Status>loaded</Status>
<TimeRunning>5877.738</TimeRunning>
<ConnectionsCurrent>1</ConnectionsCurrent>
<ConnectionsTotal>2</ConnectionsTotal>
<ConnectionsTotalAccepted>2</ConnectionsTotalAccepted>
<ConnectionsTotalRejected>0</ConnectionsTotalRejected>
<MessagesInBytesRate>1324.0</MessagesInBytesRate>
<MessagesOutBytesRate>0.0</MessagesOutBytesRate>
<ApplicationInstance>
<Name>_definst_</Name>
<TimeRunning>5877.622</TimeRunning>
<ConnectionsCurrent>1</ConnectionsCurrent>
<ConnectionsTotal>2</ConnectionsTotal>
<ConnectionsTotalAccepted>2</ConnectionsTotalAccepted>
<ConnectionsTotalRejected>0</ConnectionsTotalRejected>
<MessagesInBytesRate>1324.0</MessagesInBytesRate>
<MessagesOutBytesRate>0.0</MessagesOutBytesRate>
<Stream>
<Name>mystream.mp4</Name>
<SessionsFlash>0</SessionsFlash>
<SessionsCupertino>0</SessionsCupertino>
<SessionsSanJose>0</SessionsSanJose>
<SessionsSmooth>0</SessionsSmooth>
<SessionsRTSP>0</SessionsRTSP>
<SessionsMPEGDash>0</SessionsMPEGDash>
<SessionsTotal>0</SessionsTotal>
</Stream>
</ApplicationInstance>
</Application>
</VHost>
</WowzaMediaServer>

【问题讨论】:

    标签: php wowza


    【解决方案1】:

    wowza 媒体服务器的默认 HTTP 身份验证是摘要。

    但你可以在 conf 文件夹的 VHost.xml 中将其更改为基本。

    只需更改管理摘要

    成为管理员基础

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-27
      • 2014-03-03
      • 1970-01-01
      • 2017-06-03
      相关资源
      最近更新 更多