Update caption add name field
This commit is contained in:
parent
7f43b2c605
commit
a277c603cb
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user