soundmanager2

best way to loop audio in the browser?

僤鯓⒐⒋嵵緔 提交于 2019-12-23 05:37:15
问题 I'm making a site that involves a lot of multi-tracked, audio loops. I'm wondering what the best way to implement these in (with javascript, etc)? should I use: -flash or some related flash library or -html5 audio or something else? it's very important that the audio loops be seamless what are some good libraries for this? In the past I've used soundmanager. The files will mostly be mp3s. 回答1: You can use the Web Audio API if you are content to sticking with WebKit browsers.. Here is some

Javascript SoundManager2 Problems

試著忘記壹切 提交于 2019-12-23 04:33:36
问题 I am trying to get this player to basically just start and stop when you click the track. I have failed miserably at this. Has anyone used this before and can give me a little help? I was hoping to get it to act similar to this http://www.schillmania.com/projects/soundmanager2/demo/page-player/basic.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title

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

守給你的承諾、 提交于 2019-12-20 05:25:13
问题 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

Get youtube file URL from video ID using API

和自甴很熟 提交于 2019-12-12 01:25:00
问题 I want to reproduce all youtube files embedded on a site using SoundManager2 audio player. How can I get access to Youtube file URL from video ID? Note: Soundcloud offers the possibility to get the direct streaming URL from the song URL. Here is a working example with Soundmanager2 and Angular. Now I want to do the same for Youtube. 回答1: One slightly hacky way - You could use Youtube's OEmbed API, however you need to provide a URL, so you'd need to add the ID onto the end. https://www.youtube

Execute soundmanager2 after ajax response

你说的曾经没有我的故事 提交于 2019-12-11 19:47:36
问题 I am trying to execute a script in an ajax response and can't seem to find any ways to do that. My scripts are loaded in the html - head tag, i also have a div with the id="browsemusic" where my ajax response goes to. my php file which generates the page: include('dbcon.php'); if(isset($_REQUEST['all']) && $_REQUEST['all'] != ''){ //===============================Button "ALL"==================================== unset($_REQUEST['kw']); unset($_REQUEST['genre']); $query = "select * from music";

How to use SoundManager2 to stream from SoundCloud, and make visualizations?

空扰寡人 提交于 2019-12-11 14:46:39
问题 SoundManager2 gets a data error and I cannot visualize anything? or I cannot access the song, permission denied? or It works when I first play it, but if I pause it and play again, I get a data error? 回答1: This has recently been fixed, as it was partly due to half of the needed files being there. Now it is fixed however, it still might not work off the bat. The obvious first step is you use the api to get the track stream_url, which looks like http://api.soundcloud.com/tracks/69322564/stream

How does soundmanager interpret a soundcloud stream?

余生长醉 提交于 2019-12-11 14:29:06
问题 using the "inline player" demo. <li><a href="http://api.soundcloud.com/tracks/42021012/stream.json?client_id=[myclientID]">play song</a></li> that will take me to a mp3 link, but since it has more parameters at the end, soundmanager doesn't load it as a mp3. 回答1: Try adding &filename=soundcloud.mp3 at the end. <li><a href="http://api.soundcloud.com/tracks/42021012/stream.json?client_id=[myclientID]&filename=soundcloud.mp3">play song</a></li> 回答2: Please, try to add type="audio/mpeg" in your

Soundcloud + SoundManager bug: reading a stream's eqData

不想你离开。 提交于 2019-12-11 08:47:39
问题 (This is mainly targeted toward Soundcloud employees because they use Stackoverflow for support) I've built an app that reads the eqData from a soundcloud stream using soundmanager2: http://music.freefarm.co.uk/ The eqdata works fine when starting a track, but when seeking or resuming a paused stream, the eqData is no longer updated. Either the array is updated with zeros, or hangs on the previous frame's data. The app was built almost 6 months and worked correctly, so I'd like to assume it

why doesn't Chrome stream a song using SoundCloud API V3

一曲冷凌霜 提交于 2019-12-11 02:08:08
问题 I am trying to stream a song using SoundCloud api, but apprantly it does not play it in Chrome. However it works on other browsers. SC.initialize({ client_id: '65243ec784b284f1d8a8f950312240fa', redirect_uri: 'http://example.com/callback' }); SC.stream('/tracks/293').then(function(player) { player.play(); }); JSFIDDLE Any idea to make it working in Chrome? 回答1: see my solution on the open Github issue (code pasted below for convenience). If you use SoundManager2, then call setup when the dom

Soundcloud: Cannot set property 'id' of undefined when trying to play the song

非 Y 不嫁゛ 提交于 2019-12-08 04:53:13
问题 The code below is compiled from CoffeeScript, hope it's still readable (function() { $(function() { var PLAYLIST_ID, SOUNDCLOUD_ID, tracks, tracks_ready, tracks_total; SOUNDCLOUD_ID = '6d5064768cc29c71e1f66691f435589a'; PLAYLIST_ID = '1768866'; SC.initialize({ client_id: SOUNDCLOUD_ID }); tracks = []; tracks_total = 0; tracks_ready = function() { return tracks[0].play(); }; return SC.get('/playlists/' + PLAYLIST_ID, function(pl) { var track; track = pl.tracks[0]; return SC.stream('/tracks/' +