Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add support for radio programs #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joonne
Copy link
Owner

@joonne joonne commented Mar 28, 2019

No description provided.

@mlehtima
Copy link
Collaborator

mlehtima commented Mar 28, 2019

I have additional code for audio support. For example settings page for selecting what type of content is listed in search and other lists. Maybe that can be integrated after this. It could be that the reason why I didn't finish it was the subtitle bug because I couldn't play any audio streams.

@mlehtima
Copy link
Collaborator

I just made another test and I cannot get any audio streams to play, the URL obtained from API returns error 404.

@joonne
Copy link
Owner Author

joonne commented Mar 31, 2019

I have additional code for audio support. For example settings page for selecting what type of content is listed in search and other lists. Maybe that can be integrated after this. It could be that the reason why I didn't finish it was the subtitle bug because I couldn't play any audio streams.

Did you have the API part also already? Would you like to add your changes here and I could finish the feature or do you prefer to continue this feature after the API part is done & working? Or something else? :)

@joonne
Copy link
Owner Author

joonne commented Mar 31, 2019

I just made another test and I cannot get any audio streams to play, the URL obtained from API returns error 404.

I think I faced same issues the other day I tried to make this, will continue maybe this week unless we decide something else ☝️

@mlehtima
Copy link
Collaborator

I'll check my sources tomorrow and rebase on top of this. Most of the new code is for the settings part but also some API changes to read the settings.

@joonne
Copy link
Owner Author

joonne commented May 27, 2019

Radio streams are working now, checked from YLE API support and the issue was the protocol, HLS streams for audio did not work but with PMD streams started to work. :) Cool that this can be added also. Would you like to add the other code here or continue from this with your additional stuff? :) @mlehtima

…ulldown menu to change between radio&tv modes, need to reflect the change into categories etc.
@mlehtima
Copy link
Collaborator

I thought I tried all of the protocols already but seems I didn't, good that radio now works. I will check the code and test this and if it works well then we can merge and I will then finish my changes for limiting searching to videos or audio.

@joonne
Copy link
Owner Author

joonne commented May 27, 2019

Sounds good, I'll pick something else next in the meantime then :) 👍

@joonne
Copy link
Owner Author

joonne commented May 27, 2019

My idea is that I would like this to be quite similar with the official app, so you could select from first page's pull down menu the content type (radio/tv) and then you would have basically similar experience all the time except the content is either radio or tv, not both mixed. Opinions? :)

@mlehtima
Copy link
Collaborator

That in one way to do it, maybe easier than my way of having a settings page to select which content is shown (audio, video, audioclip, videoclip, all).

@@ -235,16 +308,18 @@ var api = (function(appId, appKey) {
getProgramsByCategoryId: getProgramsByCategoryId,
getProgramsBySeriesId: getProgramsBySeriesId,
search: search,
getCurrentRadioBroadcasts: getCurrentRadioBroadcasts,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the getNowPlayingRadioPrograms function which is used in FirstPage.qml. Also the function is missing from below in function list. In addition to this there now seems to be two functions which are probably supposed to do the same thing getNowPlayingRadioPrograms and getCurrentRadioBroadcasts.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, renamed the getNowPlayingRadioPrograms into getCurrentRadioBroadcasts and forgot to rename it into FirstPage.qml.

The two methods are using different endpoints, the other (not used atm) returns the currently playing songs/programs in the given radiochannel and which I thought was needed for listening those songs. Not sure if we want to show information about next/current/previous songs somewhere in the app?

@mlehtima
Copy link
Collaborator

mlehtima commented Jun 1, 2019

Found a small issue, sometimes first page shows many duplicate programs because service list has all of the local versions of the same channel and all list the same program, maybe some check of duplicates might be useful? Also this radio program support currently only works in first page and not in other parts, maybe those can be done later. I had some code already for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants