Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Replacements for deprecated QuickTime Calls on Movie Objects (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] SetPermission: what is the old way?
Next thread: [MBS] Compile error in NSTextViewControlMBS.Name with Xojo 2013r4.1


Re: [MBS] FSEventsMBS question   -   Garth Hjelte
  [MBS] Replacements for deprecated QuickTime Calls on Movie Objects   -   Michael Diehr
   Re: [MBS] Replacements for deprecated QuickTime Calls on Movie Objects   -   Michael Diehr
   Re: [MBS] Replacements for deprecated QuickTime Calls on Movie Objects   -   Christian Schmitz

[MBS] Replacements for deprecated QuickTime Calls on Movie Objects
Date: 25.01.14 18:17 (Sat, 25 Jan 2014 09:17:30 -0800)
From: Michael Diehr
In the past, one could do this:

dim f as folderItem = ...
dim m as movie = f.opeanAsMovieMBS (or ... f.openAsMovie)
dim d as double = Movie.DurationMBS

But this doesn't work in the latest Xojo alphas. (durationMBS returns -1)

Does MBS have any equivalents which don't require quicktime and work with the newest Xojo Movie Objects for Cocoa builds?

Or, should the methods which extend the Xojo Movie class be removed?

(FYI I'm using MBS 13.5 release version. Is 14.x different?)

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Replacements for deprecated QuickTime Calls on Movie Objects
Date: 25.01.14 18:56 (Sat, 25 Jan 2014 09:56:07 -0800)
From: Michael Diehr
Great, thanks!

I'm also reading up on https://developer.apple.com/library/mac/technotes/tn2300/_index.html which is a good introduction to the whole QuickTime -> AVFoundation changes.

On Jan 25, 2014, at 9:25 AM, Christian Schmitz <<email address removed>> wrote:

>
> Am 25.01.2014 um 18:17 schrieb Michael Diehr <<email address removed>>:
>
>> Or, should the methods which extend the Xojo Movie class be removed?
>
> Maybe this:
>
> dim f as FolderItem = SpecialFolder.Desktop.Child("test.m4v")
> dim m as movie = f.OpenAsMovie
> dim asset as AVAssetMBS = m.AVAssetMBS
> MsgBox str(asset.duration.Seconds)+" seconds"
>
>> (FYI I'm using MBS 13.5 release version. Is 14.x different?)
>>
> Yes, 14.0 is optimized for future versions.
>
> Sincerely
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Replacements for deprecated QuickTime Calls on Movie Objects
Date: 25.01.14 18:25 (Sat, 25 Jan 2014 18:25:36 +0100)
From: Christian Schmitz

Am 25.01.2014 um 18:17 schrieb Michael Diehr <<email address removed>>:

> Or, should the methods which extend the Xojo Movie class be removed?

Maybe this:

dim f as FolderItem = SpecialFolder.Desktop.Child("test.m4v")
dim m as movie = f.OpenAsMovie
dim asset as AVAssetMBS = m.AVAssetMBS
MsgBox str(asset.duration.Seconds)+" seconds"

> (FYI I'm using MBS 13.5 release version. Is 14.x different?)
>

Yes, 14.0 is optimized for future versions.

Sincerely
Christian