Table of Contents

Codeunit Video

ID 3710
Namespace: System.Media

Lists and enables playing of available videos.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

Play

Use a link to display a video in a new page.

procedure Play(Url: Text)

Parameters

Name Type Description
Url Text

The link to the video.

Register

to a video to the Product Videos page.

procedure Register(AppID: Guid, Title: Text[250], VideoUrl: Text[2048])

Parameters

Name Type Description
AppID Guid

The ID of the extension that registers this video.

Title Text[250]

The title of the video.

VideoUrl Text[2048]

The link to the video.

Register

to a video to the Product Videos page.

procedure Register(AppID: Guid, Title: Text[250], VideoUrl: Text[2048], Category: Enum "Video Category")

Parameters

Name Type Description
AppID Guid

The ID of the extension that registers this video.

Title Text[250]

The title of the video.

VideoUrl Text[2048]

The link to the video.

Category Enum System.Media."Video Category"

The video category.

Register

to a video to the Product Videos page.

procedure Register(AppID: Guid, Title: Text[250], VideoUrl: Text[2048], TableNum: Integer, SystemId: Guid)

Parameters

Name Type Description
AppID Guid

The ID of the extension that registers this video.

Title Text[250]

The title of the video.

VideoUrl Text[2048]

The link to the video.

TableNum Integer

The table number of the record that is the source of this video.

SystemId Guid

id of the record related to this video. This is used to raise the OnVideoPlayed event with that record once the video is played.

Register

to a video to the Product Videos page.

procedure Register(AppID: Guid, Title: Text[250], VideoUrl: Text[2048], Category: Enum "Video Category", TableNum: Integer, SystemId: Guid)

Parameters

Name Type Description
AppID Guid

The ID of the extension that registers this video.

Title Text[250]

The title of the video.

VideoUrl Text[2048]

The link to the video.

Category Enum System.Media."Video Category"

The video category.

TableNum Integer

The table number of the record that is the source of this video.

SystemId Guid

id of the record related to this video. This is used to raise the OnVideoPlayed event with that record once the video is played.

Show

Show all videos that belong to a given category.

procedure Show(Category: Enum "Video Category")

Parameters

Name Type Description
Category Enum System.Media."Video Category"

The category to filter the videos by.

Events

OnRegisterVideo

Notifies the subscribers that they can add links to videos to the Product Videos page.

[IntegrationEvent(True,False)]
internal procedure OnRegisterVideo()

OnVideoPlayed

Notifies the subscribers that they can act on the source record when a related video is played.

[IntegrationEvent(False,False)]
internal procedure OnVideoPlayed(TableNum: Integer, SystemID: Guid)

Parameters

Name Type Description
TableNum Integer

The table number of the source record.

SystemID Guid

The surrogate key of the source record.

See also