An Angular responsive image fullscreen viewer. Also support youtube and mp4 video urls.
Features!
- Responsive
- captures swipes from phones and tablets
- Compatible with Angular Universal
- captures keyboard next/previous arrow key event for lightbox image move
- Support Images (jpeg, jpg, gif, png and Base64-String), Youtube url and MP4 video (url and Base64-String)
Working Demo: https://angular-bkosu5.stackblitz.io/
The problem of HTML5 video controls in full-screen mode. While working on a custom HTML5 video framework lately, I stumbled upon an issue which a lot of designers and developers stumble upon in this area. Instead of displaying the custom controls I was working on, native browser controls appeared on the video when it entered the full-screen mode. Thousands of Free Online Movies. The catalogs of free content on these platforms can be extensive. Tubi offers thousands of free movies and TV shows, all of it available for free, no subscription or credit card required. Vudu has a library of more than 150,000 movies. Many of these movies are available for purchase or rental. Now you can download online videos from anywhere on the web and save them with just one click with the downloader tool with the RealPlayer free video player. Install the RealPlayer desktop app, and you get an easy, one-click download option appearing at your command whenever you watch streaming video on Fire Fox or Internet Explorer.
Code example: https://stackblitz.com/edit/angular-bkosu5
npm install ng-image-fullscreen-view
Import module in your
app.module.ts
:Add component in your template file :
Add closeEventHanler and showFlag conditions in
your.component.ts
:ImageObject format
Image, Youtube and MP4 url’s object format
API Reference (optional) :
Name | Type | Data Type | Description | Default |
---|---|---|---|---|
images | @Input | Array | Images array. | |
imageIndex | @Input | number | Selected image index. | 0 |
show | @Input | boolean | Image fullscreen popup visiable flag. | false |
infinite | @Input | boolean | Infinite sliding images if value is true. | false |
videoAutoPlay | @Input | boolean | Auto play popup video | false |
showVideoControls | @Input | boolean | Hide Youtube and MP4 video controls if value is false | true |
direction | @Input | string | Set text direction. You can pass rtl / ltr / auto | ltr |
paginationShow | @Input | boolean | Display pagination at bottom. | false |
animationSpeed | @Input | number | By this user can set slider animation speed. Minimum value is 0.1 second and Maximum value is 5 second. | 1 |
arrowKeyMove | @Input | boolean | Disable slider and popup image left/right move on arrow key press event, if value is false | true |
close | @Output | n/a | Executes when click on close. | n/a |
prevImage | @Output | n/a | Executes when click on previous arrow. | n/a |
nextImage | @Output | n/a | Executes when click on next arrow. | n/a |
Click Video Full
Related posts:
Some vimeo.com videos have a download link that allows you to download the video as a file on your computer. If this is the case, use the normal method for inserting a local video file. YouTube videos do not have a download link (you may be able to download the video file from youtube by using a third-party service or program – check that this allowed by YouTube and by the owner). [Note: Check these tips for using video in PowerPoint presentations when deciding how to best use any video in your presentation.] For YouTube videos or when the video owner has not enabled the download on vimeo.com, you can still use the video in your PowerPoint presentation if the owner permits use in presentations and public viewing. The method in this article creates a hyperlink from an image on your PowerPoint slide that starts playing the video in a full browser window on top of the presentation. When the browser is closed after the video finishes, the PowerPoint presentation continues.
Advantages of this method:
- Does not require a video file to be downloaded or captured
- Allows video to be at as high a resolution as the owner uploaded it (some downloaders only download at lower resolutions)
- Easy for even inexperienced presenters to use
- Smaller file size since no embedded video
- Don’t need to worry about broken video file links
- Doesn’t rely on specific codecs of video files; if it plays in a browser, it will play during the presentation
- Works when you send the PowerPoint file to others since the video is not a linked file
- Works on both Windows and Mac platforms
- Works on all versions of PowerPoint
Disadvantages of this method:
- Requires an internet connection during the presentation fast enough to stream video from viemo.com or youtube.com
- Viewers see browser toolbars & other parts of the browser
- Viewers see the operating system task bar
- May see ads on videos if the service allows them on that video
- May see suggested videos after your video finishes playing
- May take a few seconds for the video to start playing as the service buffers the video
- Video may pause if the network is overloaded or the Internet is slow
Here are the steps to link to the video from a slide and have it play when the link is activated.
Step 1: Go to the web page on vimeo.com or youtube.com with the video you want to insert
Step 2: Take a screen capture of the video page (use PrtScrn in Windows or Cmd+Shift+3 in Mac). Insert the screen capture on your slide. Crop the screen capture so just the video frame is shown. Make the image as large as you want on the slide. Add text to give credit to the owner of the video.
Click 2006 Full Movie
Step 3: Select the image and add a hyperlink to the image.
For videos on vimeo.com: The hyperlink web address is http://player.vimeo.com/video/<vidnum>?autoplay=1 where <vidnum> is the video number on vimeo. You can find this number by clicking on the Share button on the vimeo video page. It is after the “vimeo.com/”. This link, when activated, will open a browser window and start playing the video in the full browser window.
For videos on youtube.com: The hyperlink web address is http://www.youtube.com/embed/<vidcode>?autoplay=1 where <vidcode> is the video code on youtube. You can find this code by clicking on the Share this video link on the youtube video page. It is after the “youtu.be/”. This link, when activated, will open a browser window and start playing the video in the full browser window.
Step 4: Playing the video in the presentation
Click Video Full Movie
Before starting the presentation, open your default browser and make it full screen. Test that you can access a website so you know the Internet connection is working. Close your browser so it will open full screen when opened with the hyperlink.
In Slide Show mode, to play the video, activate the hyperlink on the image by clicking on it with your mouse or by pressing Tab, then Enter. The browser will open on top of the presentation and the video will start playing full sized in the browser. (If you double-click on the image, you may start the video playing behind the PowerPoint presentation. If this happens, use Alt+Tab in Windows to switch the active application to the browser window with the video.) If you want to remove the browser scroll bars and toolbars, you can press F11 in Internet Explorer or Chrome. The only way to remove the task bar at the bottom of the screen is to set it to automatically hide itself in the operating system.
When the video has finished playing, close the browser using the red X or using Alt+F4 in Windows. You will return to the slide that started the video. You are now back in the presentation.
Note: This method uses the embed code provided by vimeo.com and youtube.com at the time this article was written in February 2014. The sites may change these codes at any time, which may break this method. This method may work in other presentation software, but has only been tested in PowerPoint.
For those who don’t mind getting a little more technical with PowerPoint, John Wilson has this tutorial on how to embed a video from Vimeo or YouTube into a slide as a Flash object.
Click Video Full Movie
Dave Paradi has over twenty-two years of experience delivering customized training workshops to help business professionals improve their presentations. He has written ten books and over 600 articles on the topic of effective presentations and his ideas have appeared in publications around the world. His focus is on helping corporate professionals visually communicate the messages in their data so they don’t overwhelm and confuse executives. Dave is one of fewer than ten people in North America recognized by Microsoft with the Most Valuable Professional Award for his contributions to the Excel, PowerPoint, and Teams communities. His articles and videos on virtual presenting have been viewed over 3.5 million times and liked over 14,000 times on YouTube.