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

[video] add listitem audio/subtitle properties from streamdetails #7921

Merged
merged 1 commit into from Sep 1, 2015

Conversation

mkortstiege
Copy link
Member

This is a in-core replacement for script.videolanguage. Since we already know about the streamdetails there's no need to perform additional json look-ups just to fill those.

If available, the following audio and subtitle based properties will be filled from streamdetails:

  • ListItem.Property(AudioCodec.[n])
  • ListItem.Property(AudioLanguage.[n])
  • ListItem.Property(AudioChannels.[n])
  • ListItem.Property(SubtitleLanguage.[n])

Unlike the script this is setting the properties on the actual ListItem. Skins just need to replace Window.Property with ListItem.Property. After that the script dependency can be ditched.

/cc @BigNoid, @HitcherUK, @Montellese, @phil65, @ronie, @vonH

@mkortstiege mkortstiege added Type: Feature non-breaking change which adds functionality Type: Improvement non-breaking change which improves existing functionality labels Aug 30, 2015
CStreamDetails& details = item.GetVideoInfoTag()->m_streamDetails;

// add audio language properties
for (int i = 1; i <= details.GetAudioStreamCount(); i++)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@mkortstiege mkortstiege added this to the Jarvis 16.0-alpha3 milestone Aug 30, 2015
@ronie
Copy link
Member

ronie commented Aug 30, 2015

cool! +1

@phil65
Copy link
Contributor

phil65 commented Aug 30, 2015

yup, very nice. Thx!

mkortstiege added a commit that referenced this pull request Sep 1, 2015
[video] add listitem audio/subtitle properties from streamdetails
@mkortstiege mkortstiege merged commit 1923382 into xbmc:master Sep 1, 2015
@mkortstiege mkortstiege deleted the streamdetail-props branch October 6, 2015 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature non-breaking change which adds functionality Type: Improvement non-breaking change which improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants