Xojo Conferences
XDCMay2019MiamiUSA

Re: New Plugins-SDK available: REALSetMovieMovie (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Re: New Plugins-SDK available: NOSTATICINIT
Next thread: Extensions/Properties/Setters/Getters


New Plugins-SDK available: Compiler complain   -   Alfred Van Hoek
  Re: New Plugins-SDK available: REALSetMovieMovie   -   Alfred Van Hoek
   Re: New Plugins-SDK available: REALSetMovieMovie   -   Joseph J. Strout
    Re: New Plugins-SDK available: REALSetMovieMovie   -   Alfred Van Hoek
     Re: New Plugins-SDK available: REALSetMovieMovie   -   Joseph J. Strout
      Re: New Plugins-SDK available: REALSetMovieMovie   -   Alfred Van Hoek
       Re: New Plugins-SDK available: REALSetMovieMovie   -   Andrew
        Re: New Plugins-SDK available: REALSetMovieMovie   -   Alfred Van Hoek
         Re: New Plugins-SDK available: REALSetMovieMovie   -   Joseph J. Strout
        Re: New Plugins-SDK available: REALSetMovieMovie   -   Joseph J. Strout
   Re: New Plugins-SDK available: REALSetMovieMovie   -   Erick Tejkowski
   Re: New Plugins-SDK available: NOSTATICINIT   -   Alfred Van Hoek

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 03:11 (Thu, 06 Jun 2002 22:11:43 -0400)
From: Alfred Van Hoek
The documentation on REALSetMovieMovie is very unclear, but I take it as a
replacement for REALbuildMovie, because it almost sounds like
REALGetMovieMovie which provides the Movie from a REALmovie?

Alfred

- - - - - - - - - -
For list commands, send "Help" in the body of a message to
<<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 04:16 (Thu, 6 Jun 2002 20:16:41 -0700)
From: Joseph J. Strout
At 10:11 PM -0400 6/6/02, Alfred Van Hoek wrote:

>The documentation on REALSetMovieMovie is very unclear, but I take it as a
>replacement for REALbuildMovie, because it almost sounds like
>REALGetMovieMovie which provides the Movie from a REALmovie?

Hmm, no, it does just what it says: it sets the QuickTime movie
associated with a REALmovie. I'm not sure how to put that any more
clearly (suggestions are welcome).

Best,
- Joe

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 04:38 (Thu, 06 Jun 2002 23:38:10 -0400)
From: Alfred Van Hoek
on 6/6/02 11:16 PM, Joseph J. Strout at <email address removed> wrote:

> Hmm, no, it does just what it says: it sets the QuickTime movie
> associated with a REALmovie. I'm not sure how to put that any more
> clearly (suggestions are welcome).

Sets to what? Do you have to feed a valid Movie and a valid REALmovie? And
then what? It's absolutely not clear, need more specifics. It is sometimes
hard to understand Apple docs, but this is ...:(

Alfred

- - - - - - - - - -
For list commands, send "Help" in the body of a message to
<<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 04:46 (Thu, 6 Jun 2002 20:46:00 -0700)
From: Joseph J. Strout
At 11:38 PM -0400 6/6/02, Alfred Van Hoek wrote:

> > Hmm, no, it does just what it says: it sets the QuickTime movie
>> associated with a REALmovie. I'm not sure how to put that any more
> > clearly (suggestions are welcome).
>
>Sets to what? Do you have to feed a valid Movie and a valid REALmovie? And
>then what? It's absolutely not clear, need more specifics. It is sometimes
>hard to understand Apple docs, but this is ...:(

Sorry, I'm still not understanding your question. Maybe we should
back up and cover some basics.

A REALmovie is the plugin name for a REALbasic "Movie" object. This
object is a wrapper for a QuickTime movie.

A Movie (or QT::Movie if you prefer) is a QuickTime movie.

This function sets the QuickTime movie associated with the REALmovie.

Alfred, I'm really trying, but I just don't see any other way to say
it, or what more specifics I could provide. You give it a REALmovie.
You give it a Movie. It sets that Movie as the one the REALmovie
wraps. It is, as Eric said, the opposite of REALGetMovieMovie.

Is this getting any clearer? If not, can you ask more specific
questions about what it is that's still unclear?

Thanks,
- Joe

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 05:04 (Fri, 07 Jun 2002 00:04:01 -0400)
From: Alfred Van Hoek
on 6/6/02 11:46 PM, Joseph J. Strout at <email address removed> wrote:

> It is, as Eric said, the opposite of REALGetMovieMovie.
>
> Is this getting any clearer? If not, can you ask more specific
> questions about what it is that's still unclear?

Yes getting there, but it is not really the opposite of REALGetMovieMovie.
There you give it a REALmovie and it returns a Movie. If it were the
opposite REALSetMovieMovie would return a REALmovie after feeding a Movie.
Since REALbuildMovie only works for MAcOS, not WIN, while the docs on
REALbuildMovie say it is unclear what it does (in my hands it sometimes
leads to a crash), I thought, ok, REALSetMovieMovie returns a REALmovie from
a Movie to replace REALbuildMovie.

Now I understand that REALSetMoveMovie does something different: It removes
the old Movie (if any) from REALmovie and replaces it with a new Movie (a
property function). I do not grasp yet what benefit this will give. What
about tracks, media's, mediahandlers?

The QuickTime support in the SDK is cumbersome, and the plugin(s) I have
developed initially tried to support REALmovie and REALmoviePlayer, but I
have abandoned this idea. It is too risky. Customers want rock-solid
classes, and the only way to provide this is to make my own. But this on a
side...

Also: The Handle feature of REALmovie and player are read-only handles.
You now should be able to set them too, (= REALSetMovieMovie). BTW, the
Handle return in Win32 of a REALmovie is different from a Movie (tested
before editablemovie became a subclass of Movie),

Alfred

- - - - - - - - - -
For list commands, send "Help" in the body of a message to
<<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 05:49 (Fri, 7 Jun 2002 16:49:23 +1200)
From: Andrew
Hi Alfred,
>
> Now I understand that REALSetMoveMovie does something different: It
> removes
> the old Movie (if any) from REALmovie and replaces it with a new Movie (a
> property function). I do not grasp yet what benefit this will give. What
> about tracks, media's, mediahandlers?

Im am guessing that this call does remove the need to call realbuildmovie.

It should be possible from Josephs description to create a realmovie in
realbasic, and pass that to a plugin which sets its movie (on any platform)
to something the plugin has created or got from elsewhere.

If I am right, then this is *very* cool...

can you confirm Joseph?

Yours cheerfully,

Andrew Bush



The word for a society where everyone is pulling together is 'Tyranny', in
a free country everyone tends to pull in different directions.

- - - - - - - - - -
For list commands, send "Help" in the body of a message to
<<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 10:12 (Fri, 07 Jun 2002 05:12:35 -0400)
From: Alfred Van Hoek
on 6/7/02 12:49 AM, Andrew at <email address removed> wrote:

> It should be possible from Josephs description to create a realmovie in
> realbasic, and pass that to a plugin which sets its movie (on any platform)
> to something the plugin has created or got from elsewhere.
>
> If I am right, then this is *very* cool...

I wish I could say the same thing. I find it a dangerous call, because
tracks that are instantiated from a REALmovie can become invalid if using
REALSetMovieMovie. It is similar to setting the movie.Handle in RB, which
is not possible. If there were track-instances from the movie they loose
any meaning because the Movie, and its tracks have been deleted.

Usage of REALSetMovieMovie is therefore not enough, you need more calls to
safely use this feature.

REALbuildMovie like REALbuildString, and other REALbuildxxx calls, suggest
that the movie or string or picture is now owned by REALbasic. In principle
you should not touch the Movie, string, sound, picHandle, GWorld anymore.
It has been stated that a REALstring is immutable, for reasons that I think
are obvious. I am aware that some REALbuildxxx functions take the
bPassOwnership, and it is fairly straightforward what to do if you do not
give the ownership to RB. REALmovie is much more complex, because from a
REALmovie you can get a Track, etc.

In some of the classes in plugins developed here, the very technique of
changing the principal entity that is wrapped in the class is called
cloning, followed by the actual change. This prevents the potential dangers
described here.

With all things said here, I hope, I also have given the background why I
did not understand REALSetMovieMovie. It does not fit or correspond to all
other API-calls.

Alfred

- - - - - - - - - -
For list commands, send "Help" in the body of a message to
<<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 15:07 (Fri, 7 Jun 2002 07:07:05 -0700)
From: Joseph J. Strout
REALSetMovieMovie was needed for some of the new QT functionality in
4.5. It would have cost us more to hide it from the SDK than it did
to leave it in. If you don't like it or find it not useful for your
purposes, then don't use it.

Thanks,
- Joe

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 14:59 (Fri, 7 Jun 2002 06:59:10 -0700)
From: Joseph J. Strout
At 4:49 PM +1200 6/7/02, Andrew wrote:

>Im am guessing that this call does remove the need to call realbuildmovie.
>
>It should be possible from Josephs description to create a realmovie
>in realbasic, and pass that to a plugin which sets its movie (on any
>platform)
> to something the plugin has created or got from elsewhere.

Sounds reasonable.

>can you confirm Joseph?

No, I'm afraid I don't know much more about it than you do. But it's
worth a try.

Best,
- Joe

Re: New Plugins-SDK available: REALSetMovieMovie
Date: 07.06.02 04:30 (Thu, 06 Jun 2002 22:30:49 -0500)
From: Erick Tejkowski
REALSetMovieMovie = opposite of REALGetMovieMovie

HTH,
Erick

"Joseph J. Strout" wrote:

> Hmm, no, it does just what it says: it sets the QuickTime movie
> associated with a REALmovie. I'm not sure how to put that any more
> clearly (suggestions are welcome).

- - - - - - - - - -
For list commands, send "Help" in the body of a message to
<<email address removed>>
Unsubscribe:
<mailto:<email address removed>>