Working on embeded flash player

Where are we heading with kPlaylist?

Postby blue » Sun Jun 17, 2007 10:18 pm

HAHAHA FIXED!!!

i don't know why i decided to do this.

but i decided to manipulate the location of the "wimpygen" include.

i figured since it wouldnt work empty, that somethign was disagreeing with it.

So.

i move it down to this section, AND IT WORKS AS IS!

Code: Select all
if (authset() || $cfg['disablelogin'])
{   
   if (db_verify_stream(authset(false), $phpenv['remote'], false))
   {
      if (REQUIRE_HTTPS && !$phpenv['https']) klogon();

      if (authset()) $u_cookieid = authset(false); else $u_cookieid = null;
      
      $deflanguage = db_guinfo('lang');



include('wimpygen.php');



      if (isset($_POST['sel_playlist'])) user_saveoption('defplaylist', vernum($_POST['sel_playlist']));

      if (isset($_POST['viewmode'])) user_saveoption('detailview', verchar($_POST['viewmode']));

      if (isset($_POST['stationid'])) user_saveoption('defstationid', vernum($_POST['stationid']));

      if (isset($_POST['sel_shplaylist']))
      {
         user_saveoption('defshplaylist', vernum($_POST['sel_shplaylist']));
         $_POST['sel_playlist'] = $_POST['sel_shplaylist'];
      }

      if (isset($_GET['streamrss']))
      {
         $ca = new caction();
         $ca->updatelist();
         $ca->createrss(true);
         die();
      } else
blue
 
Posts: 32
Joined: Fri Jun 08, 2007 4:20 am

Postby blue » Sun Jun 17, 2007 10:19 pm

it makes me laugh that it was this simple :P
im glad i found it, and hopefully you guys can sort out why its doing what its doing.

but until then, it works (And ALSO shows up in the XSPF player!!)
blue
 
Posts: 32
Joined: Fri Jun 08, 2007 4:20 am

Postby DanPE » Sun Jun 17, 2007 11:41 pm

This is a pretty exciting development, since it allows you to share your music without the whole world without the actual files being downloaded. This mod is perfect for me because I run a record label and am a little cautious about how much music we actually give away.

This mod alone is pretty useful, but I would love to see this go to the next logical step - being a stand alone player that could be embedded into a web page and remotely access user playlists. This would be extremely useful for someone like myself who would be able to provided streaming content to the bands we work with. Most bands gravitate towards profle sites like MySpace that only allows you to host 4 songs at a time - I would like to be able to provide for better.

Jsut thought I'd throw my 2 cents out there...
DanPE
 
Posts: 1
Joined: Sun Jun 17, 2007 11:24 pm

Postby Krzyk » Sun Jul 15, 2007 7:08 pm

Hmm.. I don't know how can I "install" this :P
can anyone help? I'm new in this project and it would be great if someone help me :)

EDIT:
stupid :P
i have done it :) i'm lovin it :D
Krzyk
 
Posts: 3
Joined: Sun Jul 15, 2007 7:03 pm

Postby mikirby » Sun Jul 22, 2007 9:29 pm

This mod seems to have completely disbled my ability to use kplaylist. Now, no matter what I do, the left hand side of the page loads (the logo image loads too, because I made the change per Blue's post above) and then my browsers sits and spins its wheels until the server drops the connection and the right hand side of the page never loads. :(

Commenting out the //include('kplaylist.kpwimpy.php'); seems to be the only way I can get kPlaylist working again. Any suggestions?

Thanks!

PS I downloaded the kwimpy.php file and created a player.php file (since I didn't seem to have one) and put the code given in this thread into both. Was this right?
mikirby
 
Posts: 3
Joined: Sat Jul 21, 2007 11:51 pm

Postby ipn1nj4 » Wed Jul 25, 2007 2:33 pm

Any chance this will be merged in the next devel release?
ipn1nj4
 
Posts: 28
Joined: Fri Mar 04, 2005 6:12 pm

Postby ksri99 » Thu Jul 26, 2007 8:16 pm

Yes, it would be really good if this can be integrated as default kP feature in coming Dev releases.
ksri99
 
Posts: 15
Joined: Thu May 03, 2007 6:34 am

Postby mikirby » Thu Jul 26, 2007 8:48 pm

mikirby wrote:This mod seems to have completely disbled my ability to use kplaylist. Now, no matter what I do, the left hand side of the page loads (the logo image loads too, because I made the change per Blue's post above) and then my browsers sits and spins its wheels until the server drops the connection and the right hand side of the page never loads.


OK, today the page is loading, but when I try to play an mp3, all I get is a page that reads


Could somebody take 10 minutes and write up a step-by-step guide for newbies to get this working? I've got a standard install of kplayer, are these changes really too complicated to be explained simply? I gather from the other comments on this thread it's not that hard to get working, and I have plenty of programming and computer experience, just not PHP. Something that includes whatever details have been glossed over in this thread that have allowed other people to get this working but not me would be a really big, big favor. A million thanks in advance.
mikirby
 
Posts: 3
Joined: Sat Jul 21, 2007 11:51 pm

Postby pompaunpo » Mon Sep 24, 2007 8:34 pm

this is flashpl/pl_admin.xspf
that it has generated:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
   <trackList>
   </trackList>
</playlist>


and this is HTML source player.php file

Code: Select all
 <html><head></head><body>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="xspf_player" align="middle" height="750" width="550">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="http://localhost/musica/xspf_player.swf?playlist_url=http://localhost/musica/flashpl/pl_admin.xspf&autoplay=true">
<param name="quality" value="high">
<param name="bgcolor" value="#e6e6e6">
<embed src="http://localhost/musica/xspf_player.swf?playlist_url=http://localhost/musica/flashpl/pl_admin.xspf&autoplay=true" quality="high" bgcolor="#e6e6e6" name="xspf_player" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="center" height="750" width="550">
</object></body></html>


pl_admin.xspf not have <track> tab
why?
pompaunpo
 
Posts: 1
Joined: Mon Sep 24, 2007 6:53 pm

Postby starz » Wed Oct 24, 2007 3:00 pm

mikirby wrote:Could somebody take 10 minutes and write up a step-by-step guide for newbies to get this working? I've got a standard install of kplayer, are these changes really too complicated to be explained simply? I gather from the other comments on this thread it's not that hard to get working, and I have plenty of programming and computer experience, just not PHP. Something that includes whatever details have been glossed over in this thread that have allowed other people to get this working but not me would be a really big, big favor. A million thanks in advance.


ya i would like a step-by-step guide too. i this sounds really cool, but i dont know where to start because this thread is so old.
starz
 
Posts: 10
Joined: Sat Jan 27, 2007 2:44 pm

Postby aba » Sat Oct 27, 2007 4:03 am

starz wrote:
mikirby wrote:Could somebody take 10 minutes and write up a step-by-step guide for newbies to get this working? I've got a standard install of kplayer, are these changes really too complicated to be explained simply? I gather from the other comments on this thread it's not that hard to get working, and I have plenty of programming and computer experience, just not PHP. Something that includes whatever details have been glossed over in this thread that have allowed other people to get this working but not me would be a really big, big favor. A million thanks in advance.


ya i would like a step-by-step guide too. i this sounds really cool, but i dont know where to start because this thread is so old.


I am very close to releasing a development version with inbuilt support for the xspf music player.

Update, its' been released, please read the following post:

http://www.kplaylist.net/forum/viewtopic.php?t=2069
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Previous

Return to Development



cron