Movie Player ActiveX Control

AddLayer

 

Add the new layer of video for video mixing.

Public Function AddLayer( _
  ByVal strVideo As String ,_
  ByVal iVideoLeft As Float ,_
  ByVal iVideoTop As Float ,_
  ByVal iVideoRight As Float ,_
  ByVal iVideoBottom As Float ,_
  ByVal iAlphaValue As Float ,_
  ByVal bHaveAudio As Bool
)

 

Parameter
strVideo
Specifies the path of video file.

iVideoLeft
Specifies upper-left corner x-coordinate of the video. It must be a value from 0.0 to 1.0

iVideoTop
Specifies upper-left corner y-coordinate of the video. It must be a value from 0.0 to 1.0

iVideoRight
Specifies lower-right corner x-coordinate. It must be a value from 0.0 to 1.0

iVideoBottom
Specifies lower-right corner y-coordinate. It must be a value from 0.0 to 1.0

iAlphaValue
The alpha channel of video. It must be a value from 0.0 to 1.0.

bHaveAudio
Enable or Disable audio when playback.

Return Value
True - Success, False- Failed

Example

   

Visual Basic Syntax
MoviePlayer1.AddLayerValue "c:\test1.mpg", "0,0, 0.5,0.5 ,1.0,True
MoviePlayer1.AddLayerValue c:\test2.mpg",0.5, 0.5, 1.0,1.0 ,1.0,True
MoviePLayer1.Play