Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_httpcontrol (Read 937966 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_httpcontrol

Reply #575
oblikoamorale: Can you comment on my problem when changing playlists and my inability to select tracks to be played?
Can't wait for a HD-AAC encoder :P

foo_httpcontrol

Reply #576
please be more specific. is there a problem with the component itself?
if you're referring to lxofith template, it was designed for iphone only, so click on playlist item would select it, and "double tap" (or whatever they call this movement) on playlist item starts playback. I don't see a way to reproduce double tap on desktop browser, so you have to make fixes to the template to get rid of this.

foo_httpcontrol

Reply #577
nomad83: stock template is written using dead simple synchronious document model, so you can't really get away from refreshing. maybe you can try an asynchronious template which doesn't reload the whole page, such as lxofith work, or ajquery.

foo_httpcontrol

Reply #578
Ok.Thanks.

I will try that. Only prob is ajquery and Ixofith doesn't work on my PSP :/

The replacement buttons is done, with my owns buttons. The only very hard things for me is javascript but it's ok, I like to learn.

Thanks for your support.

Best regards.

PS: Ok i think I find what I need, it's AJAX right ? My brain is going to explode. I think I must learn all javascript basics before I can really do something cooL

foo_httpcontrol

Reply #579
Men, I'm really off. I think I understand the concept of the method, but I can"t do this work.

If Ixofith or someone can explain me how I can send "Play" command from my browser to my server with AJAX commands.

I hope my PSP(Netfront) browser can handle AJAX commands. I just want to send "play" command without page refresh.

Thanks.


foo_httpcontrol

Reply #580
While my own request to add single-click play support for non-iPhones may indeed be laughable, the assumption that I have the know-how to do this myself is even more hilarious. Please someone help me and nomad83 out. If it's as easy as you say, it should only take a second.

I peaked through the iphonenav.js file, but I can't make heads or tails of it. I searched for "tap" and "play" and only found a single instance of the word play, none for tap. So, without noob-level code commenting, I have no hope to do anything except break it.

Besides my non-iPhone bias, I think we've reached a critical mass of people who, even owning iPhones, are confused by the single-click behavior of selecting multiple tracks to remove from a playlist. This, to me, is just not something I would want to do 99.9% of the time I am controlling foobar from my phone. I just want to play music, not edit playlists. For that, using a computer will always be much faster and convenient.

And to lxofith, I applaud your amazing work and that of your predecessors. I don't expect anything from you or anyone else, I'm just asking for help. You had a reason to work on this in the first place. I assume that improving it would be favored by you and everyone using it.

foo_httpcontrol

Reply #581
Hi swiharta.

Just wait for a moment, i'm sure oblikoamorale will help us, but he's not forced to do that. He made this masterpiece plugin, this is already too much.

I ask help on other forums in my own language too, cause Obli and others members who help us have a life out of forums.

Just be patient and curious.

I work on that since one week now, I try everything with my friend google. Some failures, some wins but in fact the failures give me more than wins cause i'm learn more things and level up my skills.^^

Thanks for your message, I'm fell less alone now.

Best regards.

 

foo_httpcontrol

Reply #582
nomad83: ok, here is a simple example of sending an asynchronious commands: http://pastebin.com/f5c4c3ff8 as you see, nothing there is complicated.

swiharta: it seems 'gesture' is a keyword you should've searched for. here is a 'fixed' version of lixofith template for you: iphonenav.js

foo_httpcontrol

Reply #583
Ok, thanks a lot obli.

My prob now is my PSP borwser seems to doens't support AJAX or Jquery commands.

On my PC all working good, perfect. On the PSP browser, I see the buttons, I press them but nothing happen.

I'm really out of luck.

I search for another solution but it's hard for me. I spend my day to search but no chance. I want to load an image with buttons on it and when I press on the aera button only command's send, without any refresh. Like the image hide the refresh. Or redirected the button to another page with the command on it.

You think it's possible ? Or if you have another solution to get the AJAX working.

Thanks for your help.

Best regards.


foo_httpcontrol

Reply #585
Ok, no prob, you help me enough I think.

I take a look on that. It's exactly what I want to do. Thanks  !

I maybe try to take a look on php for bypass this prob.

Keep good work, I hope you do some greats plugins again for us.

Thanks a lot, you have turn on a flamme in me, i've a little project to work on, it's all.^^

Best regards from France.

foo_httpcontrol

Reply #586
Hi.

Sorry for distrubing again, but i'm too tired and I have tried all solutions without any goals.

When I found a solution, I don't know how to use it, it's frustrated!

Here is a possible solution, but I have no idea how include on ajquery for example, or on my project:

Lojax

And Here's the code parts of obli that I need :

HTML:
Code: [Select]
<body onload="mouse_capture_init(); fit();" onresize="fit();">

<form action="/" method="get" name="cmd_form" target="_self" class="frm">

<input name="PlayOrPause" title="Pause/resume playback" type="image" src="pause.png" width="50"; height="50"; onclick="pc(this.name);">
<input name="cmd" type="hidden" value=""><input name="param1" type="hidden" value="">
<input name="cmd" type="hidden" value=""><input name="param1" type="hidden" value="">


java script:
Code: [Select]
function pc(c, p) {
   var com = c || ''; var par = p || '';
   with (document.cmd_form)
   {
      cmd.value = com;
      param1.value = par;
      submit();
   }
}


It's just little parts wich I understand. If someone can add the lojax script for making work with the commands above, that's great.

I think I stop searching after that, my head is going to explode, I really hope someone can help me with that.

Thanks in advance.

Best regards.

foo_httpcontrol

Reply #587
nomad83:  lojax requires specific server side support and won't work properly with the component. however, I hacked lojax to be able at least to receive commands. here is the example, make sure to download both files: sending commands with lojax
I cannot help you any further. good luck.

foo_httpcontrol

Reply #588
nomad83: ok, here is a simple example of sending an asynchronious commands: http://pastebin.com/f5c4c3ff8 as you see, nothing there is complicated.

swiharta: it seems 'gesture' is a keyword you should've searched for. here is a 'fixed' version of lixofith template for you: iphonenav.js


Oblikoamorale, your 60 wasted seconds of time have given me and probably some others countless hours of enjoyment on our non-iPhone mobile devices. Big ups brother, I really appreciate it.

Wish I could help you nomad83, so the PSP doesn't work too well with the template, that's too bad. Get a smart phone is my only suggestion.

foo_httpcontrol

Reply #589
Hey guys!

I'm happy !

A dev on the PSPGen forum help me and give me a solution wich working good.

First we must use the hacked radio player wich working with official and CFW firmware. Named ifreeRadio 1.8. Very easy to use, just put the files to the root of memory stick and launch this from the radio icon.

Then with this  version you have access to amore advanced web browser wich have some interesting javascript commands:

PSP Radio commands

Now just browse to your foo_httpcontrol template >http://myip:8888/ .

On your template now, just for testing the command, create thats lines:

Code: [Select]
<object name="radio" type="application/x-psp-extplugin"></object>


and

Code: [Select]
<input type="button" value="test" onclick="radio.sysRadioPrepareForHttpGet('http://monip/?cmd=PlayOrPause&param1=')"/>


This is just for testing the play/pause button. For the other commands see that:

Code: [Select]
Start(track) //track num must be fetched from html (index starts at zero)
QueueItems(track)
DequeueItems(track)
MoveCursor(track)
Del(track)
Seek(percent_int)
Stop()
PlayOrPause()
Start()
StartPrevious()
StartNext()
StartRandom()
PlaybackOrder(0) - Default
PlaybackOrder(1) - Repeat (playlist)
PlaybackOrder(2) - Repeat (track)
PlaybackOrder(3) - Random
PlaybackOrder(4) - Shuffle (tracks)
PlaybackOrder(5) - Shuffle (albums)
PlaybackOrder(6) - Shuffle (folders)
Volume(percent_int)
SAC(0) - don't stop after current track
SAC(1) - stop after current track
SAQ(0) - don't stop after current queue
SAQ(1) - stop after current queue
QueueAlbum()
QueueRandomItems(num_of_items)
EmptyPlaylist()
SwitchPlaylist(num_by_list) //list must be fetched from html, index starts at zero, does not play new list, just changes focus to that list
Browse()
SearchMediaLibrary("search string") //string must be in http req style
QueryRetrace()
QueryAdvance(list_index) //list must be fetched from html
P(page num) - if the playlist is longer than one page this moves to a specific page.


Just replace the PlayOrPause with others commands and create your own template !

I hope it's ok that I talk about that on your post Obli ? Thanks you again for your support. I take a look to your lojax script.

But for the moment, we can access to our own template with this simple line on the radio web browser on PSP.

I will make a template, maybe I can put him here for PSP users.

Thanks again.

Best regards.

EDIT 2: your commands working too obli !!! Nice, very nice, I think I will use yours cause with hte others I must laucnh the hacked radio then launch another browser... But the Radio Browser comand seems to be little bit more fast than the lojax ones.

I'm really sorry, but I can't make other commands like stop or start working. I must add lines or I maybe don't understand something ? Really sorry.

For people users using the psp internet browser, I suggest you the Netfront Internet Browser HighMemoryMod from Team P86.

Thanks again Oblikoamorale, you're the best.

foo_httpcontrol

Reply #590
Sorry for double post, It's OK Oblikoamorale, I find myself how to get it work with your lojax. I use var= Play, var=Pause, etc...

Thanks again.

foo_httpcontrol

Reply #591
Only one little thing, if you can explain me, for the volume control wich is a little bit more hard.

I try to send the command ('Volume, 10') but doesn't work or this mute the sound. I hoep I can make a volume slider but too hard for me.

Thanks for your support, sorry for being annoying.

Best regards.

foo_httpcontrol

Reply #592
command requests requiring one or more parameters won't work on this modified lojax version. only one argument - cmd - is sent to the component.

foo_httpcontrol

Reply #593
Ok. Thanks you a last time.

I think I will use the PSP Radio version, I can modify the code easily and can have some help on PSP dev forum.

Thanks again for your amazing plugin.

Best regards.

foo_httpcontrol

Reply #594
I can mod lojax further to accept all parameters, later. it doesn't look too complicated. but that's the last thing I'm able to do.

foo_httpcontrol

Reply #595
No, it's good like that, doesn't matter for that. You waste enough time for help me

I'm able to work with the PSPradio fonctions, they are very similar to the rest of your work.

Thanks you.


foo_httpcontrol

Reply #596
Cool plug! 

Can I playing my library from opera mini? And how adjust it?

Thanks in advance.

foo_httpcontrol

Reply #597
nomad83: I've updated lojax lib to transmit command parameters anyway, in case someone else needs it. lojax lib and example.

augomol: I don't know about opera mini, probably not without creating corresponding template.

foo_httpcontrol

Reply #598
When I try connecting to 127.0.0.1:8888, Opera Mini show this message: Don't know how to handle request in ext:/

But I don't know how can I get control my foobar from another computer 

foo_httpcontrol

Reply #599
nomad83: I've updated lojax lib to transmit command parameters anyway, in case someone else needs it. lojax lib and example.

augomol: I don't know about opera mini, probably not without creating corresponding template.


Thanks a lot. I will keep this in a corner in case off.

I'm doing good with my actual work with PsP radio. But I've one problem again...

Your updated lojax will work with the seek bar and name display ?

Cause actually I must refresh for getting name of new title playing, so it's same problem what I must all this things. It's the very last thing I ask to you, I'm too tired.^^

Thanks.