jplayer

Streaming an MP3 on stdout to Jplayer using PHP

主宰稳场 提交于 2019-12-02 10:27:14
问题 I'm initializing jplayer with the following parameters: $jplayer.jPlayer('setMedia',{ mp3: data.audioMP3, oga: data.audioOGA }); Assume that data.autdioMP3 (and it's OGA counterpart) are paths to a php script, for example: 'http://myserver.local/playaudio.php?songID=99&format=mp3' Where I am struggling is with playaudio.php . I would like to read the MP3 file and stream it to jplayer without revealing the path to the audio (this is why I am not initializing jplayer with a path to the audio

jPlayer - Save user settings through page redirect's

馋奶兔 提交于 2019-12-02 10:06:12
I've been on this for a few days now. I can't get this to work. Hopefully someone can help me out and point me into the right direction. Using jPlayer ( http://jplayer.org ) I need to set cookies to the following below so when the user goes back to that webpage the player has those settings saved! 1) volume 2) play (auto play) 3) stop 4) song (track) Thank you! Tim <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="music/dist/skin/blue.monday/css/jplayer.blue.monday.min.css" rel=

jplayer how to display “buffering” text

谁都会走 提交于 2019-12-02 08:27:19
问题 i have a question about jplayer. this is my code: $("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { title: "Alin", artist: "song", mp3: "utl" }); }, solution: 'html, flash', cssSelectorAncestor: "#jp_container_1", swfPath: "/res/vendor/jPlayer/dist/jplayer/", supplied: "mp3", }); $("#jquery_jplayer_1").bind($.jPlayer.event.seeking, function(e){ if($(".jp-title span").length <= 0){ $(".jp-title").prepend('<span><i class="fa fa-refresh fa-spin"></i></span>'); }

Streaming an MP3 on stdout to Jplayer using PHP

℡╲_俬逩灬. 提交于 2019-12-02 07:11:15
I'm initializing jplayer with the following parameters: $jplayer.jPlayer('setMedia',{ mp3: data.audioMP3, oga: data.audioOGA }); Assume that data.autdioMP3 (and it's OGA counterpart) are paths to a php script, for example: 'http://myserver.local/playaudio.php?songID=99&format=mp3' Where I am struggling is with playaudio.php . I would like to read the MP3 file and stream it to jplayer without revealing the path to the audio (this is why I am not initializing jplayer with a path to the audio file). Something like (taken partially from the example for readfile at php docs): <?php $if ($validUser

Jplayer Ready function not triggered with flash solution

五迷三道 提交于 2019-12-02 02:38:37
问题 I am using Jplayer(2.2.0 & jquery 1.6) to play audio files in my application. The audio's has to use flash solution. But when the solution option is set to flash the ready function is not triggered and hence when i play the file there is error. When googgled for this issue the recommended solution was to check the path of .swf file. The path is correct. This was double checked through Newtwork tab(chrome developer tool). In the network tab the .swf file was downloaded without any error.

Jplayer Ready function not triggered with flash solution

自古美人都是妖i 提交于 2019-12-02 00:46:24
I am using Jplayer(2.2.0 & jquery 1.6) to play audio files in my application. The audio's has to use flash solution. But when the solution option is set to flash the ready function is not triggered and hence when i play the file there is error. When googgled for this issue the recommended solution was to check the path of .swf file. The path is correct. This was double checked through Newtwork tab(chrome developer tool). In the network tab the .swf file was downloaded without any error. <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function(){ jQuery("#jquery

jplayer multiple mp3 file links in one page

萝らか妹 提交于 2019-12-01 12:41:47
I use jplayer in my page and when clicked a link I want to play the clicked one. However every time test1.mp3 is played. How can I solve it? The code is below: the page is as follows if needed: http://www.dilyurdu.com/audio.htm function listen(mp3_index){ var mp3_file; mp3_file="test"+mp3_index+".mp3"; $("#jquery_jplayer_1").jPlayer({ ready: function(event) { $(this).jPlayer("setMedia", { mp3: mp3_file, }); }, swfPath: "http://www.jplayer.org/2.1.0/js", supplied: "mp3" }); } links are as follows: <div id="jquery_jplayer_1" class="jp-jplayer"></div> <a href="javascript:listen(1);" class="jp

How can I make Chrome use the range http header for seeking in audio?

只谈情不闲聊 提交于 2019-12-01 04:44:23
问题 It looks like Chrome downloads from the beginning of a file when scrubbing past the buffered/loaded duration, even though the 'seekable' amount claims to be 100%. I put up a demo page hardcoded to a 59 min audio file stored on s3, but otherwise identical to the jPlayer demo: http://beta.prx.org/jplayer_demos/demo-01-supplied-mp3-bm.htm I'm testing on a Mac (10.6.8): On Safari (5.1.4) , if you scrub past the loaded/buffered duration, it initiates another request using the range header, and

Dynamically populate playlist with JSON from PHP in jPlayer

早过忘川 提交于 2019-11-30 19:32:42
I have a PHP that create a JSON array of mp3 files in a directory. The JSON array output from PHP is : [{"title":"Kalimba","mp3":"/path/to/mydirectory/Kalimba.mp3"},{"title":"Maid with the Flaxen Hair","mp3":"/path/to/mydirectory/Maid with the Flaxen Hair.mp3"},{"title":"Sleep Away","mp3":"/path/to/mydirectory/Sleep Away.mp3"}] Fine, it seems to be what is expected by JQuery.jPlayer. Now in a basic jplayer.js file I have : $(document).ready(function(){ new jPlayerPlaylist({ jPlayer: "#jquery_jplayer_1", cssSelectorAncestor: "#jp_container_1" }, [ //I guess my JSON array should come here // but

jPlayer and Shoutcast Configuration

那年仲夏 提交于 2019-11-30 13:28:53
问题 I am trying to set up JPlayer plugin and Shoutcast. According to their website this is possible to do. How do I get jPlayer to play a SHOUTCast stream? You need to setMedia to the stream URL. For example, SHOUTcast server: http://mp3-vr-128.as34763.net/ MP3 stream URL: http://mp3-vr-128.as34763.net/;stream/1 I have tried to do this <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ $("#jquery_jplayer_1").jPlayer({ ready: function (event) { $(this).jPlayer("setMedia", {