我有一个音乐网络应用程序,可以响应移动应用程序。我无法在chrome或Safari浏览器中使用soundcloud streaming在iphone上工作。Soundcloud mp3无法通过Chrome流式传输iphone应用程序
歌曲负载(它加载的曲目名称),但它只是坐在那里,像这样:
我测试过这首歌确实是我的客户端ID的MP3({“http_mp3_128_url “:”?。?https://cf-media.sndcdn.com/u8ouac3FqckU.128.mp3)
什么可能导致这首歌不是在移动浏览器中播放
代码支持它,像这样:
<i class="fa fa-play falist" ng-click="player.play(show, $index)" ng-show="$index != trackPlayingIndex"></i>
<i class="fa fa-pause falist" ng-click="player.pause(show, $index)" ng-show="$index == trackPlayingIndex"></i></span>
控制器/服务:
SC.stream(track.properties.stream_url, function(sound){
if (playingSound) {
playingSound.stop();
}
sound.play({
whileplaying: function() {
player.duration = Math.floor(this.durationEstimate/1000);
player.position = Math.floor(this.position/1000);
player.progress = (this.position/this.durationEstimate) * 100;
$rootScope.$broadcast('statusChanged', true);
},
onfinish: function() {
$rootScope.$broadcast('finished');
}
});
它工作在网络浏览器精细,所以我必须为手机浏览器失去了一些东西。
非常感谢。我最终做了第一个工作。我希望Soundcloud不会生气,我非常想sc.stream,但这确实使它适用于移动设备。 '//为解决移动流式传输问题而努力 angular.forEach($ scope.filteredShows,function(value,index){0} {0} {0} –