download video link for iPad/iPhone - javascript

how to create a download video link for iPad/iPhone, I am using something like this
<a id="wellcome-video-strem" href="iphone.m4v"><img src="imgButtonDownloadVideo.png" alt="Download Video" /></a>
but clicking on this link start to play video file in iPad.

Mobile Safari provides no means to save a file to the device's video library.
You might be able to store data using local storage, but I doubt you will be allowed to store enough data to make saving video feasible (and it would limit access to the saved data to your web site). If you took this approach then you would probably have to resort to generated a data: scheme URI in a <video> element to play it back.

iPads and iphones support HTML5, so i think you should go for this approach.
Here is a link http://www.w3schools.com/html5/tag_video.asp for HTML5 video tag.
my bad. i misunderstood your post.
There is no way to download a video to your iphone/iPad. You can link your customers to a free download manager on the Appstore to download files.

Related

HTML5 - play a video from web url but for security reason do not allow to download or copy the url

I have a BANK video file, and the file is confidential so they only give the link to a customer who can open it in Google chrome browser just to watch the video.
But that customer can only view it
(cant easily download it, or copy the main video link)
How to do that?
i tried but its very easy for anyone to copy the video URL how do you hide those and lock those?
You cannot. There are currently no DRM features for HTML 5 video (not that DRM features are all that effective anywhere that has implemented them).

Simple way to embed locally-hosted video using HTML, Javascript, or jQuery

I need to put a video in a webpage such that when the page opens, the video will be visible and start playing when the user clicks it. The video file is in .wmv format and stored on the same server that hosts the webpage. I read in some places that it's not easy to get embedded video to work across all browsers, so I'm looking for the simplest way to accomplish that, be it HTML, Javascript, or jQuery. I'd rather not convert the video file or store multiple copies of it if there is a way to not have to do that.
You will need to convert your video at least once due to WMV being a proprietary format (that, and as far as I know, the only way to play a WMV is through Windows Media Player activeX add-ins), which, sadly, means multiple copies if you want to deal with all navigators.
Your tool of choice in this is something like jwplayer (http://www.longtailvideo.com/jw-player/). MP4 works on some, while WEBM works on others, and thankfully, flash can read MP4.
Sébastien Renauld and Blazemonger said it.
You can't stream your wmv (windows media video) video across the web reliably because many browsers won't support it.
As Blazemonger said, uploading to YouTube or another video hosting site will take of this for you. They will also provide an embedded url for you which can be sent to all your friends.
Otherwise, as Sébastien Renauld pointed out, you'll need to convert the video into an h.264 .mp4 video AND another format like .ogv or .webM. mp4 is supported by most browsers but not FireFox, which is why you need a second format. Both .ogv and .webM are supported by FireFox.

javascript to discover .flv url from any embedded flash video?

Is there any javascript library out there that can find the url to the flash video file (.flv) on current page where it has an embedded flash video player? Ex. opens collegehumor.com video link, shows flash video url.
I have been looking through codes from chrome extensions which discovers flash video links for download but no dice.
Browser extensions can look into Flash internals and monitor your HTTP activity to see where data is being pulled from, however Javascript running in the document does not have permission to read either of those.
Some Flash apps expose some of their internals to Javascript, but they need to specifically write in that functionality, and for third parties this would be documented, presumably as an API. As far as I can tell, collegehumor doesn't provide any of that.

Is there any solution to embed "asx" to web audio player?

I am trying to embed this link into a web player so I can customize it page.
http://asx.abacast.com/996_amman-radio-32.asx
is there anyway to embed it into radio streaming web player?
The link you have posted is to an asx metadata file. These cannot be used as the source for any web player; they are for the Window Media Player to consume.
You could look inside the file. The streaming mount points noted in the file can be used as the source for an embedded Windows Media player, but this solution sucks because it will leave a blank space for platforms the don't support WMP (which is a lot).
If you are not the publisher/owner of this stream, it is generally considered to be bad form to embed it elsewhere.

Can I play iTunes song previews in an HTML page?

I need to show on my site search results from the iTunes Store, including previews of audio tracks.
I could use the iTUnes search api to return JSON info with cover image, title and other info. But for previews url I have problems (like following http://a5.mzstatic.com/us/r1000/007/Music/2f/18/8c/mzm.dsmmvsnn.aac.p.m4a).
It is not direct link to file but to some streaming server (not sure it is RTSP, network sniffer shows some other). It could not be dowloaded directly by browser, flash and HTML5 players don’t support it, and it couldn't be opened even using QuickTime Player. So I haven't found any way to embed it to site web page like I do for regular audio/video links.
The only program that could open such urls is iTunes. But as far as I could see it couldn't be used as embed/object in browser/web page.
Any ideas how it could be implemented?
As far as I understand iTunes not allows previews to be played for countries with no iTunes store.
So preview plays in Itunes application and not in quick time or any other player. So such case really difficult to catch (if it will not play in itunes app it will be clear and easy to detect, but in this case not).
After using proxy or just testing from other location all become working. And could be integrated using many flash players.

Categories

Resources