IPCam&x27;在android手机上通过cgi http方法(dlink dcs-942l)访问sd卡

IPCam&x27;在android手机上通过cgi http方法(dlink dcs-942l)访问sd卡,android,cgi,android-videoview,http-authentication,ip-camera,Android,Cgi,Android Videoview,Http Authentication,Ip Camera,我要在我的android手机上开发一个ipcamsecurityapp,需要通过HTTP请求访问ipcam的SD卡,才能播放保存的视频,我有两个问题: 当使用浏览器访问特定的视频(我知道特定的URL)时,它会要求我登录并启动视频,而在我的应用程序中,我不知道如何实现特定的http会话,并且VideoView不会启动视频(我想它需要身份验证) 我决定授权 我想创建一个类似浏览器的路径,以选择使用视频视图复制的视频。 我映射了ip cam e phone之间的http/tcp交互,但我不知道在

我要在我的android手机上开发一个ipcam
security
app,需要通过HTTP请求访问ipcam的SD卡,才能播放保存的视频,我有两个问题:

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

  • 我想创建一个类似浏览器的路径,以选择使用视频视图复制的视频。 我映射了ip cam e phone之间的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>
    
    格式化SD卡
    单击此图标可自动格式化SD卡并创建视频文件夹。
    如果录制的文件存储在SD卡上,请单击录制的文件夹并选择要查看的录制文件。
    如果视频文件存储在SD卡上,请单击视频文件夹并选择要查看的视频文件。
    从SD卡重新加载文件和文件夹信息。
    SD卡格式-
    查看录制的文件-
    播放录制的视频-
    刷新-
    xxxxxx
    0
    VIDEO1.avi:f:CAMPO1*VIDEO2.avi:f:CAMPO2*…当前目录中的其他视频
    父目录/当前目录
    5.
    1.
    1.
    
我想了解以下信息:

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

VIDEO1.avi:f:CAMPO1*VIDEO2.avi:f:CAMPO2*…当前目录中的其他视频
父目录/当前目录

我解析了关于请求授权的部分。setHeader(“授权”,“基本”+Base64.encodeToString(“用户:密码”.getBytes(),Base64.NO_WRAP));感谢wireshark程序,我映射了http流量并解决了它。所有问题都在一个月前解决了。