jplayer

Dynamically populate playlist with JSON from PHP in jPlayer

♀尐吖头ヾ 提交于 2019-11-30 03:34:16
问题 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

HTML5 audio duration issue

半世苍凉 提交于 2019-11-29 18:49:23
I am using jplayer to play audio and video files in Ipad, But the issue is if i change video or audio url, sometimes i get duration NaN. Please help me. seteh The medata is available after onloadedmetadata event has fired. (c) https://stackoverflow.com/a/7275714/492641 Hope it helps. Check your server has Range requests enabled. From this page on the Jplayer site: Your server must enable Range requests. This is easy to check for by seeing if your server's response includes the Accept-Ranges in its header. Most HTML5 browsers enable seeking to new file positions during a download, so the server

JQuery jPlayer autoplay not working on ipad how to show controls

眉间皱痕 提交于 2019-11-29 08:46:24
I am using jPlayer to play video on webpage to make it compatible for desktop browsers and iPad. I am using the following code $("#jquery_videoPlayer").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { m4v: _mp4url, ogv: _oggurl, webmv: _webmurl, flv:_url }).jPlayer("play"); }, swfPath: "../js", supplied: "m4v, webmv, ogv, flv", preload:"auto", loop:true, solution: "html, flash", size: { width: "256px", height: "240px" } }); It works fine on all browsers however since iPad do not allow autoplay the video I need to show play button on the video (HTML5). I could not find any option

Changing songs on jPlayer by clicking a link, hosted on Amazon S3

大城市里の小女人 提交于 2019-11-29 04:29:17
Hello all and thanks for any help in advance. I have a ruby on rails application in which I am attempting to stream audio through jPlayer, which is hosted on S3. So far I have no problem uploading files or using the browsers built in player to play audio files, or even getting jPlayer to initialize with a song that is on S3. The issue comes when I get into changing songs. I initialize jPlayer like this: $('a.html5').click(function() { var url = $(this).attr('href'); $("#jquery_jplayer_1").jPlayer({ ready: function (event) { $(this).jPlayer("setMedia", { mp3: url }); }, swfPath: "javascripts",

HTML5 audio duration issue

本秂侑毒 提交于 2019-11-28 12:55:52
问题 I am using jplayer to play audio and video files in Ipad, But the issue is if i change video or audio url, sometimes i get duration NaN. Please help me. 回答1: The medata is available after onloadedmetadata event has fired. (c) https://stackoverflow.com/a/7275714/492641 Hope it helps. 回答2: Check your server has Range requests enabled. From this page on the Jplayer site: Your server must enable Range requests. This is easy to check for by seeing if your server's response includes the Accept

Protect audio file from being downloaded while still being playable through JQuery JPlayer

馋奶兔 提交于 2019-11-28 11:34:40
I have audio files saved in a folder on my server. They are called by JQuery JPlayer to be played. However if a person looks at the source of the page, they can find the location of the file and simply download it. I want to protect the files from being downloadable, but still allow JPlayer to play them. Is this possible? I have tried denying the folder with .htaccess as well as password protecting the folder, but this prevents JPlayer from being able to play the files. It's impossible to stop a savvy user stealing your media. But if you like, you could use oAuth to govern access to the media

JQuery jPlayer autoplay not working on ipad how to show controls

眉间皱痕 提交于 2019-11-28 01:56:39
问题 I am using jPlayer to play video on webpage to make it compatible for desktop browsers and iPad. I am using the following code $("#jquery_videoPlayer").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { m4v: _mp4url, ogv: _oggurl, webmv: _webmurl, flv:_url }).jPlayer("play"); }, swfPath: "../js", supplied: "m4v, webmv, ogv, flv", preload:"auto", loop:true, solution: "html, flash", size: { width: "256px", height: "240px" } }); It works fine on all browsers however since iPad do not

Changing songs on jPlayer by clicking a link, hosted on Amazon S3

亡梦爱人 提交于 2019-11-27 18:38:32
问题 Hello all and thanks for any help in advance. I have a ruby on rails application in which I am attempting to stream audio through jPlayer, which is hosted on S3. So far I have no problem uploading files or using the browsers built in player to play audio files, or even getting jPlayer to initialize with a song that is on S3. The issue comes when I get into changing songs. I initialize jPlayer like this: $('a.html5').click(function() { var url = $(this).attr('href'); $("#jquery_jplayer_1")