我是 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];