So I want to download a .mp3 file from a Youtube video. But YT only provides a .mp4 file (afaik).
So I have to convert the Video to a .mp3 File. But I don't want to download the video and convert it on device, since it takes too much data..
HERE was already mentioned that there is an API for it.. sadly it doesn't work anymore...
What I now found is this: https://youtube7.download/mini.php?id=HY_OIwideLg
But they load the .mp3 link (that I need) asynchronously. So I can't simply do URLSession.shared.dataTask(with:) because I will get the 'loading'-page only, with no link...
So the question is: How can I get the final loaded html site that returns from this php script?
Related
I'm trying my first CodeIgniter E-learning project that a teacher can upload their video file, and show it on lesson page.
The problem I was thinking about is if our customer has AVI video files and wants to upload them and show them on webpage, but most browsers do not support an AVI file fromat.
So how can I solve this problem?
I tried videojs but it doesn't work, Is there any suggestion?
I'm thinking about 2 options
Is there any plugin/software that can display AVI video and embed it on webpage?
Create convert process to convert AVI to MP4 => I think it will more complicated.
I found another option to do that: Use Google Drive API to upload and generate preview link to show. It worked!! If you guys have another effective way please let me know!
I think for embedding avi video. That is previously answered in how to embed an .AVI in html?
As for converting video. I think you can use something like ffmpeg or avconv for converting video in the backend to convert it first and then embed it or do it in Flash or in html video tag
I am new to php. I am having anchor links each will play a video in new tab after clicking on it.
So the problem is: If anyone knows the exact url of video, they can paste that url in browser and can watch the video, which should not happen. But currently this is the issue I am having.
I knew that we can do this by checking with sessions, but not understanding in a programmatic approach. I tried in other way using html5 video links too, but has no luck that way either.
Kindly provide me some great solution for my above issue.
Below are the video anchor links :
MyVideo1
MyVideo2
MyVideo3
Some time ago I programmed a webpage which can stream videos for logged in users. I didn't made a direct link reference to the video file, I put the video files in a private directory not accessible via browser which is readable by the PHP files. Then the links to the video files were all looking like this: <a href='stream.php?id=[id]'>Video</a> where the id is a randomly generated string which is saved and valid for a limited time. So when someone has this link to the stream.php script he cannot use it as the id will be invalid at a later time. And the php script just takes the mp4 file out of the private directory and puts it to output. It's also possible to make the stream.php script able to handle jumps during watching the video.
I have a website textscloud.com In this website i make the image with the PHP GD library. Here is a link to a demo:
In this page i allow the user to download the image on which text will pe printed. download link is like
This download.php file has a header for making the image with PHP GD Library and download the file like this
header("Content-type: image/png");
But google didn't crawl these images. Does anyone know the solution? I can't store these image in server.
You don't mention how you are feeding the beast, so I suggest you start by providing google a site map via their webmaster toolkit. You can specifically list the images that you want crawled. Google provides good help articles to get you going.
Google can't index images that are not stored permanently, I'm quite sure it can't even index images without context (i.e. which are not part of a describing/linking page).
You can try to:
Send a cache header to allow caching of the image.
Rewrite the actual url to someting like: http://textscloud.com/get_img/download/VkZaU1FtUXdNVVZWVkZKT1ZWUXdPUT09.png (should match your filename header)
Now, I am encountering some difficulties when I have to scan or crawl a video URL link. This web page is using the Flash-based technology to embed the video and stream video.
In order to understand more clearly, this is a link example:
http://vnexpress.net/gl/the-gioi/tu-lieu/2012/11/bai-phat-bieu-thua-nhan-that-bai-cua-romney/
The above link has below content (HTML code for Flash embedded video):
<div id="flashContent" style="text-align:center;width:100%;">
<span id="FlashPlayer79237" class="Normal" align="center">Bạn cần cài Flash Player để xem được Clip này.</span>
</div>
In this above article, there is a above video. However, when I tried to scan or crawl the content, the video could not run properly (because it could not load correct video link) and only show Install Flash Player plugin words (Certainly, the real web page needs to run some Javascript script or Flash script to obtain the real video link and stream this video for users)
Therefore, how can I render Flash and Javascript script through PHP or ASP.NET or Java? How can I get the correct video link when I crawl the web page? In this case, how can I obtain the correct Flash embedded video (HTML code)?
Thank you so much.
Before I answer, I want to make a note that if you need this information to do anything shady... please don't.
Disclaimer aside, for that particular site it is relatively easy.
The flashvars param (which is probably put there by Javascript) contains a value called xmlPath, which is a url encoded path (relative to their domain name). If you grab that and decode it, you get something like:
/Service/FlashVideo/PlayListVideoPage.asp?id=79237&f=108&t=1
which points to
http://vnexpress.net/Service/FlashVideo/PlayListVideoPage.asp?id=79237&f=108&t=1
If you read that, it's an XML file which contains the URL of the actual video.
I'm not quite sure where that value is generated from. If you needed to do this fully server-side, you could use a headless browser to process it.
actually i have to display ppt file in browser but it gives download option instead of displaying.so im using it to convert in pdf format so that browser display it and restrict user to download
why don't you use Google Docs or HTML5 presentation systems
Read more here
http://www.sitepoint.com/5-free-html5-presentation-systems/
you may alternatively try saving the ppt as image by File - Save as - Save as type and show the image in your browser.
NB: You can't restrict the user from downloading. Alternatively, you can show images to registered users.
You can restrict users from downloading if you will use flash player with external datasource like non-cacheable stream video. PDF and images can be freely downloaded even if you put it in "iframe", block the "mouseclick" and "drag-and-drop" events. By the way, if you can see it in a browser, then you already have copy of it in the system cache.
Sorry.