Using AVFoundation Player fails in LC 6.7.6

panagiotis merakos merakosp at gmail.com
Fri Sep 11 07:37:09 EDT 2015


Hi Tiemo,


The command 'start player myPlayer' should work. I just tested with LC
6.7.6, adding a new player and executing "start player 1" from the msg box
works as expected. What is the format/codec of the video file you want to
play? It may be the case that the particular video format or codec is not
supported by AVFoundation. The .mov file format *is* supported, but not for
all codecs. Please see pages 26-29 of the following pdf for some codecs
that *don't* work:


http://devstreaming.apple.com/videos/wwdc/2013/606xdx2xbp31zp28fdov8p0b6d/606/606.pdf?dl=1


Currently, if the OS X version >= 10.8 then LiveCode uses AVFoundation
player, thus the global variable "dontUseQT" is set to true. This means
that functions like qtversion(), qteffects() etc will return 0.0 or empty.
However, if you "set the dontUseQT to false" (before creating the player),
then you force LiveCode to use the old QT player even if the OS X version
is >= 10.8. In that way you can still use the QT-related functions.



Hope this helps,

Panos

--

On Fri, Sep 11, 2015 at 11:51 AM, Tiemo Hollmann TB <toolbook at kestner.de>
wrote:

> Hello,
>
> I have a running software with QT videos. Up to now I am working with LC
> 6.5.2
>
> I wanted to migrate to LC 6.7.6 where the QT-player is replaced by the
> AV-Foundation player. Testing it on a Mac with OS X 10.9.5 Start player
> "MyVideoPlayer": just nothing happens. The result is empty, no error, but
> no
> video is played.
>
> I have read the release notes about the new AVFoundation player, but have
> nothing found if and what has to be changed in code for migration.
>
> Btw. my code askes for the qtversion, which fails with LC 6.7.6 with the
> result 0.0. What is the recommended way to handle qtversion? Should I
> restrict this test only on window machines, because I always can rely on
> older Macs without AVFoundation that they have QT installed?
>
> Any experience or any idea, why playing mov videos fails with LC 6.7.6 on
> 10.9.5?
>
> Thanks
>
> Tiemo
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list