Notices


Reply
Thread Tools
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#201
hmm, looking at the code now. i made it to be accepting load requests by specifying numbers in current playlist. maybe i'll just add code to allow it to parse fullpath requests. but that's when i get up, too sleepy now
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 4 Users Say Thank You to KotCzarny For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#202
oscp (0.9.7-43) stable; urgency=low

* reup, fixed changelog
* added LOAD2 remote command (accepts full path as a param)
* changed /tmp/oscp-user/oscp.slave interface
--
hint1: oscp.slave accepts any remote.txt command. fe.: echo "PAUSE" >> /tmp/oscp-user/oscp.slave
hint2: added oscp-command.py which is an example of minimal remote interface

word of notice: this release is a work in progress. both interfaces are preliminary work to allow using oscp as a system player replacement
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 7 Users Say Thank You to KotCzarny For This Useful Post:
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#203
@KotCzarny
while talking about full paths...
http://talk.maemo.org/showpost.php?p...&postcount=161

have you already added some kind of network acl or is it still in your TODO list?
I like your oscp player but the closed sources and the lack of network acl make me feel a litlle bit worried...
 

The Following User Says Thank You to xes For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#204
@xes: still in todo, most likely gonna add it tomorrow (just returned from vacations). for now you can use /tmp/ interface for commands if you are worried about network
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 2 Users Say Thank You to KotCzarny For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#205
oscp (0.9.7-44) stable; urgency=low

* added netacl config option (in config file or via -N option)
by default (with remoted enabled and empty config) all remote ips can connect, to restrict:
run core at least once with (example): -N "127.0.0.1 192.168.1.0/24"
or put space separated list of ips/masks in netacl in config file

@proprog: were you successful hacking using oscp and oscp-command.py using LOAD2 or /tmp/ interface?
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny

Last edited by KotCzarny; 2015-08-24 at 13:49.
 

The Following 5 Users Say Thank You to KotCzarny For This Useful Post:
proprog's Avatar
Posts: 41 | Thanked: 159 times | Joined on Jul 2012
#206
Originally Posted by KotCzarny View Post
oscp (0.9.7-44) stable; urgency=low

* added netacl config option (in config file or via -N option)
by default (with remoted enabled and empty config) all remote ips can connect, to restrict:
run core at least once with (example): -N "127.0.0.1 192.168.1.0/24"
or put space separated list of ips/masks in netacl in config file

@proprog: were you successful hacking using oscp and oscp-command.py using LOAD2 or /tmp/ interface?
Let's just say that I have a lot to leárn.

I can get oscp to play downloaded songs via oscp-command, and that works ok for some of my use cases. But it looks like the current directory is not changed which is a bit confusing when the song is finished. And I cannot get the remote to work. If the remote is open it disconnects and wont connect again. And it doesn't start if not open.

Had a look at the gPodder source and it uses osso to call mime_open to have applications registered for that mime open the file. I guess that is what needed in oscp for it to replace omp for all my use cases.

Altogether my current setup is maybe not good enough to ditch omp yet. But I still use oscp daily and it's part of the reason I'm back using my n900.

Please let me know if I'm missing something. I'm happy to keep testing.
 

The Following User Says Thank You to proprog For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#207
@proprog: some of your gripes come from oscp design:
1/ i made LOAD2 to be temporary (ie. not changing current dir and preserving previous one for go-back action)
2/ LOAD2 only works for files, right now i didnt add the code to change dirs (in case you wanted to start playing dir)
3/ only one remote can be used at once (that's why i suggested you to use /tmp/ interface, i may add multi-remote support if i think it over carefully or auto-reconnect)

so, one would need to write tiny app that would:
1/ register file types
2/ start oscp if not running
3/ echo LOAD2 command into /tmp/oscp-{user}/oscp.slave

all in all, i need more input on what's needed and how one would like to use it
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny

Last edited by KotCzarny; 2015-08-24 at 19:48.
 

The Following 2 Users Say Thank You to KotCzarny For This Useful Post:
proprog's Avatar
Posts: 41 | Thanked: 159 times | Joined on Jul 2012
#208
Originally Posted by KotCzarny View Post
@proprog: some of your gripes come from oscp design:
1/ i made LOAD2 to be temporary (ie. not changing current dir and preserving previous one for go-back action)
2/ LOAD2 only works for files, right now i didnt add the code to change dirs (in case you wanted to start playing dir)
3/ only one remote can be used at once (that's why i suggested you to use /tmp/ interface, i may add multi-remote support if i think it over carefully or auto-reconnect)

so, one would need to write tiny app that would:
1/ register file types
2/ start oscp if not running
3/ echo LOAD2 command into /tmp/oscp-{user}/oscp.slave

all in all, i need more input on what's needed and how one would like to use it
Thanks for the clarification. i might give it a try myself. Will keep you posted, should at least find out some more details for you in the process.
 

The Following User Says Thank You to proprog For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#209
oscp (0.9.7-45) stable; urgency=low

* N900: pause now closes audio device (ie. 0% cpu usage in pause)

have i said today that pulseaudio is evil and should die in a fire? anyway, you can now safely pause oscp without cpu/battery drain
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 5 Users Say Thank You to KotCzarny For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#210
oscp (0.9.7-46) stable; urgency=low

* LOAD2 param now can be file, dir or link (http/mms/rtsp)
* ncurses: k_open: assign key (default: o) to call LOAD2 directly

another update toward using oscp as default media player.

for ncurses key to work add k_open=o to ~/.oscp.conf
why is it nice? you can now copy paste links or paths (absolute or relative) into oscp-core directly (or via remote interface)
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 3 Users Say Thank You to KotCzarny For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:32.