Re: Best Practice with Player object to determine audio or video

2019-07-11 Thread Curry Kenworthy via use-livecode
Paul: > Is this an approach you have coded and used? Yes. If you had some code using your mediaType getprop, such as: if the mediaType of player 1 is "Video" then -- do something It could become, for example (a minimal change): if the mediaTypes of player 1 contains "Video" then -- do s

Re: Best Practice with Player object to determine audio or video

2019-07-11 Thread Klaus major-k via use-livecode
Hi Paul, > Am 11.07.2019 um 21:02 schrieb Paul Dupuis via use-livecode > : > > the mediaTYpes property returns tracks (and the documentation doesn't say > whether the list is cr delimited or comma delimited, but that is a docs issue) > > Are you saying that for example if (the mediaTypes of pl

Re: Best Practice with Player object to determine audio or video

2019-07-11 Thread Paul Dupuis via use-livecode
the mediaTYpes property returns tracks (and the documentation doesn't say whether the list is cr delimited or comma delimited, but that is a docs issue) Are you saying that for example if (the mediaTypes of player X contains "audio" and not (the mediaTypes of player X contains "video")) is de

Re: Best Practice with Player object to determine audio or video

2019-07-11 Thread Curry Kenworthy via use-livecode
Built-in "mediaTypes" property is pretty handy! Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ use-livecode mailing list use-livecode@lis

Best Practice with Player object to determine audio or video

2019-07-11 Thread Paul Dupuis via use-livecode
I'm looking for the best way (code), cross platform, to determine if the media a user selected for a player object is audio (only) or a video. I am surprised there is not some inherent player property to get this information. I am using an approach that looks at the formattedHeight (with audio