How to Extract URL for KODI playlist - ios

I am trying to extract the URL to use in xbmc from a stream. The stream is live so there are no files being downloaded.Any guidance in the right direction would be greatly appreciated!

I'm not sure I understand the question but...you could get fiddler to trace the stream url.
And then save it as a .strm file or a m3u or pls list as shown here.

Related

Generating download link for youtube video with PHP but filename always saving as videoplayback.mp4

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.

Get Direct Youtube Downlaod Link

How can I manually extract the Youtube Download Link?
e.g:
I have this link: htps://www.youtube.com/watch?v=fLexgOxsZu0
I want to get this: http://r9---sn-aigllnez.googlevideo.com/videoplayback?mm=31&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cnh%2Cratebypass%2Csource%2Cupn%2Cexpire&mt=1411895530&id=o-AKzM1sExgAGdv0QN2N34ecTX7Vlwq-aee6o_sdj6Bg-k&expire=1411917209&upn=Et19mkCyt_U&fexp=927622%2C930666%2C931983%2C932404%2C934030%2C946023%2C947209%2C951912%2C952302%2C953801&nh=IgpwcjAyLmxocjE0KgkxMjcuMC4wLjE&key=yt5&ip=2a02%3A2498%3Ae000%3A85%3A225%3A90ff%3Afe67%3A97dc&itag=18&source=youtube&sver=3&mv=m&ratebypass=yes&initcwndbps=1296250&ms=au&ipbits=0&signature=7E977EA99135A34A09B780745FB4D4E7654160B2.F6234488D50CEFFFF741A7F30D0001034DD67D6D&title=Bruno+Mars+-+The+Lazy+Song+%5BOFFICIAL+VIDEO%5D
How can I get the second Link?
What is the working Download Link above and what did I exactly extract below?
Thanks a lot in advace
Sorry for my bad english
this will give you all download links in URL encoded form.
http://www.youtube.com/get_video_info?video_id=VIDEO ID GOES HERE

Getting AVPlayer CC/SAP List

I am trying to get a list of all the available closed captions and SAP assets for a given stream but I havent been able to find a way to do this.
I have tried outputting availableChapterLocales, availableMetadataFormats, and trackGroups which didnt result in anything.
When I set closedCaptionDisplayEnabled I see closed captions on the player, so I know that they are there somewhere.
Does anyone know how I can get this information?
Any help would be appreciated. Thanks.

Display Youtube channel

I'm looking for the best way to display a list of videos from a specific Youtube channel. Is it correct to parse the html data from the URL, or Apple won't approuve it? I also tried to use a UIWebView, but I can't get only the videos of the channel.
Any help is welcome
Parsing the html files seems like a really complicated and bad idea. Try if you can find something in YouTube's API.

xcode 4 stream video check

i am unable to solve this problem and i canĀ“t find any solution elsewhere. I am playing the streaming video from url. But want to check if the url contains any video. Does anyone know how? To be clear i do not want to download the video and then play it. And yes i am checking the internet connection before, so i know if thre is internet or no. Is there any possible way how to check this? i just have URL with String ...i tried it with connection, but the page is connectablebut is blank with no content....:(
Thanks a lot for answer!=)
Now your question didn't say what kind of video you're trying to view, but my guess for the reason the video is blank with no content would be because your iPhone (or simulator) doesn't know how to play video with the encoding that the page contains.
Also, what kind of URL are you using? does it start with the standard http:// scheme, or is it something else like rtmp:// or rtsp:// or audio:// or?
If the URL starts with only http://, the only way that I can think of to check for a video stream is to download the html source from that page and scan through it looking for stream protocols (such as the ones I've listed above).

Resources