• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Strawberry Music Player Forums
    2. athoopen
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 16
    • Best 1
    • Controversial 0
    • Groups 0

    athoopen

    @athoopen

    2
    Reputation
    11
    Profile views
    16
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    athoopen Unfollow Follow

    Best posts made by athoopen

    • Add more Radio stations

      The number of radio stations supported is very limited. Access to more radio stations would highly be appreciated. Or just being able to search for a radio station and mark it as a favorite (and pop-up under Radios) would be a great improvement.

      You could use https://www.radio-browser.info/ to get a list of stations. They supply an API. Sadly enough, my C++ skills are to minimal to support you in implementing this.

      posted in Feature Suggestions
      athoopenA
      athoopen

    Latest posts made by athoopen

    • RE: Sort Smart Play Lists

      @rajm @mncroc @rlkeeney support this request, would really make sence to be able to sort/order (Smart) Playlists!

      posted in Feature Suggestions
      athoopenA
      athoopen
    • RE: Add more Radio stations

      @linuxdancer my mistake, this error is Strawberry's way to say that the stream is invalid. My mistake, try https://stream.bnr.nl/bnr_mp3_128_20

      Arjan

      posted in Feature Suggestions
      athoopenA
      athoopen
    • RE: Add more Radio stations

      @linuxdancer as a workaround you can create playlists holding streams. Create an empty file and add following lines to it:

      #EXTM3U
      #EXTINF:0,🎵 BNR Nieuwsradio
      https://playerservices.streamtheworld.com/pls/BNR_NIEUWSRADIOAAC.pls
      

      Replase BNR Nieuwsradio with the title of your stream (e.g. BBC4) and replace the url (https://...) with your url.

      You can repeat the last two lines as often as you like to hold more streams Now save the file with a .m3u extensions (for example Radio.m3u)
      Go into Strawberry and select Playlist - Load playlist (or Ctr+Shift+O) and you can load your playlist.
      Doulbe click on the star in the tab and it will remember this playlist.

      Success!!

      posted in Feature Suggestions
      athoopenA
      athoopen
    • Add more Radio stations

      The number of radio stations supported is very limited. Access to more radio stations would highly be appreciated. Or just being able to search for a radio station and mark it as a favorite (and pop-up under Radios) would be a great improvement.

      You could use https://www.radio-browser.info/ to get a list of stations. They supply an API. Sadly enough, my C++ skills are to minimal to support you in implementing this.

      posted in Feature Suggestions
      athoopenA
      athoopen
    • RE: Added several radio stations

      As I previously mentioned, I agree that it is probably not the best idea to have hard-coded streams into an application (although they don't change that often).
      However, to get into the ideal world and using APIs to search for streams, you first need to have a source where to get the streams (and urls) from. The developers of Volumio have found a way to get to a "directory" holding a large amount of streams. So technically it must be possible.

      Once you have that "source" you can think about how to present this with views to the end-user. And think one step further: how users can add their own streams.

      But let's be honest @jonas, currently there is 1 programmer for Strawberry and that's you. You probably have enough work in maintaining Strawberry and therefore no (or very limited) time to add additional functionality. When will your ideas (which are without any doubt better then hardcoded streams) be implemented? My guess is that it will continue to be a dream for a long time into the future.
      Another way of solving the problem is doing it step by step, first hardcoded, then maybe an external (saved) playlist with a large number of stations which can be loaded into Strawberry (like @ben2talk is using now) and finally getting into a state where Strawberry uses external sources to list radio streams.

      However, maybe the number of users interested in radio streams in Strawberry is very limited and therefore the radio streams feature will more or less die .... who knows ... only the future will tell.

      I tried to be part of the community, spend time on it and contribute (even with my limited C++ programming capabilities) to try to make the application a bit "better" then what it was.

      If you want to go only for the "ideal" world, then be my guest, and I sincerely hope you will get there. But honestly .... I doubt.

      Kind regards,
      Arjan

      posted in Development
      athoopenA
      athoopen
    • RE: Added several radio stations

      @ben2talk The one does not exclude the other. A playlist is more flexible however it does need technial skills. For you and many others no problem, for my wife and many others an obstacle they cannot overcome.

      The (from my point of view) best solution would be that Strawberry uses a directory service with audio streams listed in seach a way that users can select their favorites. Must technically be possible since volumio (volumio.com code at https://github.com/volumio) does it. However I am not skilled enough in C++ to implement that into Strawberry.

      I think jonas has already enough to do with maintaining Strawberry.

      I just tried to increase usability (a little bit) for non-technical Strawberry users.

      posted in Development
      athoopenA
      athoopen
    • Added several radio stations

      @jonas The number of radio stations is limited. I have added in my fork of strawberry a number of radio stations. Compiles and runs smoothly.

      If you are interested in adding this to strawberry then let me know.

      FYI: Code can be found at https://github.com/arjantenhoopen/strawberry in the branch addradio08022024

      posted in Development
      athoopenA
      athoopen
    • RE: Building Strawberry in VS Code on OpenSUSE Leap 15.5

      @jonas I am currently digging into the code of radio streams. There is one function I do not understand, or better, what the use of it is. In src/core/song.cpp there is a function called "SourceFromURL" (app. at line 850).
      What is the use of this? What goes "wrong" if the return value is incorrect?

      Could you elaborate a little bit about this function?

      I also for see a challenge. There are many stations/streams who use a CDN (example: streamtheworld.com). To distinguish between stations, you can't use the url (it's always streamtheworld.com). The difference is within the path.

      Any thoughts about this?

      TIA,
      Arjan

      posted in Development
      athoopenA
      athoopen
    • RE: Building Strawberry in VS Code on OpenSUSE Leap 15.5

      There is nothing wrong with the code, after I removed the db and restarted strawberry the radio stations where all working.

      I cannot explain this since, in my opinion, the stations are hard coded in the code so why should the (also) be in the db.

      Nevertheless, got it working now 👍

      posted in Development
      athoopenA
      athoopen
    • RE: Building Strawberry in VS Code on OpenSUSE Leap 15.5

      Thanks @jonas ! My skills at C++ are not that great so debugging will probably become hard. The strange thing is radio paradise does not suffer from this.
      With having hard-coded radio streams inside strawberry being a bad idea is something I fully agree on. However, looking how "Radio" is currently implemented, I just followed this way of implementing. I took Radio Paradise as an example/template.

      It would be much better if strawberry would give the user a possibility to import (via a .m3u or .pls file???) radio station streams where strawberry would store them in its database and show them under "Radio".

      I'll see if I can fix it, but don't count on it. If it fails, I'll (ab)use playlist to get my favorite radio stations into strawberry.

      Thanks for your time and effort on this!
      Arjan

      posted in Development
      athoopenA
      athoopen