Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

View Poll Results: Should this project receive a decent user interface?
Yes, please. That would be probably the first ebook reader with wifi radio capabilities 31 72.09%
No, I think it would drain the battery too much and I wouldn't really use it. 12 27.91%
Voters: 43. You may not vote on this poll

Reply
 
Thread Tools Search this Thread
Old 02-13-2011, 06:14 PM   #1
review
Addict
review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.
 
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
webradio / wifi radio: proof of concept

Forkosigan:
Quote:
Quote:
Quote:
Originally Posted by Stefan Hull
Can I listen to the reader for web radio, I have tried myself but have failed miserably?
No, and it probably won't be possible in the future ... To hear a web radio, you usually need Flash Player, which in the browser to a reader is not possible.
http://translate.google.com/translat...6postcount%3D8

Did I mention that I like those challenges? Well, of course as Forkosigan mentioned, flash on the ebook is not to be expected anytime soon. And I think we also don't need it. But was there no web radio before we got youtube and co? Of course and many flash web players still use the same protocol, they just wrap around the flash container. If you know the url you can very well play any webradio station you like... and there are databases of thousands and thousands of webstations. Not to mention shoutcast.

So I thought, let's port a network enables media player. Preferrentially one which has support for the various windows codecs.

Well, I ported mplayer and it works. Well, sort of. What can you expect in less than 8 hours?

What you get is alpha stage: proof-of-concept. To make a nice user frontend around it is not that much of a challenge. Sure it'll take a bit of time but there is no dead-end to be expected as the crucial part works already.

It was a bit of challenge as initially I got some Permission denied errors. (arrg. /dev/dsp (the linux sound card) had the wrong permissions) but in the end I found a way around it.

But speaking of a frontend: Do we really need a frontend for a radio? It should run in the background anyway, shouldn't it? And there is not much what you could do with a radio anyway apart from volume control. Unfortunately the volume control with the buttons doesn't work so accordingly it is fairly loud... but I guess we should be able to sort this somehow as well.

Installation
1) create in system a folder called mplayer and in mplayer a folder called bin
2) extract and copy mplayer to system\mplayer\bin
3) copy classic.app somewhere
4) copy all-music-off.app somewhere

If you want to turn it off just run the all-music-off app.

There is something to say about codecs but I will do this in another post. Also if you have a look in the classic.app you will see how simple it will be to create an almost infinite library of webradios within no time.


EDIT:
progress update: managed to get volume under control as well. What this means that it is really only the work left to make a nice and shiny user interface. Wifi, streams, decoding, audio output, volume control ... it all works already. (the attached version is the initial release without volume control)

EDIT:
uploaded vers. 1b which has a typing mistake correct. Thanks to all who reported it.
Attached Files
File Type: zip wifi-radio-0.0.1b.zip (4.64 MB, 836 views)

Last edited by review; 02-19-2011 at 06:31 AM.
review is offline   Reply With Quote
Old 02-13-2011, 08:20 PM   #2
snipenekkid
Banned
snipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensions
 
Posts: 760
Karma: 51034
Join Date: Feb 2009
whoever stated that one needs Flash for listening to most web radio streams needs a new crack dealer. Of all things out there for Linux there are about a zillion media players any of which can be ported to the PB OS but the right developers. Not sure about battery life or it running in the background but it's not something which would be difficult.

BTW, good work on the start of your app.
snipenekkid is offline   Reply With Quote
Advert
Old 02-14-2011, 03:38 AM   #3
review
Addict
review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.
 
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
Quote:
Originally Posted by snipenekkid View Post
there are about a zillion media players any of which can be ported to the PB OS but the right developers. Not sure about battery life or it running in the background but it's not something which would be difficult.
I'm sorry but from your statement I get the impression that you haven't followed the whole story. Excuse me if my judgement was too swift but I can tell you that there are about a million things which are easier than porting software to a platform were there is

1) no official SDK
2) no documentation
3) no source code
4) no root permission

When trying to port anything you will run a million times against a brick wall because as a good developer you know the solution (e.g. chmod +w /dev/dsp ) but alas you don't have root access or something else from the list above is lacking.

I don't mean to offend you but I have tried to port a good number of programs and make improvements to the pocketbook and I have seen many frustrations, which were not limited by my knowledge as a developer.

So I can assure you:

With the above mentioned set of boundary conditions it is extremely painful to port anything.

However, you're very welcome to proof me wrong.
Maybe, you could port Xournal.

(Just kidding, I'm sure the above four points were new to you)

Last edited by review; 02-14-2011 at 03:46 AM.
review is offline   Reply With Quote
Old 02-14-2011, 04:05 AM   #4
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by review View Post
1) no official SDK
2) no documentation
3) no source code
4) no root permission
I am shocked that you managed to do anything at all.
Once you receive the above things, you will be unstoppable.
kacir is offline   Reply With Quote
Old 02-14-2011, 04:45 AM   #5
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by kacir View Post
I am shocked that you managed to do anything at all.
Once you receive the above things, you will be unstoppable.
I am betting on that

Thanks review, you are just great!
paola is offline   Reply With Quote
Advert
Old 02-14-2011, 10:13 AM   #6
snipenekkid
Banned
snipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensions
 
Posts: 760
Karma: 51034
Join Date: Feb 2009
Quote:
Originally Posted by review View Post
I'm sorry but from your statement I get the impression that you haven't followed the whole story. Excuse me if my judgement was too swift but I can tell you that there are about a million things which are easier than porting software to a platform were there is

1) no official SDK
2) no documentation
3) no source code
4) no root permission

When trying to port anything you will run a million times against a brick wall because as a good developer you know the solution (e.g. chmod +w /dev/dsp ) but alas you don't have root access or something else from the list above is lacking.

I don't mean to offend you but I have tried to port a good number of programs and make improvements to the pocketbook and I have seen many frustrations, which were not limited by my knowledge as a developer.

So I can assure you:

With the above mentioned set of boundary conditions it is extremely painful to port anything.

However, you're very welcome to proof me wrong.
Maybe, you could port Xournal.

(Just kidding, I'm sure the above four points were new to you)
well, given I have been employed as a developer for nearly four decades I might have some insight. It is amazing how any of us ever ported apps between OS's in decades gone by without any of the above stuff. Roll your own if there is no SDK. Are you a programmer or a mouse?
snipenekkid is offline   Reply With Quote
Old 02-14-2011, 10:53 AM   #7
review
Addict
review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.
 
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
This is just getting silly and I'm greatly tempted not to reply at all. I`ve never meant to offend you but from you reply I understand that you took offence. However, it seems to me that you think that I don't know what I'm talking about.

So please be so kind and answer me one simple question:

How do you do
Code:
chmod o+w /dev/dsp
without being root?

(Point number 4 in the list above)

I trust that your fourty years of programming experience will allow you to understand that without those permissions set properly you will not hear any sound of your ported program. It will be a great failure.

Last edited by review; 02-14-2011 at 11:47 AM.
review is offline   Reply With Quote
Old 02-14-2011, 10:59 AM   #8
snipenekkid
Banned
snipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensionssnipenekkid can understand the language of future parallel dimensions
 
Posts: 760
Karma: 51034
Join Date: Feb 2009
exactly why the whole Linsux world is never going to really gain popular acceptance, too many stud field mice with chips on their shoulder. Struggle away and whine here for the attention you get the kudos you seek.
snipenekkid is offline   Reply With Quote
Old 02-14-2011, 11:10 AM   #9
review
Addict
review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.
 
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
@snipenekkid
Thank you for your reply.

I take this discussion as closed then as you failed to answer my question. And it simply proves that you don't have that extra knowledge/experience you claim to possess.
review is offline   Reply With Quote
Old 02-15-2011, 03:14 AM   #10
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
can't wait to run it, but I won't have wifi for another two weeks - really keen to test how much battery it consumes, but just for info, as to me this application is really a valuable addition.
paola is offline   Reply With Quote
Old 02-18-2011, 09:34 AM   #11
Henri2all
Member
Henri2all began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2011
Device: Pocketbook Pro 602
Hello, I am quit new to this kind of things.
I installed the three files.
But no radio.
My Wifi connection is allright, no problems with the internet, but when i start the classic.app from my applications, I just get a refesh of the application nothing more.

Please help.
Henri2all is offline   Reply With Quote
Old 02-18-2011, 12:31 PM   #12
review
Addict
review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.
 
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
Hi Henri2all,
thank you for your feedback. The same issue has been reported on the german forum. The good news is that there is a simple reason for this behaviour. The program classic.app will look in exactly one place to find the mplayer file. The mplayer file is, if you like, the heart of the program. The classic.app is just the file which contains the url. However, if you have extracted and copied all files in the same directory it won't work.

My guess is that you have all files in the same directory. Is this correct?


Quote:
Installation
1) create in system a folder called mplayer and in mplayer a folder called bin on the internal memory
2) extract and copy mplayer to system\mplayer\bin on the internal memory.
3) copy classic.app somewhere
4) copy all-music-off.app somewhere
If this is correct please make sure that you follow precisely steps 1 and 2 from the installation procedure.

If you've done all this and it still doesn't work please feel free to report it again. Also if it works it would be nice to have a feedback that it is solved. The Pro series is very similar so I won't really expect any issues between those devices. If it works on my 903 it should work on your 602 as well.
review is offline   Reply With Quote
Old 02-18-2011, 04:02 PM   #13
sarkash
Enthusiast
sarkash has learned how to buy an e-book online
 
Posts: 25
Karma: 94
Join Date: Feb 2011
Device: PB 902
same behavior as Henri2alls on my 902...
sarkash is offline   Reply With Quote
Old 02-19-2011, 02:51 AM   #14
Sirius67
Enthusiast
Sirius67 began at the beginning.
 
Posts: 47
Karma: 14
Join Date: Dec 2010
Device: Pocketbook 903
Have the same issue with my 903... (have followed your readme exactly)
Sirius67 is offline   Reply With Quote
Old 02-19-2011, 03:06 AM   #15
troll05
Harmless idiot
troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.troll05 ought to be getting tired of karma fortunes by now.
 
troll05's Avatar
 
Posts: 3,411
Karma: 2154829
Join Date: Nov 2010
Location: Zuhause
Device: PB622, Nexus7, Sony PRS 350, Tolino und nur noch wenig toter Baum:(
Do you use "Profiles"? There was a problem with another .app that didn't work for readers with activated profiles because it needed another folder. Maybe review can have a look
troll05 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DR800 Shutdown mode - proof of concept Shaggy iRex 51 09-16-2012 06:39 AM
jscheme proof of concept joebo Kindle Developer's Corner 0 12-13-2010 06:21 PM
Troubleshooting Kindle WiFi was affected by visit to Radio Shack sirmaru Amazon Kindle 12 12-11-2010 06:17 PM
Proof of Concept: TeX-based ebook program in iPad frabjous General Discussions 2 07-09-2010 08:46 AM
Proof Of Concept - RSS->PDF sartori Sony Reader 12 10-07-2006 03:40 PM


All times are GMT -4. The time now is 11:21 AM.


MobileRead.com is a privately owned, operated and funded community.