web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Dual Display in POS

(0) ShareShare
ReportReport
Posted on by 15

Hi all,

I am working with D365 for Retails and I have a big issue. Can you help me to do it?

<div style="width: 50%;min-width:600px; float: left;">

    <video autoplay loop style="height:100%;width:100%;object-fit:cover" data-bind="html: Urlvideo"></video>

 

                </div>

            And add a parameter “UrlVideo” in DualDisplayCustomControl.ts

            this.UrlVideo = "<source src=" + '"' + "">commondatastorage.googleapis.com/.../ForBiggerEscapes.mp4" + '"' + " type=" + '"' + "video/mp4" + '"' + ">";

  

  • Issue: So it was doing with one video but it not work with list video. I will make it work in html with JS and Jquery:

<!DOCTYPE html>

<html lang="en" xmlns="">www.w3.org/.../xhtml">

<head>

    <meta charset="utf-8" />

    <title></title>

    <script src="">ajax.googleapis.com/.../script>

</head>

<body>

    <!-- Note: The element ID is different from the ID generated by the POS extensibility framework. This 'template' ID is not used by the POS extensibility framework. -->

 

        <div>

           

                <div style="height:100%;width:100%;min-height:960px">

                    <div style="width: 50%;min-width:600px;min-height:960px;">

                        <video id="videoarea" autoplay loop style="height:100%;width:100%;object-fit:cover" src="" >

 

                           

                        </video>

                     

                    </div>

                    <div style="width: 50%;min-width:600px; float: right;">

                        <div class="height100Percent width100Percent">

                            <div class="height500 width100Percent no-shrink col marginBottom20" style="height:65%;min-height:650px">

                                <div class="col grow marginBottom48">

                                    <div id="dualDisplayDataListSample" data-bind="msPosDataList: cartLinesDataList">

                                    </div>

                                </div>

                            </div>

                            <div class="marginBottom20" style="background-color:lightgray;color:black;height:35%;min-height:250px;">

                                <h3 class="marginLeft8" data-bind="text: cartTotalAmountLabel" style="font-weight:bold">Total Amount:</h3>

                                <h3 class="marginLeft8" data-bind="text: cartTotalAmount"></h3>

                                <h3 class="marginLeft8" data-bind="text: customerNameLabel" style="font-weight:bold">Customer Name:</h3>

                                <h3 class="marginLeft8" data-bind="text: customerName"></h3>

                                <h3 class="marginLeft8" data-bind="text: customerAccountNumberLabel" style="font-weight:bold">Customer Account Number:</h3>

                                <h3 class="marginLeft8" data-bind="text: customerAccountNumber"></h3>

                                <h3 class="marginLeft8" data-bind="text: isLoggedOn() ? 'logged in' : 'logged out'"></h3>

                                <h3 class="marginLeft8" data-bind="text: employeeNameLabel" style="font-weight:bold">Employee Name:</h3>

                                <h3 class="marginLeft8" data-bind="text: employeeName"></h3>

                            </div>

                        </div>

                    </div>

                </div>

               

          

        </div>

<script>

    $(function() {

    var $videos = ["http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4"];

    var $video = $("#videoarea");

    var current = 0;

    var max = 1;

   

    function playVideo(video) {

        current =  video;

         if (current == undefined) {

            return false;

        }

        $video.attr({

            "src": current,

            "autoplay": "autoplay"

        })

    }

   

    $video.attr({

        "src": $videos[current],

            "autoplay": "autoplay"

    })

   

    $video.on('ended', function () {

      if (current == max) {

            playVideo($videos[0]);

        } else {

                    playVideo($videos[current + 1]);

        }

    });

   

    function elIndex(parent, el) {

        for (var i = 0; i < parent.length; i += 1) {

            if (parent[i] === el) {

              return i;  

            }

        }

       

        return null;

    }

})

</script>

 

</body>

</html>

But I make it in DualDisplayCustomControl.html, It didn’t work.

So I want to ask how to make it work?

I have the same question (0)
  • Xusheng Profile Picture
    Microsoft Employee on at

    Hi Huy Duong

    Which AX version you currently use? Would you mind share the source code project to us? What is the meaning of "play list video "? What is your expected result?

  • Huy Duong Profile Picture
    15 on at

    I am using Dynamics 365 for retails. Source code I share it in my question and "play list video" is mean I have 3 video.I want to show all in second screen of modern POS. When video 1 ended,video 2 will start..when video 3 ended, video 1 will start again.

  • Xusheng Profile Picture
    Microsoft Employee on at

    Hi Huy,

    My apologies to let you know this is not support for standard ENV. And I never try this before at my side.

  • Oksana Kovaliova Profile Picture
    3,597 on at

    Hi, what exact error do you get in developer console, when trying to play the videos?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 179 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 110 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 107

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans