The video shortcode changes the video player to a built-in WordPress player, which doesn't have the familiar Youtube styling, and is also missing the settings link and 'watch in Youtube' link (which I like). Ideally, if possible, I'd like to keep everything about the Youtube player the same except for the thumbnail. Embedding a YouTube Video with Start and Stop Time into Canvas. To have an embedded YouTube video begin playing at a specific timestamp, first calculate the start point in total number of seconds (60 times the number of minutes plus the number of seconds), then do the same for the end point.
With many organizations implementing social mass media and digital communication, it kind of becomes obvious to use custom videos on the web site. HANA Cloud Portal guarantees of offering rapid remedy to Design, Create, Publish your content material on the take flight. Nevertheless, when it comes to presenting HANA Cloud Remedy to customers, everyone expects HANA Fog up Portal site to complement the consumer knowledge with that of contemporary website developed using HTML5, CSS3, jQuery and therefore on. One of the almost all common requirements that are available through is usually using custom image or a thumbnail for video clip and furthermore provide custom made text overlay. Get a appearance at image below to realize.
As yóu can notice, we desire to screen an overlaying text block out, and play image at the center. Nevertheless, the background image is certainly a custom made thumbnail and not the one offered by video.
Whát can we do with HANA Cloud Portal Widgéts?
lf we wish to make use of standard features of widgets, unfortunately, we do not have got a great deal of selection. There is usually a movie widget that you can use. However, we cannot achieve a custom text wedge and a custom thumbnail with video widget. When we make use of video widget, we get sticking with as start up thumbnail.
Method out
I individually experience that Code widget offered by HANA Fog up Portal will be extremely effective. You can integrate almost any efficiency to your HANA Fog up Portal site with Code golf widget. For elizabeth.gary the gadget guy. If you are making use of a demo edition of HANA Cloud Portal, you perform not have got a search widget. Please be aware that I was not certain whether research widget is certainly accessible in full license. However, you can quickly develop search element in HTML and include that to your site with Code golf widget.
Customizing Video Thumbnail
Now, allow us know how we can substitute a regular thumbnail that you see in body 2 with something like shown in shape 1.
Create a custom made HTML componént
Wé will create a custom made HTML component / page and use CSS to style the HTML so that wé can embed thé video clip and get a custom made thumbnail. Adhering to is definitely the HTML code.
Allow me take a while to describe the structure of the Code.
Very first, we have got a DIV called “picture”. This will be basically a wrapper DlV that wraps á Video clip and Picture jointly.
Second, we will manage the visibility of the video clip on a user click on. This will be when we will alter the “display:none” home of DIV named “thevideo” with “dispIay:block”. This wiIl fundamentally hide custom made thumbnail and instead enjoy a video once user ticks of on the image or a have fun with switch.
3 rd, we will specify a thumbnail image and give course “thumb” therefore that we can manage the display properties through CSS. If you are usually working on HANA Fog up Portal, replace the src Web address with your own custom Web address to image.
Néxt, we will establish overlay text message obstructions that we need to display on best of the picture. Extra lt;spangt; components are utilized to align text properly.
Today, we possess a DIV naméd “thevideo” which will be initially concealed with the real estate “display:none”. Right here, we will embed movie Website address in an IFRAME. Take note the parameter “autopIay=1”. If you fixed this parameter to 1, after that as quickly as use click on a play key or an image, video clip will start enjoying. If you do want video clip to perform automatically, established this parameter tó 0.
This essentially finishes the HTML márkup for our custom made video clip thumbnail HTML component. Right now, allow us style this page so that everything is displayed properly.
Thé CSS
Yóu can possibly add a.CSS file in Files area of your HANA Cloud Website OR just define styles in the HTML markup itself. Define styles within lt;héadgt; and lt;/héadgt; labels of your code markup.
Here, I would like to bring your see to two factors specifically.
Initial will be an picture class defined with “.image”. Here, the wrapper or a mother or father component of the Code will become positioned relatively so that its child elements can be aligned in range with mother or father element.
Second, L2 and L4 elements are situated completely. To explain this further, when you position an element relatively, you arranged it to its normal place. I know it might end up being confusing to know how to place element fairly to itself. Nevertheless, one major reason to use relative placement can be it restricts child elements positioning. So when a mother or father element will be relatively placed, you obtain more handle over its child elements and after that you can move on to place child components totally which jobs the components comparative to its first positioned parent element.
Relaxation of the component of styling is certainly self-explanatory. Use “.thumb” course to manage width and elevation of your video clip thumbnail.
Placing collectively into HANA Fog up Website
Allow us today place this together into our HANA Fog up Portal site. First, we will publish custom picture into “Documents” area. To upload an image, proceed to HANA Cloud Website gt; Documents and develop a new folder therefore that you can reveal content positioned in this foIder. Upload your custom made thumbnail here and use “Share Link” function to obtain the hyperlink to your custom image. Use this hyperlink in Code markup so that you can obtain your own image right here.
Now, “Edit” the site you desire to include this Code to and include an Code golf widget.
As soon as placed on the design board, just upload Code and you are carried out!
I am sure a great deal of people will possess this requirement while exhibiting custom made videos publicly. Sadly, you cannot use HTML5 video tag right here to embed a video clip and make use of its “poster” real estate to give custom made thumbnail. This can be because we are usually embedding a video from streaming site YouTube. If you possess a video that is obtainable on your program, do not really use this option. Use Code5 Video tag and use its “Poster” property to established custom made thumbnail. However, for other of you who have got to embed movie from loading sites, this is certainly the best method to customize video screen in range with your organizational printing.