Discussion

2
Replies
1286
Views
Vamsi_Raj Member since 2017 4 posts
Aaseya IT Services Pvt Ltd
Posted: 1 year ago
Last activity: 1 year 5 months ago

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 Interface Developer Knowledge Share
Share this page LinkedIn