Show only thumbnail of video on jsp page - javascript

I am trying to show only thumbnail of a video on jsp page without downloading video. Can anyone tell me is this possible or not? Or if possible what is solution for that?

Hi, If you already have posters of videos and you just want to show it in you jsp page then you should follow the link mentioned in comment by '#user3151627'. But if you want to create a thumbnail image directly from URL then you can use library like FFmpeg etc. For this please have a look on the below link:
https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
Hope you find it helpful..Thanks!!

Related

How to I add a button using content script in dailymotion video

I am making a dailymotion video download I need help from the community regarding one things that how can access the page url and append it like this https://savethevideo.net/#url=dailymotionlink.
Also, how can I put this link into a button on any dailymotion video.
this is the image explaining where exactly i want the link
Now, for clarity I telling you in points what i need.
How do I make link link the above.
How do I add the link I have made into the dailymotion video as a download button.

How to add a button on the embedded youtube video?

I want to add a button on the embedded youtube video on my website. So that a user can easily download that video. Now I just need to display a button on youtube video surface ,so that a user can click the button and do some job (about the video). Button will be like this:
Click Here to see
with simple html or javascript. Thank You.
Adding a button on top of your iframe is the simple part of the solution, and you will likely find this solution helpful. to match the styling, I'd recommend a site like http://css3buttongenerator.com/
As for the second part of this question, it is more advanced to write javascript to download a video, and if you'd like to avoid that, a simpler solution would be to redirect a user to a site like this. you could even go through the steps of downloading the video, and get the final link the site provides when it is ready to download.

Scrape auto-captions from youtube

Does anyone know the best way to scrape auto captions from youtube? I want to use the captions in another web application. I already can get captions that have been uploaded by the user by using: http://www.youtube.com/api/timedtext?v={VIDEO-ID}&lang=en
However, that request does not work for videos that only have auto generated captions. I was thinking one solution may be to automate clicking the transcript button on a youtube video and then grabbing the divs that contain the captions, but I am unsure exactly how to implement that. Any help would be appreciated.

Share URL of video in lightbox, instead of page's URL

I have a page with a series of links to YouTube videos that display in a lightbox when clicked. I'm using prettyPhoto.
On the lightbox are share links - Facebook, Twitter, and such. Unfortunately the default behaviour of these share links is to share the whole page - I want to share the URL of the YouTube video specifically.
The HTML output is customisable, as a variable in the prettyPhoto JS, so I think what I need to do is take the URL you've just clicked on (which obviously PP knows, because it can play the video) and stick it in the share link.
I'm not great at JS, so hopefully this is a relatively simple thing! I'm even hoping PP has a variable somewhere in the code already that stores this info, and I can somehow just add it into the HTML variable... but don't know how!
Thanks :)

Can HTML embed<> stop mp3s from automatically downloading?

I have lots of mp3s on my site that I want my friends to be able to play only- but I don't want them all downloading as soon as the page opens and would prefer them to only start downloading into the buffer if someone wants to play it- is this possible with the embed tag? I can't seem to find anything on Google so I am wondering if it's something I'll have to do in JavaScript or think of an HTML work around.
cheers
You can use javascript to construct the embeds and insert them into the DOM when a user clicks a button or something similar.
You will want to use the Object tag vs. the Embed tag for one, but that said, don't set the auto-play option and they won't load until requested.
If you want a really simple fix - don't embed the music files just have links to them. Then a user won't have the file download until they click on them (this is what blog.stackoverflow.com does for the podcasts...).
If you have time on your hands you can go for my solution... I created a separate html page for each song and used the embed tag on each. Then I just created links to the pages to open in a new window. I know... hack! But it works well, and the other related links go along with it in the new window for each song.
You could always try out Yahoo Media Player,
You just make link to the mp3s and they can play them at their own pace.
I have seen this used for PodCasts, and Playlists of Mp3s its very handy and free.
http://mediaplayer.yahoo.com/
First link
Second link
Third link
<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>
Simple :)
You can even add album art and manipulate the order the mp3s are added to the playlist thru simple html.
http://yahoomediaplayer.wikia.com/wiki/How_to_link

Categories