jplayer

jplayer multiple mp3 file links in one page

孤人 提交于 2019-12-04 02:11:01
问题 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

Jplayer audio not working in Linux chrome

£可爱£侵袭症+ 提交于 2019-12-03 21:01:44
I am using jplayer.js to play the song in my site. In windows it was working perfectly in all browsers. But in Linux system, the songs doesn't play in chrome browser.Anyone help me to sort out this issue. I have configured the jplayer displayed in the below details.. swfPath : "js", supplied : "mp3", wmode : "window" 来源: https://stackoverflow.com/questions/16014011/jplayer-audio-not-working-in-linux-chrome

Streaming live audio with jPlayer

寵の児 提交于 2019-12-03 09:46:05
I am learning how to use jPlayer. I'd like to stream http://u10.sky.fm:80/sky_the80s audio using jPlayer. http://www.jplayer.org/1.2.0/demo-08-oggSupportFalse/ demo works on Chrome 9. I tried to simplify it with the following code snippets: $(document).ready(function() { $("#jpId").jPlayer( { ready: function () { $(this).jPlayer("setFile", "http://mp3-vr-128.as34763.net:80/;stream/1", "http://ogg2.as34763.net/vr160.ogg") .jPlayer("play"); }, swfPath: "client/js", volume: 60, oggSupport: true }); }); Unfortunately, the above does not work. I am sure I am missing something since I am new with

jPlayer - how to find out if it's playing

匿名 (未验证) 提交于 2019-12-03 08:42:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How can I find out if jPlayer is playing? I tried this alert($.jPlayer.event.playing); but it doesn't work. 回答1: Kyle's method works fine, here's a fiddle to demonstrate it in action: http://jsfiddle.net/75lb/95EPu/ However, ordinarily you wouldn't need to access jPlayer's internals like this, being an event-driven plugin.. would it be cleaner to respond to one of jPlayer's many events (at the appropriate moment)? http://www.jplayer.org/latest/developer-guide/#jPlayer-events 回答2: I've not worked with Jplayer specifically, but

JPlayer issue in IE9

北城以北 提交于 2019-12-03 08:33:01
i think there is a problem in jquery.jplayer.min.js file which one i am using. My jplayer is not working in only IE9. its working in all other browser. In this thread Mark P. notes that you must have MIME types set properly. Try putting this in your .htaccess: AddType video/mp4 mp4 AddType video/mp4 m4v More here: http://www.jplayer.org/latest/developer-guide/#jPlayer-server-response The current major release (2.0.0) does not support IE9 , but support is being added as of version 2.0.8 (github) . Put this line of code at the very beginning of your document. <!DOCTYPE html> It forces IE9 to

How play flv files using jPlayer?

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I googled and I found jPlayer for playing video content over the net. But jPlayer does not play .flv (flash video) files. I mentioned path correctly for swf player. it is inside the js folder and js folder is at the same lever where my example.html code file is. my code is as below example.html $("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { m4v: "media/royalrumble.mp4", flv: "media/royalrumble.flv", poster: "media/royalrumble.jpg" }); }, swfPath: "js", supplied: "m4v, flv" }); 回答1: The code below worked

jPlayer and Shoutcast Configuration

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 I do not get any output with my settings. Is anyone using JPlayer for a shoutcast Stream, or can anyone suggest a player that doesn't need php. 回答1: sweet vibes on this station! You're almost there, see this

jQuery jPlayer - How to stop all players before playing a new one?

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to stop all other instances of jPlayer before playing a new one when i click play. Thanks for you help. 回答1: SOLVED just assigned onclick function to the play trigger and the functions does: function stopall(){ $(".jplyrselectr").jPlayer("stop"); } 回答2: Give all of your players a class (I think default is class="jp-jplayer"), then include the following "play" event handler in your initialisation options: $("#jplayer1").jPlayer({ ready: function() { $(this).jPlayer("setMedia", { mp3: "mp3/track1.mp3" }); }, play: function() { $(".jp

How play flv files using jPlayer?

核能气质少年 提交于 2019-12-02 19:34:27
问题 I googled and I found jPlayer for playing video content over the net. But jPlayer does not play .flv (flash video) files. I mentioned path correctly for swf player. it is inside the js folder and js folder is at the same lever where my example.html code file is. my code is as below example.html $("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { m4v: "media/royalrumble.mp4", flv: "media/royalrumble.flv", poster: "media/royalrumble.jpg" }); }, swfPath: "js",

How play flv files using jPlayer?

一世执手 提交于 2019-12-02 10:45:39
I googled and I found jPlayer for playing video content over the net. But jPlayer does not play .flv (flash video) files. I mentioned path correctly for swf player. it is inside the js folder and js folder is at the same lever where my example.html code file is. my code is as below example.html $("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { m4v: "media/royalrumble.mp4", flv: "media/royalrumble.flv", poster: "media/royalrumble.jpg" }); }, swfPath: "js", supplied: "m4v, flv" }); The code below worked for me $("#jquery_jplayer_1").jPlayer({ ready: function ()