InfoTagVideo.getMediaType() returns nothing
#1
Hi,

For my python addon, I want to determine what kind of video is playing (Movie, TV, music video, etc). I'm using Leia 18.3

I added a media source with content type set to "none" with video files in it. When I play one of these videos, I can get a VideoInfoTag and duration just fine, but getMediaType returns nothing. 

In the pydocs, there's no empty string and it implies it should return "video". I'm not sure if the problem is the API or an error in the documentation, and not sure how to find out.

Also in the documentation for Player.GetVideoTag it says it returns an "Exception" exception if it's not playing video. Should I try and be catching all exceptions or does it have a specific exception it returns? I'd rather catch a specific exception and deal with it gracefullyj

Thanks for your help!
Reply

Logout Mark Read Team Forum Stats Members Help
InfoTagVideo.getMediaType() returns nothing0