Update caption add name field

This commit is contained in:
Michal Szczepanski 2020-03-14 14:33:56 +01:00
parent 7f43b2c605
commit a277c603cb
3 changed files with 6 additions and 3 deletions

@ -35,7 +35,8 @@ query {
trackList {
trackId,
type,
language
language,
name
}
}
}
@ -82,7 +83,8 @@ subscription {
subtitleTracks {
trackId,
type,
language
language,
name
}
}
}

@ -21,7 +21,7 @@ const CaptionComponent = ({ uid, trackList }) => {
key={track.trackId}
onClick={() => handleSubtitleChange(track.trackId)}
>
{ track.language }
{ track.name || track.language }
</Button>
);
tracks.push(c);

@ -14,6 +14,7 @@ class MediaTrack(graphene.ObjectType):
"""Chromecast MediaStatus SubtitleTrack"""
trackId = graphene.Int()
type = graphene.String()
name = graphene.String()
language = graphene.String()
class CastStatus(graphene.ObjectType):