Opening google drive direct links with VLCKit

This forum is about all development around libVLC.
gerlich
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Nov 2016 09:26
VLC version: 3.0.0
Operating System: Mac OS, IOS, TVOS

Opening google drive direct links with VLCKit

Postby gerlich » 12 Feb 2017 08:55

Hey,

Reposting this at the development forum as I think it's more suitable.

I have some links to private files on google drive.
They look like this:

Code: Select all

https://r9---sn-aigllnee.googlevideo.com/videoplayback?id=caff1b9d29dd40aa&itag=37&source=webdrive&begin=0&requiressl=yes&mm=30&mn=sn-aigllnee&ms=nxu&mv=u&nh=IgpwcjAyLmxocjI1KgkxMjcuMC4wLjE&pl=24&sc=yes&mime=video%2Fmp4&lmt=1486254066109990&mt=1486364288&ip=152.62.109.216&ipbits=8&expire=1486393137&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,nh,pl,sc,mime,lmt&signature=855695EAA2EB836FDD46D794CDA9DB3AFFDA9257.50BE46148FE04903E2BE406F27E3A2A6A8544EAE&key=ck2
This is an expired link (I have them generated each time) so it won't open for you.

When I try to open them with my application using vlckit, I get this:

Code: Select all

2017-02-06 09:00:55.089 MyApp[85695:7364595] Creating an input for 'videoplayback?id=caff1b9d29dd40aa&itag=37&source=webdrive&begin=0&requiressl=yes&mm=30&mn=sn-aigllnee&ms=nxu&mv=u&nh=IgpwcjAyLmxocjI1KgkxMjcuMC4wLjE&pl=24&sc=yes&mime=video/mp4&lmt=1486254066109990&mt=1486364288&ip=152.62.109.216&ipbits=8&expire=1486393137&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,nh,pl,sc,mime,lmt&signature=855695EAA2EB836FDD46D794CDA9DB3AFFDA9257.50BE46148FE04903E2BE406F27E3A2A6A8544EAE&key=ck2' 2017-02-06 09:00:55.090 MyApp[85695:7364596] using timeshift granularity of 50 MiB 2017-02-06 09:00:55.092 MyApp[85695:7364596] using default timeshift path 2017-02-06 09:00:55.092 MyApp[85695:7364596] `https://r9---sn-aigllnee.googlevideo.com/videoplayback?id=caff1b9d29dd40aa&itag=37&source=webdrive&begin=0&requiressl=yes&mm=30&mn=sn-aigllnee&ms=nxu&mv=u&nh=IgpwcjAyLmxocjI1KgkxMjcuMC4wLjE&pl=24&sc=yes&mime=video%2Fmp4&lmt=1486254066109990&mt=1486364288&ip=152.62.109.216&ipbits=8&expire=1486393137&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,nh,pl,sc,mime,lmt&signature=855695EAA2EB836FDD46D794CDA9DB3AFFDA9257.50BE46148FE04903E2BE406F27E3A2A6A8544EAE&key=ck2' gives access `https' demux `' path `r9---sn-aigllnee.googlevideo.com/videoplayback?id=caff1b9d29dd40aa&itag=37&source=webdrive&begin=0&requiressl=yes&mm=30&mn=sn-aigllnee&ms=nxu&mv=u&nh=IgpwcjAyLmxocjI1KgkxMjcuMC4wLjE&pl=24&sc=yes&mime=video%2Fmp4&lmt=1486254066109990&mt=1486364288&ip=152.62.109.216&ipbits=8&expire=1486393137&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,nh,pl,sc,mime,lmt&signature=855695EAA2EB836FDD46D794CDA9DB3AFFDA9257.50BE46148FE04903E2BE406F27E3A2A6A8544EAE&key=ck2' 2017-02-06 09:00:55.093 MyApp[85695:7364596] specified demux: any 2017-02-06 09:00:55.093 MyApp[85695:7364596] creating demux: access='https' demux='any' location='r9---sn-aigllnee.googlevideo.com/videoplayback?id=caff1b9d29dd40aa&itag=37&source=webdrive&begin=0&requiressl=yes&mm=30&mn=sn-aigllnee&ms=nxu&mv=u&nh=IgpwcjAyLmxocjI1KgkxMjcuMC4wLjE&pl=24&sc=yes&mime=video%2Fmp4&lmt=1486254066109990&mt=1486364288&ip=152.62.109.216&ipbits=8&expire=1486393137&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,nh,pl,sc,mime,lmt&signature=855695EAA2EB836FDD46D794CDA9DB3AFFDA9257.50BE46148FE04903E2BE406F27E3A2A6A8544EAE&key=ck2' file='(null)' 2017-02-06 09:00:55.094 MyApp[85695:7364596] looking for access_demux module matching "https": 3 candidates 2017-02-06 09:00:55.094 MyApp[85695:7364596] no access_demux modules matched 2017-02-06 09:00:55.094 MyApp[85695:7364596] creating access: https://r9---sn-aigllnee.googlevideo.com/videoplayback?id=caff1b9d29dd40aa&itag=37&source=webdrive&begin=0&requiressl=yes&mm=30&mn=sn-aigllnee&ms=nxu&mv=u&nh=IgpwcjAyLmxocjI1KgkxMjcuMC4wLjE&pl=24&sc=yes&mime=video%2Fmp4&lmt=1486254066109990&mt=1486364288&ip=152.62.109.216&ipbits=8&expire=1486393137&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,nh,pl,sc,mime,lmt&signature=855695EAA2EB836FDD46D794CDA9DB3AFFDA9257.50BE46148FE04903E2BE406F27E3A2A6A8544EAE&key=ck2 2017-02-06 09:00:55.095 MyApp[85695:7364596] looking for access module matching "https": 20 candidates 2017-02-06 09:00:55.095 MyApp[85695:7364596] looking for tls client module matching "any": 1 candidates 2017-02-06 09:00:55.095 MyApp[85695:7364596] open st client 2017-02-06 09:00:55.096 MyApp[85695:7364596] using tls client module "securetransport" 2017-02-06 09:00:55.096 MyApp[85695:7364597] resolving r9---sn-aigllnee.googlevideo.com ... 2017-02-06 09:00:55.099 MyApp[85695:7364597] connecting to r9---sn-aigllnee.googlevideo.com port 443 ... 2017-02-06 09:00:55.177 MyApp[85695:7364596] HTTP connection failure 2017-02-06 09:00:55.177 MyApp[85695:7364596] close secure transport client 2017-02-06 09:00:55.177 MyApp[85695:7364596] no access modules matched 2017-02-06 09:00:55.178 MyApp[85695:7364596] cannot access https://r9---sn-aigllnee.googlevideo.com/videoplayback?id=caff1b9d29dd40aa&itag=37&source=webdrive&begin=0&requiressl=yes&mm=30&mn=sn-aigllnee&ms=nxu&mv=u&nh=IgpwcjAyLmxocjI1KgkxMjcuMC4wLjE&pl=24&sc=yes&mime=video%2Fmp4&lmt=1486254066109990&mt=1486364288&ip=152.62.109.216&ipbits=8&expire=1486393137&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,nh,pl,sc,mime,lmt&signature=855695EAA2EB836FDD46D794CDA9DB3AFFDA9257.50BE46148FE04903E2BE406F27E3A2A6A8544EAE&key=ck2 2017-02-06 09:00:55.178 MyApp[85695:7364596] Your input can't be opened 2017-02-06 09:00:55.178 MyApp[85695:7364596] VLC is unable to open the MRL 'https://r9---sn-aigllnee.googlevideo.com/videoplayback?id=caff1b9d29dd40aa&itag=37&source=webdrive&begin=0&requiressl=yes&mm=30&mn=sn-aigllnee&ms=nxu&mv=u&nh=IgpwcjAyLmxocjI1KgkxMjcuMC4wLjE&pl=24&sc=yes&mime=video%2Fmp4&lmt=1486254066109990&mt=1486364288&ip=152.62.109.216&ipbits=8&expire=1486393137&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,nh,pl,sc,mime,lmt&signature=855695EAA2EB836FDD46D794CDA9DB3AFFDA9257.50BE46148FE04903E2BE406F27E3A2A6A8544EAE&key=ck2'. Check the log for details. 2017-02-06 09:00:55.184 MyApp[85695:7364598] removing module "audiounit_ios"

I've searched the forums and found answers about youtube links, youtube lua files and so on. Nothing matches my scenario.
Now, the thing is the same link opens in the VLC app on the appleTV, so it must be something I'm doing wrong.
Please advise.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Opening google drive direct links with VLCKit

Postby Jean-Baptiste Kempf » 19 Feb 2017 20:34

2017-02-06 09:00:55.177 MyApp[85695:7364596] HTTP connection failure

That's weird. Did you not package all the same plugins as VLC?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

gerlich
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Nov 2016 09:26
VLC version: 3.0.0
Operating System: Mac OS, IOS, TVOS

Re: Opening google drive direct links with VLCKit

Postby gerlich » 19 Feb 2017 21:15

I built the vlckit by running buildMobile.sh script with -tfb switches.
Didn't change anything.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Opening google drive direct links with VLCKit

Postby Jean-Baptiste Kempf » 20 Feb 2017 09:45

It's possible that this uses a newer libVLC and that we broke the HTTP links?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

gerlich
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Nov 2016 09:26
VLC version: 3.0.0
Operating System: Mac OS, IOS, TVOS

Re: Opening google drive direct links with VLCKit

Postby gerlich » 20 Feb 2017 15:15

I used the dec. 1st commit 2453a955435b9cae2c1637274416a4841ce66909 if that's what you're asking.
Let me know if there's something else you need to debug this...

pistachiator
New Cone
New Cone
Posts: 1
Joined: 07 Mar 2017 17:48

Re: Opening google drive direct links with VLCKit

Postby pistachiator » 07 Mar 2017 17:50

Is there an update to this? I have a similar issue trying to access even the most simple of HLS playlists. Logs below.

Code: Select all

2017-03-07 17:07:29.627263 Cocoon[12981:3418869] VLC media player - 3.0.0-git Vetinari 2017-03-07 17:07:29.627453 Cocoon[12981:3418869] Copyright © 1996-2017 the VideoLAN team 2017-03-07 17:07:29.627566 Cocoon[12981:3418869] revision 2.2.0-git-10973-gaa01abe 2017-03-07 17:07:29.628209 Cocoon[12981:3418869] configured with /Users/Tim/Dev/VLCKit/libvlc/vlc/configure '--prefix=/Users/Tim/Dev/VLCKit/libvlc/vlc/install-iPhoneOS/arm64' '--host=aarch64-apple-darwin14' '--with-contrib=/Users/Tim/Dev/VLCKit/libvlc/vlc/contrib/iPhone-aarch64-apple-darwin14-aarch64' '--enable-static' '--disable-debug' '--enable-dvbpsi' '--enable-avcodec' '--disable-vpx' '--enable-neon' '--disable-macosx' '--disable-macosx-qtkit' '--disable-macosx-vlc-app' '--disable-macosx-avfoundation' '--disable-audioqueue' '--disable-shared' '--enable-opus' '--disable-faad' '--disable-lua' '--disable-a52' '--enable-fribidi' '--disable-qt' '--disable-skins2' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--disable-httpd' '--disable-nls' '--disable-sse' '--disable-notify' '--enable-live555' '--enable-realrtsp' '--enable-swscale' '--disable-projectm' '--enable-libass' '--enable-libxml2' '--disable-goom' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-libva' '--disable-gme' '--disable-tremor' '--enable-vorbis' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-mtp' '--enable-ogg' '--enable-speex' '--enable-theora' '--enable-flac' '--disable-screen' '--enable-freetype' '--enable-taglib' '--disable-mmx' '--disable-addonmanagermodules' '--disable-mad' 'host_alias=aarch64-apple-darwin14' 'CC=xcrun clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0' 'LDFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/lib -arch arm64 -Wl,-ios_version_min,7.0' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0' 'CPP=xcrun cc -E' 'CXX=xcrun clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -arch arm64 -O3 -g -miphoneos-version-min=7.0' 'OBJC=xcrun clang' 'OBJCFLAGS=-O3 -g' 'CCAS=gas-preprocessor.pl xcrun clang' 'CXXCPP=xcrun c++ -E' 2017-03-07 5:07:29 pm.635 [3418869] VLCController: VLCController created with URL: https://mosaic.cocoon.life/playlist.m3u8?src=https://s3-eu-west-1.amazonaws.com/arthur-production-storage/mvp-user/bb30f155-6fe6-4f17-ad5a-4d4cfef08a87/1488906439239653120:STREAM_REQUEST/playlist.m3u8&auth=MDAyMWxvY2F0aW9uIGZsdXR0ZXIuY29jb29uLmxpZmUKMDAxY2lkZW50aWZpZXIgZmx1dHRlcjowMDAxCjAwMmFjaWQgdGltZSA8IDIwMTctMDMtMDhUMTY6Mzc6MTkuMDY4NzgzCjAwM2JjaWQgY29jb29uX2d1aWQgPSBiYjMwZjE1NS02ZmU2LTRmMTctYWQ1YS00ZDRjZmVmMDhhODcKMDAyZnNpZ25hdHVyZSCV0-qxcqT-oOWIbPDl8a3DRAhy8m_ockVWEY2Ph6FdZQo 2017-03-07 5:07:29 pm.635 [3418869] VideoStreamClient: Stream started and delegate called 2017-03-07 5:07:29 pm.635 [3418869] VLCController: VideoPlayer change state to buffering due to not recieving a mediaPlayerTime in 2s 2017-03-07 5:07:29 pm.635 [3418869] VLCController: VLC can only get a snapshot if it has video tracks. Skipping. 2017-03-07 5:07:29 pm.636 [3418869] VideoPlayer: New videoPlayer state: 1 2017-03-07 17:07:29.638635 Cocoon[12981:3419020] Creating an input for 'prog_index.m3u8' 2017-03-07 17:07:29.641120 Cocoon[12981:3419021] using timeshift granularity of 50 MiB 2017-03-07 17:07:29.641346 Cocoon[12981:3419021] using default timeshift path 2017-03-07 17:07:29.641783 Cocoon[12981:3419021] `https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear1/prog_index.m3u8' gives access `https' demux `any' path `devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear1/prog_index.m3u8' 2017-03-07 17:07:29.642409 Cocoon[12981:3419021] creating demux: access='https' demux='any' location='devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear1/prog_index.m3u8' file='(null)' 2017-03-07 17:07:29.642813 Cocoon[12981:3419021] looking for access_demux module matching "https": 3 candidates 2017-03-07 17:07:29.642961 Cocoon[12981:3419021] no access_demux modules matched 2017-03-07 17:07:29.643323 Cocoon[12981:3419021] creating access: https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear1/prog_index.m3u8 2017-03-07 17:07:29.643690 Cocoon[12981:3419021] looking for access module matching "https": 21 candidates 2017-03-07 17:07:29.644379 Cocoon[12981:3419021] looking for tls client module matching "any": 1 candidates 2017-03-07 17:07:29.644584 Cocoon[12981:3419021] open st client 2017-03-07 17:07:29.645152 Cocoon[12981:3419021] using tls client module "securetransport" 2017-03-07 17:07:29.651941 Cocoon[12981:3419022] resolving devimages.apple.com.edgekey.net ... 2017-03-07 17:07:29.699992 Cocoon[12981:3419022] connecting to devimages.apple.com.edgekey.net port 443 ... 2017-03-07 17:07:29.739361 Cocoon[12981:3419021] HTTP connection failure 2017-03-07 17:07:29.739744 Cocoon[12981:3419021] close secure transport client 2017-03-07 17:07:29.740097 Cocoon[12981:3419021] no access modules matched 2017-03-07 17:07:29.740328 Cocoon[12981:3419021] Your input can't be opened 2017-03-07 17:07:29.740523 Cocoon[12981:3419021] VLC is unable to open the MRL 'https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear1/prog_index.m3u8'. Check the log for details.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests