Preview video through Embed src? - php

I am working on a site where the admin inserts the embed code in the backend and the video is played on the frontend. I want to ask if it is possible to have preview(multiple images) for the video as the video is not in the database or on the server, we are just using the embed src for the video.
for example:
<iframe src="**abc.com/embed**" some parameters></iframe>
Now i copied the src and inserted into the database. I want to have the preview of the video? Is it possible..???
I hope i have cleared myself.
Help will be appreciated.

Related

Facebook/Twitter Share link: Only Image or Youtube video from Post content

I have a Gutenberg Post Content to Slick Slider with YT videos and images in the Slider. The goal is to share ONLY a YT video or an Image that is attached in each post Slide. I have worked around and ended with two shared links: for YT videos and Images. They work fine, but as you can figure it out... there are 2 shared links...
Facebook Share Links: Youtube video / Images
Facebook
Facebook
Twitter Share Link: Youtube video / Images
Twitter
Twitter
How can I get a single shared link?. Is there any option to share only a YT video or an Image that is attached in each Slide?
Demo site: mouse over on Like button
Please let me know if you need me to clarify anything else and thanks in advance for taking a look.

Facebook like video uploader generate thumbnails before publish

Is there a jQuery plugin that could generate video preview thumbnails even before user uploads it? I notice that Facebook could do so but do not know any plugin that has the same functionality.
Try uploading a video on facebook, notice that even before you publish it or the progress bar is still in progress, preview images of the video are available already.
I tried searching the net and most answers pertain to installing ffmpeg having this as a reference.
I haven't tried it yet but looking into it, it seems that the video should be uploaded first before it could generate a thumbnail. But I what I want is a preview of the thumbnail to be generate BEFORE the video is uploaded (similar to facebook).
This is so that I have the transaction to select a video and generate a preview thumbnail at the same time even before the video is published on the server. Once I hit the "publish" button, it will upload the video to the server, upload/save generated preview thumbnail, save info to database at the same time.
I don't think you have to download a video and make its thumbnail. You can make a request via Facebook API to get it. You just have to precise that you want the attribute "picture" in the result; this attribute contains the path of the thumbnail of the video. You will find more explanation by following this link: https://developers.facebook.com/docs/graph-api/reference/v2.1/video/

Playing a video in JWPlayer through a video link in Drupal 7

Usually I have a video file field where I upload the video and configure display to be open with JWPlayer. It then opens as JWPlayer when I output it in the template (node.tpl.php)
But now the problem is that in some cases, I'll get a link like
http://www.mytest.com/videos/myvideo.mp4
which I want to play in JWPlayer too. Is it possible that I can play a video link directly in JWPlayer?
Thanks.

Video.js-Could not get thumbnail image of video automatically

I am using "video.js" based HTML5 tag to display video on my browser.But It can not grab the first frame of the video and show as thumbnail of video before the start up.So can anyone suggest me how can i get image automatically without use of "poster" tag in the video tag and pass the thumbnail path in the argument.Is it necessary to generate thumbnail of the video to show it?
thanks in advance..and please provide you valuable suggestions
As far as I know, VideoJS does not automatically extract a poster image. However, Dynamically using the first frame as poster in HTML5 video? shows you, how this can easily be acieved using Popcorn.js.

How to retrieve videos from server and play it onclick?

I am doing a tutorial website project. In this i hav a video player at the right side, and vertical menu at the left side of the page. I hav lots of videos to put in. I am trying to play the videos in the same video player in the same page. How to retrieve videos from database and play it onclick from menu?
I am using video tag for video player. Also i wanted to display the video name at th bottom of the video player in the page, that changes for every videos. Like youtube website!!. I am using Wamp local server. Below is the code for single static video and video name.
<div class="video" align="right"><video id="movie" class="video" width="800" height="520" title="franklin" data-uid="movie" controls poster="images/LMS.JPG"><source src="videos/Learning Management System.mp4" /></video></div>
<div id="video_heading"><p><b>Introduction to Learning Management System</b></p></div>
How to make use of database system to retrieve the video and name of the video using PHP. Please help. I am desperately in need of someone's help.
Use AJAX to send a request from JavaScript to your server to retrieve the correct video information from the database and return it in a format that you can use, like JSON. Then, using the response data, update your video object and other DOM elements accordingly.

Categories