Instagram和Vine iOS应用程序如何在线播放视频?

And*_*Hin 6 iphone ios ios7

没有打开全屏视频播放器?

他们使用的是webview吗?视频的格式是什么?

cod*_*cat 0

使用/尝试下面的代码,我希望它有效。

NSString *embedHTML = @"\
  <html><head>\
  <style type=\"text/css\">\
  body {\
  background-color: transparent;
  color: white;
  }\
  </style>\
  </head><body style=\"margin:0\">\
  <embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \
  width=\"%0.0f\" height=\"%0.0f\"></embed>\
  </body></html>";

  NSString *htmlString = [NSString stringWithFormat:embedHTML, yourURLString, width,height];//set width and height 

  [webView loadHTMLString:htmlStr baseURL:nil];
  [self.view addSubview:webView];
Run Code Online (Sandbox Code Playgroud)

或者

通过 UIWebView 类委托方法尝试第二种方法

允许内联媒体播放