Stream.publish ogg
我正在尝试使用 javascript api 和 FB.ui 将 ogg 音频文件发布到流中, 但我不知道该怎么做。 这是我对 FB.ui 的调用:
FB.ui(
{
method: 'stream.publish',
message: '',
attachment: {
name: artist + ' - ' + song,
"media" : [{
"type":"mp3" ,
"src" : file,
"artist" : artist,
"title" : song
}]
}
},
function(response) {
}
);
将媒体类型设置为“mp3”时,文件无法播放,经过大量查看后,我无法找出要指定的另一种音频类型。 可以分享 ogg 文件吗? 提前致谢!
i'm trying to publish ogg audio files to the stream using javascript api and FB.ui,
but i can't figure out how to do it.
Here is my call to FB.ui :
FB.ui(
{
method: 'stream.publish',
message: '',
attachment: {
name: artist + ' - ' + song,
"media" : [{
"type":"mp3" ,
"src" : file,
"artist" : artist,
"title" : song
}]
}
},
function(response) {
}
);
With media type set as "mp3" the file just doesn't play, and after lot of looking around i can't figure out another audio type to specify.
Is it possible to share ogg files ?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很确定只支持 mp3 格式。我从未在文档中看到过 .ogg 。
I'm pretty sure only mp3 format is supported. I have never seen .ogg mentioned in the documentation.