Page 1 of 1

Screen shot of youtube player content

PostPosted: Thu Dec 04, 2014 12:11 am
by arun.yegi_1
Hi,

I have a small POC which fetches youtube video from google(using youtube api) and plays in iFrame in html and i have deployed this on Emulator.
My requirement is to take a screenshot of the video being played using javascript.

Please help me out.

Regards,
Arun

Screen shot of youtube player content

PostPosted: Thu Dec 04, 2014 6:25 pm
by Support_STA
Hi Arun,

Each youtube video has 4 screenshots which are provided already and why don't you use it? Do you have any other purpose?

Regards.

Screen shot of youtube player content

PostPosted: Thu Dec 11, 2014 5:25 am
by arun.yegi_1
Hey thanks for the reply.
I know google gives thumbnail images.
But i want to take a screenshot for every 15 secs of a playing video so that i can send images to server where i can compare the images.
thats a different story.

Please let me know if there is any way out.

Thanks

Screen shot of youtube player content

PostPosted: Thu Feb 12, 2015 12:39 am
by contact.7_1
As far as I know you cannot take screenshot with JavaScript, unless you use HTML5 and its Canvas element.
It is possible to grab a frame from video - take a look at this http://html5multimedia.com/code/ch9/video-canvas-screenshot.html

I
think it should be possible with YT video streams as well.
Good luck