1

我打算security在我的android手机上开发一个ipcam应用程序,需要通过HTTP请求访问ipcam的SD卡,播放保存的视频,我有两个问题:

  • 当使用浏览器访问特定视频(我知道特定的 URL)时,它会询问我登录和视频启动,而在我的应用程序中,我不知道如何使用特定的 http 会话实现,并且 VideoView 不会启动视频(我假设它需要身份验证)。

我解决了授权!!!

  • 我想创建一个 explorer_path-like 来选择使用视频视图重现的视频。我映射了 ip-cam e 电话之间的 http/tcp 交互,但我不知道在服务器响应 cam 发送如何 html 文本来构建网页之后如何获取 http 消息

    <formatsdcard>Format SD Card</formatsdcard>
    <description1>Click this icon to automatically format the SD Card and create folder for video.</description1>
    <description2>If the recorded files are stored on the SD Card,click on the recorded folder and choose the recorded file you would like to view.</description2>
    <description3>If video files are stored on the SD Card, click on the video folder and choose the video file you would like to view.</description3>
    <description4>Reloads the file and folder information from the SD Card.</description4>
    <format>Format SD Card - </format>
    <view>View Recorded files -</view>
    <playback>Playback Recorded Video - </playback>
    <refresh>Refresh - </refresh>
    
    
    
    <totalcapacity></totalcapacity>
    <availablespace></availablespace>
    <usedspace>xxxxxx</usedspace>
    <modelUsedSpace>0</modelUsedSpace>
    <folderstring>
    VIDEO1.avi:f:CAMPO1*VIDEO2.avi:f:CAMPO2*...OTHER VIDEO IN THE CURRENT DIRECTORY
    </folderstring>
    <folderpath>PARENT-DIRECTORY/CURRENT-DIRECTORY</folderpath>
    <filesperpage>5</filesperpage>
    <currentpage>1</currentpage>
    <totalpages>1</totalpages>
    </playback>
    </config>
    </root>
    

我想获取以下信息:

    <folderstring>
    VIDEO1.avi:f:CAMPO1*VIDEO2.avi:f:CAMPO2*...OTHER VIDEO IN THE CURRENT DIRECTORY
    </folderstring>
    <folderpath>PARENT-DIRECTORY/CURRENT-DIRECTORY</folderpath>
4

0 回答 0