inherit
169267
0
Oct 19, 2024 4:26:56 GMT -8
Mike
Praise God Almighty!
1,533
July 2011
riccetts
|
Post by Mike on May 12, 2015 3:52:48 GMT -8
I want to be able create a playlist. can I use a For Loop to create it? I'm trying to create a audio plugin. Anybody? Thanks
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on May 14, 2015 0:17:58 GMT -8
I want to be able create a playlist. can I use a For Loop to create it? I'm trying to create a audio plugin. Anybody? Thanks I guess the real question is if your are creating a playlist file. Or the text in the file? Cause you can create text in a for loop. But not really as an actual file. You can't create files in javascript. Can't you make your "own" playlist format? That uses the built in html5 music tags?
|
|
inherit
169267
0
Oct 19, 2024 4:26:56 GMT -8
Mike
Praise God Almighty!
1,533
July 2011
riccetts
|
Post by Mike on May 14, 2015 3:39:55 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓I can but It seems that the players don't recognize the address or m3u file. But what I was thinking is allowing the the staff member to enter mp3 files in the ui to create a list of songs to play. Like a DJ of sorts. Would that be possible? That's why I was thinking of the for loop.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on May 14, 2015 5:51:33 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓I can but It seems that the players don't recognize the address or m3u file. But what I was thinking is allowing the the staff member to enter mp3 files in the ui to create a list of songs to play. Like a DJ of sorts. Would that be possible? That's why I was thinking of the for loop. Yeah m3u files are not the way to go. Allow the staff to enter mp3 file links in the ui. Then they can arrange them with the autoform. And that would make a playlist. Of course you are going to be using ONLY links from the user and then loop through the autoform in a for loop turning those links into music that is played via html5 audio tags
|
|
inherit
169267
0
Oct 19, 2024 4:26:56 GMT -8
Mike
Praise God Almighty!
1,533
July 2011
riccetts
|
Post by Mike on May 14, 2015 6:08:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ BrianYes that's what I mean. Something like this: $(document).ready(function(){ var player_1='<div id="raker">'; player_1+='<audio controls>'; var lead=pb.plugin.get('audio_caddy').settings.playlist; for(i=0;i<lead.length;i++) { var url=lead.url; player_1+='<source src="'+url+'" type="audio/mp3">'; } player_1+='</audio>'; player_1+='</div>'; $('#raker').html(player_1); });
However the loop does not let it go to the next song How can I make it do that? Will that work with an autoform?
|
|
inherit
216224
0
Aug 1, 2024 1:18:46 GMT -8
Quozzo
408
November 2014
quozzo
|
Post by Quozzo on May 14, 2015 9:39:48 GMT -8
The problem isn't the JavaScript, it's the HTML. What you want to do is look for a way to create a playlist. Just listing <source> tags won't do that. If you can create it without JS at all and just use the HTML, then once you've got that you can wrap it/make it/create it with the JS. Maybe this would be useful jonhall.info/how_to/create_a_playlist_for_html5_audio
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on May 14, 2015 10:08:00 GMT -8
The problem isn't the JavaScript, it's the HTML. What you want to do is look for a way to create a playlist. Just listing <source> tags won't do that. If you can create it without JS at all and just use the HTML, then once you've got that you can wrap it/make it/create it with the JS. Maybe this would be useful jonhall.info/how_to/create_a_playlist_for_html5_audioGreat Link Quozzo. Check Out that Live Example Mike. And make it an autoform in your manage plugin section so that a user can add as many songs as they would like. And you should probably get it working in html without any for loops so that you know it works. Then add a for loop at the end.
|
|
inherit
169267
0
Oct 19, 2024 4:26:56 GMT -8
Mike
Praise God Almighty!
1,533
July 2011
riccetts
|
Post by Mike on May 14, 2015 15:11:34 GMT -8
|
|