Discussion

2
Replies
1383
Views
Close popover
Vamsi Raj (Vamsi_Raj)
Aaseya IT Services Pvt Ltd
Senior Consultant
Aaseya IT Services Pvt Ltd
SA
Vamsi_Raj Member since 2017 4 posts
Aaseya IT Services Pvt Ltd
Posted: March 14, 2019
Last activity: April 2, 2019

How to upload and play video In portal User Interface?

  1. Use Video from Advanced in the Section.
  2. Create a binary file with mp4 format.
  3. Take Property reference and mention “webwb/TestvideoMp4.mp4” instead of webwb.testvideoMp4.mp4.

[OR]

  1. Create a binary file with mp4 format. (Eg id: TestVideoMp4)
  2. Create a non html generated section and include the following code

<video id='TestVideoMp4' width="720" height="340" controls>

<source src="<pega:reference name="pxThread.pxReqBaseURI" mode="normal" />/webwb/TestVideoMp4.mp4" type="video/mp4">

</video>

<script>

document.getElementById("TestVideoMp4").play();

</script>

  1. Adjust height and width accordingly.

***Edited by Moderator Marissa to update platform capability tags****

User Experience Developer Knowledge Share