我是iPhone开发人员,我无法将brightcove播放器加载到UIWebView
。我很清楚iOS无法播放flash,但我不需要播放视频。我只想让播放器和它的缩略图在webView中可见。当我通过webview中的url链接加载brightcove播放器时它可以正常工作,但是当我尝试嵌入播放器时它不会加载。任何帮助解决这个问题都非常感谢。
我的代码:
//Via Url Link
NSString * storyLink = @"http://link.brightcove.com/services/player/bcpid1683318714001?bckey=AQ~~,AAAAC59qSJk~,vyxcsD3OtBPHZ2UIrFX2-wdCLTYNyMNn&bclid=1644543007001&bctid=2228912951001"
NSURL *kitcoURL = [NSURL URLWithString:storyLink];
NSURLRequest *requestURL = [NSURLRequest requestWithURL:kitcoURL];
[videoScreen setUserInteractionEnabled:YES];
[videoScreen loadRequest:requestURL];
//Embedding Player
//Brightcove Player
NSString *htmlStr2 = [NSString stringWithFormat:@"<html><body><object id=\"flashObj\" width=\"320\" height=\"230\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0\"><param name=\"movie\" value=\"http://c.brightcove.com/services/viewer/federated_f9?isVid=1\" /><param name=\"bgcolor\" value=\"#FFFFFF\" /><param name=\"flashVars\" value=\"videoId=2228912951001&playerID=659636031001&playerKey=AQ~~,AAAAC59qSJk~,vyxcsD3OtBM6WfpHEsDft5laXH9ASJhF&domain=embed&dynamicStreaming=true\" /><param name=\"base\" value=\"http://admin.brightcove.com\" /><param name=\"seamlesstabbing\" value=\"false\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"swLiveConnect\" value=\"true\" /><param name=\"allowScriptAccess\" value=\"always\" /><embed src=\"http://c.brightcove.com/services/viewer/federated_f9?isVid=1\" bgcolor=\"#FFFFFF\" flashVars=\"videoId=2228912951001&playerID=659636031001&playerKey=AQ~~,AAAAC59qSJk~,vyxcsD3OtBM6WfpHEsDft5laXH9ASJhF&domain=embed&dynamicStreaming=true\" base=\"http://admin.brightcove.com\" name=\"flashObj\" width=\"320\" height=\"230\" seamlesstabbing=\"false\" type=\"application/x-shockwave-flash\" allowFullScreen=\"true\" swLiveConnect=\"true\" allowScriptAccess=\"always\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed></object></body></html>",];
//Load Brightcove Player
[videoScreen loadHTMLString:htmlStr2 baseURL:nil];
答案 0 :(得分:1)
Brightcove Player依赖于Adobe Flash,后者无法在iOS上运行。