feice59 0 Posted March 15, 2020 Posted March 15, 2020 I'm in swagger and don't see a way to get the language for a specific video item.
Luke 42077 Posted March 15, 2020 Posted March 15, 2020 Hi, we don't keep this information, although the can get the language of the audio and subtitle tracks.
PenkethBoy 2068 Posted March 15, 2020 Posted March 15, 2020 (edited) See my answer to your other question https://emby.media/community/index.php?/topic/83736-retrieving-the-size-of-a-video-item/?p=857238 mediasources will bring back mediastreams - which contains the language of each track that has it assigned - IIRC it will be missing if not assigned so look for things like "DisplayLanguage": "English" or "DisplayLanguage": "French" although this usually only applies to the Audio and Subtitle tracks - as Video language is usually blank/missing in my experience Edited March 15, 2020 by PenkethBoy 1
feice59 0 Posted March 16, 2020 Author Posted March 16, 2020 (edited) Thanks, another question I have is how to get the duration of the stream? I see: RunTimeTicks and the TimeBase from MediaStream. But those don't seem to get me the duration. Never mind: (RunTimeTicks/60)*.0000001 Edited March 16, 2020 by feice59
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now