Platforms to show: All Mac Windows Linux Cross-Platform

The class QTChapterDataMBS

class QTChapterDataMBS
MBS REALbasic QuickTime Plugin (QTMovie),

class, QuickTime, MBS REALbasic QuickTime Plugin (QTMovie), class QTChapterDataMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: The class to hold the data for a new text track.
Example:
// add chapters to a movie
dim e as EditableMovie
dim f as FolderItem
dim q as QTChapterTrackMBS
dim data(9) as QTChapterDataMBS
dim i,c,d as integer
dim texts(-1) as string

f=SpecialFolder.Desktop.Child("test.mov")
e=f.OpenEditableMovie

d=e.DurationFramesMBS
MsgBox str(d)
for i=0 to 9
data(i)=new QTChapterDataMBS
data(i).FrameDuration=d/11
data(i).Text="Chapter "+str(i+1)
data(i).HasBackColor=true
data(i).BackColor=rgb(127+rnd*128,127+rnd*128,127+rnd*128)
data(i).HasTextColor=true
data(i).TextColor=rgb(rnd*128,rnd*128,rnd*128)
next

q=e.AddTextTrackMBS(data, "vide", true)

if q<>Nil then
c=q.ChapterCount
MsgBox "Success!"+EndOfLine+"Added "+str(c)+" chapters. "+str(q.TrackHandle)
for i=0 to c-1
texts.Append q.ChapterText(q.GetChapterTime(i))
next

MsgBox Join(texts,EndOfLine)
else
MsgBox "Failed"
end if

call e.CommitChanges

This class has no sub classes.

Some methods using this class:


The items on this page are in the following plugins: MBS REALbasic QuickTime Plugin.




Links
MBS REAL studio Plugins - Förderverein St. Arnulf Nickenich