Page 1 of 1

Play video with rounded corners

PostPosted: Sat Mar 12, 2016 7:10 pm
by Clifton
How do you play a video with rounded corners?

Example:

Procedure:
  1. Draw a field on a page and name it VideoPlayer
  2. Copy an MP4 video to the book folder and flag it for inclusion in the exported DHTML tree using the DHTML Export Tree Manager.
    file_tree.png
    DHTML Export Tree Manager (add mp4 to the media folder)
    file_tree.png (103.3 KiB) Viewed 785 times
  3. Execute pgStyleObject() for the on load page event for the VideoPlayer field with these parameters:
    pgStyleObject.png
    pgStyleObject() on load page
    pgStyleObject.png (21.86 KiB) Viewed 785 times
  4. Execute htmlVideoLoader() for the on load page event for the VideoPlayer field with these parameters:
    htmlVideoPlayer.png
    htmlVideoLoader() Parameters
    htmlVideoPlayer.png (26.74 KiB) Viewed 785 times
  5. You final actions on the VideoPlayer field should look like this:
    actions.png
    VideoPlayer field actions for on load page
    actions.png (33.74 KiB) Viewed 785 times
  6. Export your sample page and the video should play like the example shown at the top of this post.