Function innerHTML调用以接收url

Function innerHTML调用以接收url,function,http,url,innerhtml,brightcove,Function,Http,Url,Innerhtml,Brightcove,我正在尝试拨打一个电话,这样当在我的播放列表中单击视频标题时,它将回调一个特定的视频url,以显示在我创建的元数据字段框中 到目前为止,我得到了一些结果,但我使用的下面的函数为我提供了如下rmtp url: (rtmp://brightcove.fcod.llnwd.net/a500/d16/&mp4:media/1978114949001/1978114949001_2073371902001_How-捕捉冰虫。mp4&1358870400000&7b1c5b2e65a7c051419c7f5

我正在尝试拨打一个电话,这样当在我的播放列表中单击视频标题时,它将回调一个特定的视频url,以显示在我创建的元数据字段框中

到目前为止,我得到了一些结果,但我使用的下面的函数为我提供了如下rmtp url:

(rtmp://brightcove.fcod.llnwd.net/a500/d16/&mp4:media/1978114949001/1978114949001_2073371902001_How-捕捉冰虫。mp4&1358870400000&7b1c5b2e65a7c051419c7f50bd712b1b
)

Brightcove说过要使用(
FLVURL&media\u delivery=http

我已经尝试了我所知道的每一种方法,在我的功能中加入媒体传递,但总是只得到rmtp或空白

你能帮我看一下我展示的少量代码吗。如果我需要展示更多,这不是问题。谢谢

function showMetaData(idx) {
    $("tr.select").removeClass("select");
    $("#tbData>tr:eq("+idx+")").addClass("select");

    var v = oCurrentVideoList[idx];

    //URL Metadata
    document.getElementById('divMeta.FLVURL').innerHTML = v.FLVURL;
这是我的名单

//For PlayList by ID

function buildMAinVideoList() {

//Wipe out the old results
$("#tbData").empty();

console.log(oCurrentMainVideoList);
oCurrentVideoList = oCurrentMainVideoList;
// Display video count
document.getElementById('divVideoCount').innerHTML = oCurrentMainVideoList.length + " videos";
document.getElementById('nameCol').innerHTML = "Video Name";
//document.getElementById('headTitle').innerHTML = title;
document.getElementById('search').value = "Search Videos";
document.getElementById('tdMeta').style.display  = "block";
document.getElementById('searchDiv').style.display  = "inline";
document.getElementById('checkToggle').style.display  = "inline";
$("span[name=buttonRow]").show();
$(":button[name=delFromPlstButton]").hide();


//For each retrieved video, add a row to the table
var modDate = new Date();
$.each(oCurrentMainVideoList, function(i,n){
    modDate.setTime(n.lastModifiedDate);
    $("#tbData").append(
        "<tr style=\"cursor:pointer;\" id=\""+(i)+"\"> \
        <td>\
            <input type=\"checkbox\" value=\""+(i)+"\" id=\""+(i)+"\" onclick=\"checkCheck()\">\
        </td><td>"
            +n.name +
        "</td><td>"
            +(modDate.getMonth()+1)+"/"+modDate.getDate()+"/"+modDate.getFullYear()+"\
        </td><td>"
            +n.id+
        "</td><td>"
            +((n.referenceId)?n.referenceId:'')+
        "</td></tr>"
    ).children("tr").bind('click', function(){
        showMetaData(this.id);
    })
});

//Zebra stripe the table
$("#tbData>tr:even").addClass("oddLine");

//And add a hover effect
$("#tbData>tr").hover(function(){
    $(this).addClass("hover");
}, function(){
    $(this).removeClass("hover");
});

//if there are videos, show the metadata window, else hide it
if(oCurrentMainVideoList.length > 1){showMetaData(0);}
else{closeBox("tdMeta");}
}
//用于按ID显示的播放列表
函数buildMAinVideoList(){
//抹去旧的结果
$(“#tbData”).empty();
console.log(oCurrentMainVideoList);
oCurrentVideoList=OcurrentMain视频列表;
//显示视频计数
document.getElementById('divVideoCount').innerHTML=oCurrentMainVideoList.length+“videos”;
document.getElementById('nameCol').innerHTML=“视频名称”;
//document.getElementById('headTitle')。innerHTML=title;
document.getElementById('search').value=“搜索视频”;
document.getElementById('tdMeta').style.display=“block”;
document.getElementById('searchDiv').style.display=“inline”;
document.getElementById('checkToggle').style.display=“inline”;
$(“span[name=buttonRow]”)show();
$(“:button[name=delFromPlstButton]”).hide();
//对于每个检索到的视频,向表中添加一行
var modDate=新日期();
$.each(ocurrentmain视频列表,函数(i,n){
modDate.setTime(n.lastModifiedDate);
$(“#tbData”)。追加(
" \
\
\
"
+n、 名字+
""
+(modDate.getMonth()+1)+“/”+modDate.getDate()+“/”+modDate.getFullYear()+”\
"
+n、 身份证+
""
+((n.referenceId)?n.referenceId:“”)+
""
).children(“tr”).bind('click',function(){
showmatadata(this.id);
})
});
//斑马在桌子上画条纹
$(“#tbData>tr:even”).addClass(“oddLine”);
//并添加悬停效果
$(“#tbData>tr”).hover(函数(){
$(此).addClass(“悬停”);
},函数(){
$(this.removeClass(“hover”);
});
//如果有视频,则显示元数据窗口,否则将其隐藏
如果(oCurrentMainVideoList.length>1){showMetaData(0);}
else{closeBox(“tdMeta”);}
}

如果查找HTTP路径,当对Brightcove的API调用正确时,您将看不到rtmp://URL

由于您正在获取rtmp URL,因此这将验证您正在使用具有URL访问权限的API令牌,这很好。这样的请求应该返回播放列表和http URL(插入您的令牌和播放列表ID)

{yourToken}&playlist\u id={yourtplaylist}&video\u fields=FLVURL&media\u delivery=http

此API测试工具可以帮助您构建查询,并显示预期结果:

我不知道你的代码会出什么问题,但如果你还没有尝试过,在浏览器中调试可以帮助你确认返回的API结果,而不必通过代码访问它。这有助于您根除用于访问值的代码的任何问题,而不是值本身的问题。这是一个关于Chrome中步骤调试的概述,如果您以前没有使用过:

感谢您的回复。我对这一切都不熟悉,并且已经一遍又一遍地查看({yourToken}&playlist\u id={yourtplaylist}&video\u fields=FLVURL&media\u delivery=http),这就是我遇到的问题。我想我不明白如何将(FLVURL&media_delivery=http)这一部分放在上面的代码中?我可能现在听起来真的很傻。上面的函数中没有media\u delivery=http部分。您使用什么来填充oCurrentVideoList?这就是它需要去的地方。如果您需要更多帮助,请显示代码的这一部分。您已经添加了my code以填充上面的my oCurrentVideoList。希望这对您有所帮助,谢谢。您添加的代码仅显示如何在页面上显示视频数据。你需要找到填充OcurrentMain视频列表的代码并修改实际的brightcove调用。好的,我知道了。我转到我的getPlaylist通话,添加了&media_delivery=http。