soundmanager2

Start audio download half way through file.

别说谁变了你拦得住时间么 提交于 2019-12-08 04:32:03
问题 I was wondering if there is a way to start downloads of audio files from a start point depending on bytes or time. Right now on my website if I want to start a audio track at the half way point I have to wait for it to download past halfway and then skip to that part. Thanks! 回答1: Yes, the server has to support byte range requests and the client would have to make the appropriate request to get the bytes it needs. Most browsers support this already natively; Flash does not. If you're using

Why does Soundmanager 2 not fire onload event in firefox (23)?

不羁的心 提交于 2019-12-06 02:10:32
I am using Soundmanager 2 to play an mp3 audio stream. Somehow the onload event will not be fired in Firefox. In Safari and Chrom it worked well. When i set autoplay to true the stream will be played even in firefox, its just the onload events witch is not working. soundManager.setup({ url: '/static/soundmanager2/swf', flashVersion: 9, preferFlash: false, useHTML5Audio: true, onready: function() { var options = { id: 'channel-'+num, url: chan.url, stream: true, onload: function() { alert("loaded"); }, volume: 50, autoPlay:true }; this.SM = soundManager.createSound(options) } }); It's a problem

SoundManager2 on iPhone - Sound not playing on jQuery Load

核能气质少年 提交于 2019-12-02 09:29:44
I'm trying to use SoundManager2 as part of an iPhone Web App to play a sound after a form has been submitted using jQuery. The particular sound that is played is dependant on the result, and so the resulting page sets a variable that identifies which sound file to play. This all works without a hitch on the desktop, but when running on the iPhone, it fails. The Debugging Console on the iPhone shows it trying... 1124: SMSound.play(): "ValidSound" is loading - attempting to play... 1124: SMSound.play(): "ValidSound" is starting to play 1124: setPosition(0): delaying, sound not ready 1124: HTML5:

List tracks from Soundcloud and play it with Soundmanager 2 on a Wordpress blog

為{幸葍}努か 提交于 2019-12-02 02:59:23
first of all this is not a cry for a perfectly coded solution but it would be perfect if someone could at least give me some tips on how to solve this problem which is: I have this custom Wordpress site for a record label. On this site there is of course a section showing the releases of every of their artist's tracks. The client needs to upload all their tracks to Soundcloud. In the WP backend they can enter the name of the album, upload a cover image and add as many tracks as they want using MagicFields for Wordpress. After adding the album information and the track names they can enter the

Setup web audio api source node from soundcloud

自作多情 提交于 2019-11-28 20:38:32
问题 I would like to know if there is any way to create a source node ( https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaElementAudioSourceNode) from a soundcloud track. I'm ok with the web audio API, but new to the soundcloud sdk, as far I understand it relies on soundmanager2. So maybe there is some options from soundmanager2 available? Regards 回答1: You can request a track and then use stream_url property, that you can set as src for the audio element, to be used as

Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture

余生长醉 提交于 2019-11-27 20:06:20
I'm making a music playing page, where I use SoundManager 2 for AngularJs . I'm using a remote API to get a song URL to play. I enhanced an angular-soundmanager2 click event handler : element.bind('click', function () { if (angular.isFunction(scope.loadFunction)) { scope.loadFunction(scope.song, function () { $log.debug('adding song to playlist'); addToPlaylist(scope.song.playDetails); }) } else { $log.debug('adding song to playlist'); addToPlaylist(scope.song); } }); Where I added a part, that calls scope.loadFunction(song,callback) and after this function loads a song URL it calls a callback

Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture

感情迁移 提交于 2019-11-27 04:25:06
问题 I'm making a music playing page, where I use SoundManager 2 for AngularJs. I'm using a remote API to get a song URL to play. I enhanced an angular-soundmanager2 click event handler : element.bind('click', function () { if (angular.isFunction(scope.loadFunction)) { scope.loadFunction(scope.song, function () { $log.debug('adding song to playlist'); addToPlaylist(scope.song.playDetails); }) } else { $log.debug('adding song to playlist'); addToPlaylist(scope.song); } }); Where I added a part,