Codeunit 3709 Video Impl. in 25
- App
- System Application
- Namespace
- System.Media
Versions171819202122232425262728latest
Source in 25
src/System Application/App/Video/src/VideoImpl.Codeunit.al57 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.Media;
codeunit 3709 "Video Impl."
{
Access = Internal;
InherentEntitlements = X;
InherentPermissions = X;
procedure InsertIntoBuffer(var ProductVideoBufferRec: Record "Product Video Buffer"; AppID: Guid; Title: Text[250]; VideoUrl: Text[2048]; TableNum: Integer; SystemId: Guid; Category: Enum "Video Category")
var
ProductVideoBuffer: Record "Product Video Buffer";
EntryNo: Integer;
begin
if VideoUrl = '' then
exit;
ProductVideoBuffer.SetRange("Video Url", VideoUrl);
if not ProductVideoBuffer.IsEmpty() then
exit;
ProductVideoBuffer.Reset();
if ProductVideoBufferRec.FindLast() then
EntryNo := ProductVideoBufferRec.ID;
EntryNo += 1;
ProductVideoBufferRec.Init();
ProductVideoBufferRec.ID := EntryNo;
ProductVideoBufferRec.Title := Title;
ProductVideoBufferRec."Video Url" := VideoUrl;
ProductVideoBufferRec."Table Num" := TableNum;
ProductVideoBufferRec."System ID" := SystemId;
ProductVideoBufferRec."App ID" := AppID;
ProductVideoBufferRec.Category := Category;
ProductVideoBufferRec.Insert();
end;
procedure Play(Url: Text)
var
VideoLink: Page "Video Link";
begin
VideoLink.SetURL(Url);
VideoLink.RunModal();
end;
procedure Show(Category: Enum "Video Category")
var
ProductVideos: Page "Product Videos";
begin
ProductVideos.SetSpecificCategory(Category);
ProductVideos.Run();
end;
}Procedures, 3
| Name | Parameters | Returns | Access | Obsolete |
|---|---|---|---|---|
| InsertIntoBuffer | (var Record Product Video Buffer, Guid, Text[250], Text[2048], Integer, Guid, Enum Video Category) | public | - | |
| Play | (Text) | public | - | |
| Show | (Enum Video Category) | public | - |