Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Quicktime tracks / layers (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: compile ccp 746
Next thread: Does RB buil real .exe?


A question about English   -   Jan Erik Moström <
  Quicktime tracks / layers   -   Derek Seabrooke - CSCI/P2001
   Re: Quicktime tracks / layers   -   Alfred Van Hoek
   Re: Recent FTP implementation, anyone?   -   David Austin

Quicktime tracks / layers
Date: 02.08.02 16:24 ( Fri, 2 Aug 2002 11:24:54 -0400 (EDT))
From: Derek Seabrooke - CSCI/P2001
Does anyone have any REALbasic source code for changing the layer of a
Quicktime movie track. For example, making a text layer on top, or
underneath the video etc. Also, does anyone know how you can position the
track's x,y coordinates where they appear in the Quicktime window?

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: Quicktime tracks / layers
Date: 02.08.02 19:42 (Fri, 02 Aug 2002 14:42:09 -0400)
From: Alfred Van Hoek
on 8/2/02 12:04 PM, REALbasic Network Users Group at
<email address removed> wrote:

> Subject: Quicktime tracks / layers
> From: "Derek Seabrooke - CSCI/P2001" <<email address removed>>
> Date: Fri, 2 Aug 2002 11:24:54 -0400 (EDT)
>
> Does anyone have any REALbasic source code for changing the layer of a
> Quicktime movie track. For example, making a text layer on top, or
> underneath the video etc. Also, does anyone know how you can position the
> track's x,y coordinates where they appear in the Quicktime window?
>

OK, a quick response, if you were to use the MovieWires Plugin:

create an instance of MovieMediaContainer
add the movie file as a movie track to the parent movie with
"AppendMovieTrack(f_item as FolderItem)" which will add an atom of type
kMovieMediaDataReference to the atom container

Then follows a call to "AppendMovieMediaSlavingCharacteristics". The
"AppendMovieMediaSlavingCharacteristics" takes a bunch of booleans as
argument which indicate what properties are being added as boolean atoms to
the atomContainer. "AppendMovieMediaSlavingCharacteristics" is overloaded
to provide flexibility in what atoms are being added.

set the spatial characteristics of the child movie, if requested. This
means you can employ certain properties of the MovieMediaContainer class.
If you want to have certain properties being added to the atomContainer, set
these properties and if you don't want some of them don't touch these
properties. Once you set, call the MovieSetProperties. This will ensure
your properties will be added to the container. In addition,
AppendMovieMediaSpatialCharacteristics let you set the rectangle.

Once you have obtained this you want to call an instance of the WiredMedia
and use: "AddMediaSampleHandle (handle as integer, mediaType as integer,
duration as integer, isKeyframe as boolean, byref newMediaTime as integer)".
The handle should be the MovieMediaContainer's handle. You create a sample
description (internally) by the mediaType: It can be a "VideoMediaType", a
"FlashMediaType", etc.. Once you have this all is set.

The above should in fact be encapsulated by BeginMediaEdits and
EndMediaEdits (2 methods of the WiredMedia Class). After calling
EndMediaEdits, you want to insert this wiredMedia in a wiredTrack. See
examples you can download from my web on how to do this.

I hope it'll give you a good start...

Alfred

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>