I'm tyrying to create a youtube video downloader script for education purpose. Everything is working fine and link generating but the problem is. it is alway's saving the video as videoplayback.mp4 , But i want to save video as the title of youtube video. How can i do that any idea or knowledge will you share with me please ? Thanks in Advance :)
Currently this kind of link generating with my script:
https://r5---sn-ax8xaj5ggpxg-q5je.googlevideo.com/videoplayback?ipbits=0&signature=962BE0E0565BE4A1C47228B9915BCB8F1CFEB960.9F6BB2DB759AEA92819A21B1D7169934E2029F12&key=yt6&itag=18&ratebypass=yes&expire=1493475511&dur=866.382&pl=24&gir=yes&pcm2=yes&sparams=clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pcm2,pl,ratebypass,requiressl,source,upn,expire&beids=[9466594]&ip=103.250.70.10&lmt=1404765005406941&upn=3jfn7T_trrk&id=o-AIgDAd5Kx005dV22eO8I0kxdhqnMlelHM82MUR6361GG&ei=V0wEWdomgd6jA_7BiQg&initcwndbps=1491250&mn=sn-ax8xaj5ggpxg-q5je&mm=31&requiressl=yes&clen=17929313&mime=video/mp4&source=youtube&ms=au&mv=m&mt=1493453844
I'm adding title with this but it's not downloading video with the title
If you are using PHP to do all your work, then you can rename the file.
You should have the api request info for the video, such as name, id and such. So save the name in a variable and use it to rename the video.
Some basic info HERE to start from.
But you can find plenty of examples around renaming on Stackoverflow
You may user title tag at last of the your url. simply like:
https://r1---sn-npoe7ne6.googlevideo.com/videoplayback?c=xxxxxx&title=THIS+ONE+THING+COMPLETES+YOUR+ENTIRE+SALAH
Example: https://r1---sn-npoe7ne6.googlevideo.com/videoplayback?c=WEB&ei=PbcrXNPYN8j8DbS3g6gJ&signature=7158A95D1D19CE23E5927C5BA269FB93416BE9C3.3013C04B8A60583BE3976207ECC46104DA6231C5&ratebypass=yes&dur=78.135&itag=22&lmt=1546275183213302&key=cms1&expire=1546390430&beids=9466587&sparams=dur,ei,expire,id,ip,ipbits,itag,lmt,mime,mip,mm,mn,ms,mv,pl,ratebypass,requiressl,source&ipbits=0&pl=24&mime=video/mp4&id=o-APHRf9RA8ZFNEcdOCNFsj9WVumGp7BSSD5X3KXyvg0yF&source=youtube&txp=5432432&requiressl=yes&ip=107.178.194.200&fvip=1&extension=mp4&mip=119.30.38.95&redirect_counter=1&cm2rm=sn-bg5hxxo2ivox-q5jz7e&fexp=9466587,23763603&req_id=1d7d8e10b833a3ee&cms_redirect=yes&mm=29&mn=sn-npoe7ne6&ms=rdu&mt=1546368708&mv=m&title=THIS+ONE+THING+COMPLETES+YOUR+ENTIRE+SALAH
Now video will save with
THIS ONE THING COMPLETES YOUR ENTIRE SALAH.mp4
I think it will help you.
do you know if it's possible to use the Photos Framework to search for specific photo categories (auto-generated by Apple's ML) in iOS 10?
For example, I'd like to get all the photos with a car in them.
I haven't found any reference regarding this in Apple developer documentation. I have a feeling that this Photos app inbuilt feature we see in iOS10, hasn't been made public facing yet.
I did find this article covering the different categories someone found out: Photos ML categories
Hopefully, in WWDC this June we will have more access.
Kind regards,
Mukund
I'm working on an iOS Twitter app. Is anyone know how to extract media, like image, video, from TWTRTweet Class?
I used break point to check the content of TWTRTweet, there's the media content, but I don' t know how to get them.
If you know, please tell me. Thank you.
I've got the same issue, I found a way to access it :
[myTWTRTweetInstance valueForKey:#"media"]
Hope it will work for you ;)
I have an app that I am developing in Xcode which retrieves a RSS feed from my site and puts it into a table. Recently, I have created a new homepage with a featured article at the top, and I want to be able to have the image from the articles shown with it. Is there any way I can do this?
I am going to assume that in the RSS Feed there is a key called image or similar which its value will be an address pointing to the image.
After you load the article you should download each image asynchronously. For this I'd suggest you use NSOperation and NSOperationQueue.
There is a tutorial in Ray Wenderlich website which shows how to accomplish this.
You could use some kind of cache to avoid the images downloading each time.
I have to make a photo album for my mobile app.I am getting the images for photo album from local database using ajax call.I have used many of 'jquery mobile' plugin for it.but any one is not working.
so any one have good example and solution for it, please suggest me.
Thank's
What is the real advantage of using Ajax in a mobile photo-album?
Anyway I found some photogalleries (one or 2 not based on jquery-mobile):
http://tympanus.net/codrops/2010/05/27/awesome-mobile-image-gallery-web-app/
http://neteye.github.com/touch-gallery.html
http://www.photoswipe.com/
http://www.digicrafts.com.hk/components/JSMobilePhotoAlbum
Alternatively you can:
1. create the albums as list items.
2. in album view show thumbnails of photos
3. Click on thumbnail = show photo in fullscreen with a back button.
Good luck :)