1

我想通过以编程方式压缩和解压缩此链接http://enhancelearning.co.in/downloads/HTML5.zip的文件来播放 html 5 文件中的视频 此文件包含 4 个 html 文件 zip 和解压缩成功创建但视频未在网络中播放查看这里是我的代码

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *docspath = [paths objectAtIndex:0];
    paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
    // NSString *cachePath = [paths objectAtIndex:0];



    NSString *zipFile = [docspath stringByAppendingPathComponent:@"001.html"];

    NSURL *url = [NSURL fileURLWithPath:zipFile];
    [webVew loadRequest:[NSURLRequest requestWithURL:url]];
4

1 回答 1

0

首先尝试将此 html 文件放在网络中的某个位置,看看当您从 safari 转到此页面时是否播放视频。
这可能是 HTML-Safari-ios 的问题,这样更容易调试。

于 2013-01-30T10:35:50.540 回答