Jump to content

Retrieving the language for a video item


feice59

Recommended Posts

Hi, we don't keep this information, although the can get the language of the audio and subtitle tracks.

Link to comment
Share on other sites

PenkethBoy

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 by PenkethBoy
  • Like 1
Link to comment
Share on other sites

feice59

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 by feice59
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...