【问题标题】:BrightCove video stuck while playing in IPadBrightCove 视频在 iPad 中播放时卡住了
【发布时间】:2012-08-09 18:17:58
【问题描述】:

我有这个用于在网站上显示视频的 java 脚本。该视频在网站上启动并正常播放。 但是当我插入相同的 javascript 并将其放入字符串中并尝试在 iPad 模拟器上加载视频时,它会卡住。我做错了吗?

代码

NSMutableString *playerString = [[[NSMutableString alloc] init] autorelease];
        [playerString appendString:@"<!-- Start of Brightcove Player --> <div style=\"display:none\"> </div> <!-- By use of this code snippet, I agree to the Brightcove Publisher T and C found at https://accounts.brightcove.com/en/terms-and-conditions/. --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"http://admin.brightcove.com/js/BrightcoveExperiences.js\"></script> <object id=\"myExperience1778612770001\" class=\"BrightcoveExperience\"> <param name=\"bgcolor\" value=\"#FFFFFF\" /> <param name=\"width\" value=\"480\" /> <param name=\"height\" value=\"270\" /> <param name=\"playerID\" value=\"1776746869001\" /> <param name=\"playerKey\" value=\"AQ~~,AAABnWrZAiE~,vOZcyTPVgHpcrcOyFdRZXnunkRSWEVpt\" /> <param name=\"isVid\" value=\"true\" /> <param name=\"isUI\" value=\"true\" /> <param name=\"dynamicStreaming\" value=\"true\" /> <param name=\"@videoPlayer\" value=\"1778612770001\" /> </object> <!-- This script tag will cause the Brightcove Players defined above it to be created as soon as the line is read by the browser. If you wish to have the player instantiated only after the rest of the HTML is processed and the page load is complete, remove the line. --> <script type=\"text/javascript\">brightcove.createExperiences();</script> <!-- End of Brightcove Player -->"];
        NSLog(@"\n------------Script :%@\n-----------------------", playerString);
//videoPlayer is the webview
        [self.videoPlayer loadHTMLString:playerString baseURL:nil];

【问题讨论】:

    标签: ios ios-simulator brightcove


    【解决方案1】:

    我必须提供正确的基本网址......这有效

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-31
      • 2011-12-14
      • 2012-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-11
      • 2015-11-21
      相关资源
      最近更新 更多