How to get file directory from webpage - javascript

currently i am creating chrome extension (video donwloader) and I am willing to get the video path
http://<IP ADDRESS>/video.mp4 from webpage where video is. and also in some websites they are using iframes to display the video and i also need to get the video from that url of iframe, here is one scenario: website is using another website for the video for example: example.com has a video on link example.com/video/ID/312351 and video source on videos.example.com/id/31312/video.mp4 and secondexample.com is using example.com/video/ID/312351 url in iframe to get the video, and when i am on secondexample.com i also need to get the video source (videos.example.com/id/31312/video.mp4) from example.com, Is this possible? and how. Thank You!

Related

how to observe embedded youtube video

I want to embed a youtube video on my own website and I want this youtube video not to be skipped in any way, but not to adjust its speed and to track the time it watches, but I could not find any source.
I tried to use the youtube iframe api, but I can't follow the stats without stopping or starting the youtube video there.
I would suggest that you should first download the video, and then put it onto your site through a <video> tag. The youtube iframe api is designed only for having videos that function exactly like they do on the youtube website, which includes the things you don't want.

Take screenshot of youtube video playing in iframe

I am embedding youtube on my web app and I want to take a screenshot of specific timestamp programmatically by js.
So that I can store images of in the DB.
I tried html2canvas but it is not working out, please help.

Embed YouTube Video as Background with No Ads

I know its said in Embed YouTube Video with No Ads that it is up to the content owner if ads are shown or not.
However, I think there must be a workaround if you use a YouTube video as background in HTML5.
I discovered this website http://www.lifealignmentor.com/ after checking the source code I realized its using this YouTube video. The video on YouTube has ads enabled. However on the website http://www.lifealignmentor.com/ I never saw the ads.
So is the website using a forbidden hack or is there actually a way to embed a YouTube video as background without seeing the ads?
I don't know if it helps, but I also found that the website is using the Onetone MageeWP Theme.

HTML Media Capture and video

I saw this link http://dev.w3.org/2009/dap/camera/ and I can upload video on my smartphone. But I need to show the video just after the user record.
It's exactly like the example 6 but with video, not image.
The project it's allow the user to record one or more video and use a framework like popcorn.js with own video, not youtube or other.
And the all without internet, in local webapp...
I'm a little lost ^^
Thank you !

Embedding HTML5 video in Tumblr (dashboard and blog)

Bit curios about the possibility to embed a custom HTML5 video player into Tumblr.
How it works now is basically that you put in an URL or embed code to Youtube or any other service and it'll load up the video and show it in the dashboard feed and on your blog.
I just checked with Vimeo, and in that case it seems like it fetches a vimeo iframe with the video (I guess it's their embed code) and inject it into the DOM when the play button is pressed.
Would it be possible to mimic this behaviour with a custom iframe of my own? Make Tumblr accept my own embed code (iframe based) that leads to a HTMl5 video and also serve up a preview image before the video is actually played.
So when I'd input for example, www.mydomain.com/video1 it would recognize it as a video and have it behave like any other video service out there.
Or would it otherwise be possible to do via their API?
Just to clarify: I would not want to use the Tumblr HTML5 video player, but a player of my own chosing.
The Tumblr dashboard will only play video previews for Video Posts. Anything embed in a caption or body will not get the preview treatment.
AFAIK, the only way to get a custom video to have a preview would be for Tumblr to work with your own platform / API. Tumblr pulls in the preview thumbs when you make the Video Post, if they support the platform.
There is a list of tested video platforms / providers here: Video Posts with Auto Thumbnail(Like in Facebook) in Tumblr.com
OK
So on this tumblr the 3 posts along the top are ones I have tried.
http://nativecitizenstest.tumblr.com/
First is a Video type post but simply passing the url to tumblr.
Second is a text post but passing custom embed html from vine (this included a script which I did not know would work).
Third is a text post with an iframe in that I hand coded.
I think metcalf seems to be flash video and I don't know if that is supported, but a little googling should tell us.

Categories