I am trying to get a BrightCov embedded video player to work in IE8. It is currently working in all other browsers & gt; IE8
I retrieved this code from this BrightCove example:
& Lt ;! - JavaScript Media API Cover from opensource.brightcove.com - & gt; & Lt; Script type = "text / javascript" src = "http://files.brightcove.com/bc-mapi.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; Media API sample & lt; / H1> & Lt ;! - Start of Brightcov Player - & gt; & Lt; Script language = "javascript" type = "text / javascript" src = "http://admin.brightcove.com/js/BrightcoveExperiences.js" & gt; & Lt; / Script & gt; & Lt; Object ID = "My Experience" class = "Brightcow experience" & gt; & Lt; Param name = "bgcolor" value = "#fffff" /> & Lt; Param name = "width" value = "480" /> & Lt; Param name = "height" value = "270" /> & Lt; Param name = "player id" value = "9212671 9 0001" /> & lt; Ultimate name = "player" value = "AK ~~, AAAA1BVE ~, ALLAGEGZGWG3MLVDX9F9JKV 06CNK00A" /> & Lt; Param name = "isvid" value = "true" /> & Lt; Param name = "isUI" value = "true" /> & Lt; Param name = "dynamic streaming" value = "true" /> & Lt ;! - Parameters for Universal Player API - & gt; & Lt; Param name = "includeAPI" value = "true" /> & Lt; Param name = "templateReadyHandler" value = "BCL.onTemplateReady" /> & Lt; / Object & gt; & Lt; Script type = "text / javascript" & gt; Brightcove.createExperiences (); & Lt; / Script & gt; & Lt ;! - End of Brightcov Player - & gt; & Lt; Fieldset & gt; & Lt; Story & gt; Video & lt; / Narrative & gt; & Lt; Div id = "result" & gt; & Lt; / Div & gt; & Lt; / Fieldset & gt; & Lt; Br> & Lt ;! - This is a modified script for practice - & gt; & Lt; Script type = "text / javascript" & gt; // BCL Media API search maker - from JS-MAPI to maintain all "global" Vars at opensource.brightcove.com // namespace. // Placeholder - Parameters for API call BCM = {}; // Media API Token BCMAPI Token = "WDGO_XdKqXVJRVGtrNuGLxCYDNoR-SVA5yUqX2eE6KjgefOxRzQilw .."; // Set Callback for Media API BCMAPI.callback = "BCL.onSearchResponse"; // set BCL.params.any = "tag: nature"; BCMAPI.search (BCL.params); BCL.onSearchResponse = function (jsonData) {var str = ""; (Var index in jsonData.items) {str + = "& lt; an onclick =" BCL.playVideo ("+ jsonData.items [index] .ID +") \ "style = \" cursor: indicator \ "& Gt; & lt; img src = \" "+ json.data.items [index]. ThumbnailURL +" \ "/>
Small & gt;" + Json .data.items [index] .name + "& lt; small & gt; & lt; / a & gt; & lt; hr / & gt;"; } Document.getElementById ("Result"). InnerHTML = str; } // Player API Scripting // Program Listener BCL to become player. TomplateRedi = Event (Event) {BCL.player = brightcove.api.getExperience ("My Experience"); // Video Player BCL.videoPlayer = Get references to BCL.player.getModule (brightcove.api.modules.APIModules.VIDEO_PLAYER); } // play video function BCL.playVideo = function (videoID) {BCL.videoPlayer.loadVideoByID (videoID); } & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt; Any help would be appreciated!
I have seen comments from within the opening and closing that it is working IE8 first. do not know why.
No comments:
Post a Comment