Accepting invalid SSL certificate
I am trying to connect to rtmp://PublicIP:1935/live/ZB9FbCX_F09FC27F8CFF_1 using MobileVLCKit 3.1.5 Please find the logs attached. logs2.txt
The IP camera site is using a self signed SSL certificate. Chrome and Safari throw a NET::ERR_CERT_AUTHORITY_INVALID error and let me connect to the camera when I select 'Proceed with unsafe connection'
This post - https://forum.videolan.org/viewtopic.php?t=134788 - from the forum says this is handled in VLC 3.0. How do I get MobileVLCKit 3.1. to use VLC 3.0? Will that solve the issue?
Thanks!
2018-11-05 14:46:04.552207+0530 vlckitSwiftSample[837:268770] creating player instance using shared library
2018-11-05 14:46:04.594426+0530 vlckitSwiftSample[837:268770] creating player instance using shared library
2018-11-05 14:46:04.617932+0530 vlckitSwiftSample[837:268770] <CATransformLayer: 0x17023a700> - changing property contentsGravity in transform-only layer, will have no effect
2018-11-05 14:46:04.619606+0530 vlckitSwiftSample[837:268770] VLC media player - 3.0.4 Vetinari
2018-11-05 14:46:04.619651+0530 vlckitSwiftSample[837:268770] Copyright © 1996-2018 the VideoLAN team
2018-11-05 14:46:04.619670+0530 vlckitSwiftSample[837:268770] revision 3.0.4-21-gc6718efd1a
2018-11-05 14:46:04.619697+0530 vlckitSwiftSample[837:268770] configured with /Users/jenkins/workspace/vlc-release/macosx/vlc-release-MobileVLCKit/libvlc/vlc/configure '--prefix=/Users/jenkins/workspace/vlc-release/macosx/vlc-release-MobileVLCKit/libvlc/vlc/install-iPhoneOS/arm64' '--host=aarch64-apple-darwin14' '--with-contrib=/Users/jenkins/workspace/vlc-release/macosx/vlc-release-MobileVLCKit/libvlc/vlc/contrib/iPhone-aarch64-apple-darwin14-aarch64' '--enable-static' '--enable-dvbpsi' '--enable-avcodec' '--disable-macosx' '--disable-macosx-qtkit' '--disable-macosx-avfoundation' '--disable-shared' '--enable-opus' '--disable-faad' '--disable-lua' '--disable-a52' '--enable-fribidi' '--disable-qt' '--disable-skins2' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--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-sparkle' '--disable-addonmanagermodules' '--disable-mad' 'host_alias=aarch64-apple-darwin14' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.0 -DNDEBUG' 'LDFLAGS=-arch arm64 -Wl,-ios_version_min,8.0' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.0' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.0' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-O3 -g' 'CCAS=gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'PKG_CONFIG_PATH='
2018-11-05 14:46:04.620963+0530 vlckitSwiftSample[837:268770] VLC media player - 3.0.4 Vetinari
2018-11-05 14:46:04.621029+0530 vlckitSwiftSample[837:268770] Copyright © 1996-2018 the VideoLAN team
2018-11-05 14:46:04.621066+0530 vlckitSwiftSample[837:268770] revision 3.0.4-21-gc6718efd1a
2018-11-05 14:46:04.621094+0530 vlckitSwiftSample[837:268770] configured with /Users/jenkins/workspace/vlc-release/macosx/vlc-release-MobileVLCKit/libvlc/vlc/configure '--prefix=/Users/jenkins/workspace/vlc-release/macosx/vlc-release-MobileVLCKit/libvlc/vlc/install-iPhoneOS/arm64' '--host=aarch64-apple-darwin14' '--with-contrib=/Users/jenkins/workspace/vlc-release/macosx/vlc-release-MobileVLCKit/libvlc/vlc/contrib/iPhone-aarch64-apple-darwin14-aarch64' '--enable-static' '--enable-dvbpsi' '--enable-avcodec' '--disable-macosx' '--disable-macosx-qtkit' '--disable-macosx-avfoundation' '--disable-shared' '--enable-opus' '--disable-faad' '--disable-lua' '--disable-a52' '--enable-fribidi' '--disable-qt' '--disable-skins2' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--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-sparkle' '--disable-addonmanagermodules' '--disable-mad' 'host_alias=aarch64-apple-darwin14' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.0 -DNDEBUG' 'LDFLAGS=-arch arm64 -Wl,-ios_version_min,8.0' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.0' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -arch arm64 -O3 -g -miphoneos-version-min=8.0' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-O3 -g' 'CCAS=gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'PKG_CONFIG_PATH='
2018-11-05 14:46:04.639628+0530 vlckitSwiftSample[837:268770] creating player instance using shared library
2018-11-05 14:46:04.639948+0530 vlckitSwiftSample[837:268770] option marq-color does not exist
2018-11-05 14:46:04.640068+0530 vlckitSwiftSample[837:268770] option marq-opacity does not exist
2018-11-05 14:46:04.640143+0530 vlckitSwiftSample[837:268770] option marq-position does not exist
2018-11-05 14:46:04.640211+0530 vlckitSwiftSample[837:268770] option marq-refresh does not exist
2018-11-05 14:46:04.640278+0530 vlckitSwiftSample[837:268770] option marq-size does not exist
2018-11-05 14:46:04.640344+0530 vlckitSwiftSample[837:268770] option marq-timeout does not exist
2018-11-05 14:46:04.640410+0530 vlckitSwiftSample[837:268770] option marq-x does not exist
2018-11-05 14:46:04.640475+0530 vlckitSwiftSample[837:268770] option marq-y does not exist
2018-11-05 14:46:04.640733+0530 vlckitSwiftSample[837:268770] creating audio output
2018-11-05 14:46:04.640826+0530 vlckitSwiftSample[837:268770] looking for audio output module matching "any": 4 candidates
2018-11-05 14:46:04.643246+0530 vlckitSwiftSample[837:268770] option audiounit_ios-gain does not exist
2018-11-05 14:46:04.643357+0530 vlckitSwiftSample[837:268770] using audio output module "audiounit_ios"
2018-11-05 14:46:04.644053+0530 vlckitSwiftSample[837:268770] keeping audio output
2018-11-05 14:46:04.644171+0530 vlckitSwiftSample[837:268770] creating player instance using shared library
2018-11-05 14:46:04.644386+0530 vlckitSwiftSample[837:268770] option marq-color does not exist
2018-11-05 14:46:04.644458+0530 vlckitSwiftSample[837:268770] option marq-opacity does not exist
2018-11-05 14:46:04.644526+0530 vlckitSwiftSample[837:268770] option marq-position does not exist
2018-11-05 14:46:04.644592+0530 vlckitSwiftSample[837:268770] option marq-refresh does not exist
2018-11-05 14:46:04.644656+0530 vlckitSwiftSample[837:268770] option marq-size does not exist
2018-11-05 14:46:04.644720+0530 vlckitSwiftSample[837:268770] option marq-timeout does not exist
2018-11-05 14:46:04.644897+0530 vlckitSwiftSample[837:268770] option marq-x does not exist
2018-11-05 14:46:04.644964+0530 vlckitSwiftSample[837:268770] option marq-y does not exist
2018-11-05 14:46:04.645199+0530 vlckitSwiftSample[837:268770] creating audio output
2018-11-05 14:46:04.645284+0530 vlckitSwiftSample[837:268770] looking for audio output module matching "any": 4 candidates
2018-11-05 14:46:04.645659+0530 vlckitSwiftSample[837:268770] option audiounit_ios-gain does not exist
2018-11-05 14:46:04.645790+0530 vlckitSwiftSample[837:268770] using audio output module "audiounit_ios"
2018-11-05 14:46:04.646449+0530 vlckitSwiftSample[837:268770] keeping audio output
2018-11-05 14:46:04.648775+0530 vlckitSwiftSample[837:268770] <UIView: 0x13fd121a0; frame = (0 0; 320 568); autoresize = W+H; layer = <CALayer: 0x170223780>>'s window is not equal to <vlckitSwiftSample.StreamViewController: 0x13fd50030>'s view's window!
2018-11-05 14:46:04.650109+0530 vlckitSwiftSample[837:268770] removing module "audiounit_ios"
2018-11-05 14:46:04.651589+0530 vlckitSwiftSample[837:268770] removing module "audiounit_ios"
2018-11-05 14:46:19.538502+0530 vlckitSwiftSample[837:268897] Creating an input for 'rtmp://public ip:1935/live/ZB9FbCX_F09FC27F8CFF_1'
Playing
2018-11-05 14:46:19.543684+0530 vlckitSwiftSample[837:269047] using timeshift granularity of 50 MiB
2018-11-05 14:46:19.547222+0530 vlckitSwiftSample[837:269047] using default timeshift path
2018-11-05 14:46:19.547424+0530 vlckitSwiftSample[837:269047] `rtmp://public ip:1935/live/ZB9FbCX_F09FC27F8CFF_1' gives access `rtmp' demux `any' path `public ip:1935/live/ZB9FbCX_F09FC27F8CFF_1'
2018-11-05 14:46:19.547559+0530 vlckitSwiftSample[837:269047] creating demux: access='rtmp' demux='any' location='public ip:1935/live/ZB9FbCX_F09FC27F8CFF_1' file='(null)'
2018-11-05 14:46:19.547635+0530 vlckitSwiftSample[837:269047] looking for access_demux module matching "rtmp": 4 candidates
2018-11-05 14:46:19.547707+0530 vlckitSwiftSample[837:269047] no access_demux modules matched
2018-11-05 14:46:19.547790+0530 vlckitSwiftSample[837:269047] creating access: rtmp://public ip:1935/live/ZB9FbCX_F09FC27F8CFF_1
2018-11-05 14:46:19.552791+0530 vlckitSwiftSample[837:269047] looking for access module matching "rtmp": 18 candidates
2018-11-05 14:46:19.553402+0530 vlckitSwiftSample[837:269047] option quiet does not exist
2018-11-05 14:46:19.555772+0530 vlckitSwiftSample[837:269047] CPU flags: 0x00000068
[rtmp @ 0x13fd5cec0] Cannot open connection tcp://public ip:1935
2018-11-05 14:46:24.866338+0530 vlckitSwiftSample[837:269047] Failed to open rtmp://public ip:1935/live/ZB9FbCX_F09FC27F8CFF_1: Operation timed out
2018-11-05 14:46:24.866458+0530 vlckitSwiftSample[837:269047] no access modules matched
2018-11-05 14:46:24.866547+0530 vlckitSwiftSample[837:269047] Your input can't be opened
2018-11-05 14:46:24.866610+0530 vlckitSwiftSample[837:269047] VLC is unable to open the MRL 'rtmp://public ip:1935/live/ZB9FbCX_F09FC27F8CFF_1'. Check the log for details.
Switched to landscape
2018-11-05 14:46:29.755946+0530 vlckitSwiftSample[837:268770] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2018-11-05 14:46:29.757003+0530 vlckitSwiftSample[837:268770] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
Switched to portrait
2018-11-05 14:46:49.649969+0530 vlckitSwiftSample[837:268770] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2018-11-05 14:46:49.650066+0530 vlckitSwiftSample[837:268770] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
Switched to portrait
2018-11-05 14:46:51.278578+0530 vlckitSwiftSample[837:268770] Cannot snapshot view (<UIKeyboardImpl: 0x13fd203c0; frame = (0 0; 320 253); layer = <CALayer: 0x170226300>>) with afterScreenUpdates:NO, because the view is not in a window. Use afterScreenUpdates:YES.