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:
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
- property BackColor as Color
- property bold as Boolean
- property condense as Boolean
- property DisplayFlags as Integer
- property extend as Boolean
- property FontName as String
- property FontNumber as Integer
- property FontSize as Integer
- property FrameDuration as Integer
- property HasBackColor as Boolean
- property HasHighLightColor as Boolean
- property HasTextColor as Boolean
- property Height as Integer
- property HighLightColor as Color
- property HighLightEnd as Integer
- property HighLightStart as Integer
- property italic as Boolean
- property Left as Integer
- property outline as Boolean
- property ScrollDelay as Integer
- property shadow as Boolean
- property Text as String
- property TextColor as Color
- property TextJustification as Integer
- property Top as Integer
- property underline as Boolean
- property Width as Integer
- const dfAntiAlias = 8192
- const dfClipToTextBox = 4
- const dfContinuousKaraoke = 2048
- const dfContinuousScroll = 512
- const dfDontAutoScale = 2
- const dfDontDisplay = 1
- const dfDropShadow = 4096
- const dfFlowHoriz = 1024
- const dfHorizScroll = 128
- const dfInverseHilite = 32768
- const dfKeyedText = 16384
- const dfReverseScroll = 256
- const dfScrollIn = 32
- const dfScrollOut = 64
- const dfShrinkTextBoxToFit = 16
- const dfTextColorHilite = 65536
- const dfUseMovieBGColor = 8
- const teCenter = 1
- const teDefault = 0
- const teLeft = -2
- const teRight = -1
This class has no sub classes.
Some methods using this class:
- movie.AddTextTrackMBS(chapters() as QTChapterDataMBS, type as string, isChapterTrack as boolean) as QTChapterTrackMBS
The items on this page are in the following plugins: MBS REALbasic QuickTime Plugin.
Links
MBS REAL studio Plugins - Förderverein St. Arnulf Nickenich