Flash player - the JW jeroen wijering player instead of xspf

Announcements and description of general changes in kPlaylist

Great directions

Postby Toy Sun » Thu Apr 10, 2008 3:54 pm

Hi,
These modifications are cool - I already added some different flashvars to my JW player. Very nice to see Aba's participation - and if I can get a vote in.... I still feel strongly (obviously!) that the JW player is far superior to the XSPF player, as perhaps you can start to see.

For one, look at how well supported the JW player is: constant updates, active forum, etc... while XSPF just kind of sits there, except for the Morrow updates.

So, perhaps one day JW Player will be an inbuilt choice in Kplaylist? The JW forum would love this!!

thanks,

John
Toy Sun
 
Posts: 19
Joined: Sun Dec 10, 2006 3:47 am

Postby zaqarov » Thu Apr 10, 2008 11:06 pm

I agree with John. If there's need for support for a builtin player (right now the xspf player), why not support a superior player? Right now it has the same functionality as xspf has (play audio, display info, album art, show playlist etc), plus it can playback video (as I tested this afternoon 8) )
Exhibit A:
Image

I don't think a lot of people that use kplaylist have tried serving video, because they don't know it's possible or because it's too complicated to setup/stream.
With JW player however, it's as easy as streaming mp3's.

just my 5 cents
zaqarov
zaqarov
 
Posts: 22
Joined: Thu Apr 03, 2008 7:20 pm

Re: Great directions

Postby aba » Thu Apr 10, 2008 11:50 pm

Toy Sun wrote:So, perhaps one day JW Player will be an inbuilt choice in Kplaylist? The JW forum would love this!!


I'm already sold, the support is on it's way.
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby zaqarov » Thu Apr 10, 2008 11:57 pm

Somehow, I just know the Viking in my screenshot convinced you :D
zaqarov
 
Posts: 22
Joined: Thu Apr 03, 2008 7:20 pm

Postby aba » Fri Apr 11, 2008 12:01 am

zaqarov wrote:Somehow, I just know the Viking in my screenshot convinced you :D


Well, I admit that the screenshot helped, but I studied harder the person on the left...
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby kirax2 » Fri Apr 11, 2008 9:41 pm

aba wrote:
zaqarov wrote:Somehow, I just know the Viking in my screenshot convinced you :D


Well, I admit that the screenshot helped, but I studied harder the person on the left...


*laughs*

That's awesome that you're going to include support. It's a great player!

I've been continuing to work on a way to enqueue new songs and playlists into an existing player. One of the people on the JW forum just gave me a really good link: http://willswonders.myip.org:8085/php/basic_popup.html
That page demonstrates how to enqueue songs into an existing player. I was going to try to integrate that functionality into kPlaylist. I was wondering if I should still try to do this, or if I should wait and see how you integrate the player first...?

Thank you!
-kirax2
kirax2
 
Posts: 47
Joined: Tue Apr 01, 2008 1:42 am

What is that???

Postby Toy Sun » Sat Apr 12, 2008 5:08 am

I don't understand what is going on with the pop up. Can you send a link to the JW player forum where that was posted?

thanks

John
Toy Sun
 
Posts: 19
Joined: Sun Dec 10, 2006 3:47 am

Postby kirax2 » Sat Apr 12, 2008 7:43 am

Oh sure, sorry. Here is the thread that references it.

http://www.jeroenwijering.com/?thread=9558

The important point is how to enable communication between the popped-up player window and the main window such that new songs can be later added to the playlist.

I have two different methods I'm looking at right now, but I want to wait and see how aba implements the changes to the main script before I mess with it any more. ^^;

-kirax2
P.S. Here's my thread: http://www.jeroenwijering.com/?thread=9995 You can see some of the stuff I've been experimenting with there, like how to parse an xml playlist into html.
kirax2
 
Posts: 47
Joined: Tue Apr 01, 2008 1:42 am

Postby aba » Sat Apr 12, 2008 2:16 pm

kirax2 wrote:I have two different methods I'm looking at right now, but I want to wait and see how aba implements the changes to the main script before I mess with it any more. ^^;


JW player support is included with build 488. Three things that
needs attention in the script:

Code: Select all
// JW: edit this to suit your setup
$cfg['jw_urls'] =
array(
   'swf'   => 'jw/mediaplayer.swf',
   'js'   => 'jw/swfobject.js'
);

// size of window for "external" player
$cfg['jw_window_x'] = 500;
$cfg['jw_window_y'] = 500;

// enable jw player? Make sure the URLs above works.
$cfg['jw_enable'] = false;


The URL's on the top can either be a direct URL, like http://blah or relative like the default.
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby aba » Sat Apr 12, 2008 2:22 pm

kirax2 wrote:I've been continuing to work on a way to enqueue new songs and playlists into an existing player. One of the people on the JW forum just gave me a really good link: http://willswonders.myip.org:8085/php/basic_popup.html
That page demonstrates how to enqueue songs into an existing player. I was going to try to integrate that functionality into kPlaylist. I was wondering if I should still try to do this, or if I should wait and see how you integrate the player first...?


Enqueue support is _not_ included in the first release. I am willing to look at solutions for this though. The example you showed me seems only to work when the main page is kept static. Once it's reloaded, the reference between the main page and the popup is lost. I was reading that his could be solved with json, but I am on deep water here with advanced JS.. If anyone else has examples of how this could work, let me know.
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby kirax2 » Sat Apr 12, 2008 6:21 pm

aba wrote:Enqueue support is _not_ included in the first release. I am willing to look at solutions for this though. The example you showed me seems only to work when the main page is kept static. Once it's reloaded, the reference between the main page and the popup is lost. I was reading that his could be solved with json, but I am on deep water here with advanced JS.. If anyone else has examples of how this could work, let me know.


I'm looking at the new release now. So far it seems to work perfectly. ^^ Thank you very much for including this great player!

It's odd that it doesn't work; I thought the whole point of that code was that it would continue to work even after refreshing the main page.

Later: Okay, I set up a test page on my own server based on this code. So far it seems to work after the page is refreshed...about half the time. I'm going to try to figure out why it's not working all the time. I'll let you know what I find and set up a sample page if I can figure it out. I really appreciate you being willing to include this if it's possible.

Thank you!
-kirax2
P.S. The sample page at http://willswonders.myip.org:8085/php/basic_popup.html seems to work fine for me. If I pull up the pop up and then refresh the main page, the buttons still add songs to the pop up in my tests. The only exception is the "Add video as second track" button, which only adds it to the player in the main window, but this is by design. I even closed the main page and opened it again, and it was still able to add songs to the pop up. I'm using Firefox 2.0.0.13. I'm still working on my own page; I'll post a link when I've got it working consistently.
kirax2
 
Posts: 47
Joined: Tue Apr 01, 2008 1:42 am

Postby kirax2 » Sun Apr 13, 2008 1:41 am

Okay, here's what I've got.

I started with this page that I mentioned earlier:
http://willswonders.myip.org:8085/php/basic_popup.html
I was able to reload and re-open the main page and still control the player from it.

I made a stripped-down version of the page here:
http://sdfo.org/play/Test/TestCombo.html
This can be slow to load the first time. If it doesn't load, try clicking one of the player pop up buttons again.

So far I can see two options for integrating an enqueue option into kPlaylist.

The first is to re-write the code that sends the playlist to the pop-up player page. Instead of parsing the files selected into an xml playlist, you could output them as "addPopupItem" and send them, one by one, to the pop-up window. This would use a similar approach to that in the pages referenced above.

The second is to send the xml playlist to the popped-up player page and have something in the popup page that parses the list and adds the files to the player one by one. This approach means a lot less modification to kPlaylist. However, I haven't figured out how to code it such that it can receive and parse more than one playlist. This page: http://sdfo.org/play/Test/Test.html (a stripped-down version of this page) shows how to parse an xml playlist into html. I was able to use code similar to this in build 485 to parse the xml playlist into an html playlist. If you're interested, I replaced my entire kpxspf class with an include file which can be found here: http://sdfo.org/play/Test/kpxspfInclude.zip (note that the xml entries had to be urlencoded in order for this to work). Using any pre-489 build, replace the entire kpxspf class with "include "kpsxpfInclude.php" to see the effect. I didn't get as far as changing this code to cycle through each entry in the xml playlist and add it to the player, but I'm certain it could be done. So it's really just a matter of figuring out how to send more than one xml list to the popped-up page and have the page able to parse it.

On the whole I favor the second approach. If I can just figure out how to code the html to receive other xml playlists and parse them without refreshing the page, I believe it can be made to work.

What do you think? Am I making any sense at all?
-kirax2
kirax2
 
Posts: 47
Joined: Tue Apr 01, 2008 1:42 am

Postby jmelhus » Sun Apr 13, 2008 11:19 am

Does anyone know if this player is streaming with HTTPS when kplaylist is set up with that?
jmelhus
 
Posts: 128
Joined: Sat Jan 01, 2005 1:10 pm

Postby zaqarov » Sun Apr 13, 2008 1:09 pm

Good work Kirax2,
here's my input:

On the refreshing issue
kirax2 wrote:http://willswonders.myip.org:8085/php/basic_popup.html

Server appears to be down atm. When I tried it yesterday, I was able to control the popup even when I reloaded/closed and reopened the main page, so that won't be a problem.

On the test page
kirax2 wrote:I made a stripped-down version of the page here:
http://sdfo.org/play/Test/TestCombo.html
This can be slow to load the first time. If it doesn't load, try clicking one of the player pop up buttons again.

Doesn't work for me on Safari 3.1 OSX, both Tiger and Leopard. The popup shows this:
Code: Select all
Get the Flash Plugin to see this gallery.
Current Title:
Titles:

I tested this on 2 computers with the latest flash player installed.


On the playlist concepts
kirax2 wrote:The first is to re-write the code that sends the playlist to the pop-up player page. Instead of parsing the files selected into an xml playlist, you could output them as "addPopupItem" and send them, one by one, to the pop-up window. This would use a similar approach to that in the pages referenced above.

I think a third option would also work, with even less modification: when the play button is clicked, add the entire xml playlist to the popup player using addItem.
No need to parse and add them as single songs. This way, you won't be able to insert a song in 2nd position, but it will be a lot faster, especially if a lot of songs are in the playlists (refer to jeroenwijering forums, serverside is way faster then clientside javascript)

zaqarov
zaqarov
 
Posts: 22
Joined: Thu Apr 03, 2008 7:20 pm

Postby zaqarov » Sun Apr 13, 2008 1:26 pm

jmelhus wrote:Does anyone know if this player is streaming with HTTPS when kplaylist is set up with that?


I don't have https set up, so I don't know, but I would assume it does.
I'll test as soon as I have physical access to my server and router, probably tonight. (need to open port 443 for https, can't ssh into router from wan)

zaqarov
zaqarov
 
Posts: 22
Joined: Thu Apr 03, 2008 7:20 pm

PreviousNext

Return to Announcement



cron