MobileVLCKit iOS Camera roll video "VLC is unable to open the MRL" error -


i have integrated mobilevlckit version: 2.2.2 in ios project. having trouble playing local videos camera roll. videos document directory , streaming working fine though.

i using code extract url of phasset object:

- (void)urlforphasset:(phasset*)phasset withcompletionblock:(void (^)(nsurl* url))completionblock{     [[phimagemanager defaultmanager] requestavassetforvideo:phasset options:nil resulthandler:^(avasset * _nullable asset, avaudiomix * _nullable audiomix, nsdictionary * _nullable info) {         nsurl* url= nil;         if([asset iskindofclass:[avurlasset class]]){             url= [(avurlasset *)asset url];         }else if([asset iskindofclass:[avcomposition class]]){             avcompositiontrack* compositiontrack= [[(avcomposition*)asset tracks] firstobject];             avcompositiontracksegment* segment= [[compositiontrack segments] firstobject];             url= [segment sourceurl];         }         completionblock(url);     }]; } 

these alerts being shown in player:

your input can't opened vlc unable open mrl 'file:///var/mobile/media/dcim/102apple/img2728.mov'.  check log details.   file reading failed vlc not open file "/vlc/mobile/media/dcim/102apple/img_2728.mov"  (operation not permitted). 

enter image description here enter image description here

below logs after used -vvvv options:

creating player instance private library options given [000000015e6cf238] core libvlc debug: vlc media player - 2.2.2 weatherwax [000000015e6cf238] core libvlc debug: copyright © 1996-2016 videolan team [000000015e6cf238] core libvlc debug: revision 2.2.2-18-gf8b3bf0 [000000015e6cf238] core libvlc debug: configured /users/fkuehne/desktop/vlckit/mobilevlckit/importedsources/vlc/configure  '--prefix=/users/fkuehne/desktop/vlckit/mobilevlckit/importedsources/vlc/install-ios-os/arm64' '--host=arm-apple-darwin11' '--with-contrib=/users/fkuehne/desktop/vlckit/mobilevlckit/importedsources/vlc/contrib/arm-apple-darwin11-arm64' '--enable-static' '--disable-debug' '--enable-dvbpsi' '--enable-avcodec' '--disable-macosx' '--disable-macosx-dialog-provider' '--disable-macosx-qtkit' '--disable-macosx-eyetv' '--disable-macosx-vlc-app' '--disable-macosx-avfoundation' '--disable-audioqueue' '--disable-shared' '--enable-macosx-quartztext' '--enable-mkv' '--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-glx' '--disable-sse' '--enable-neon' '--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=arm-apple-darwin11' 'cc=xcrun clang' 'cflags=-isysroot /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos9.2.sdk -arch arm64 -o3 -g -miphoneos-version-min=7.0' 'ldflags=-l/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos9.2.sdk/usr/lib -arch arm64 -isysroot /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos9.2.sdk -wl,-ios_version_min,7.0' 'cppflags=-isysroot /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos9.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/iphoneos9.2.sdk -arch arm64 -o3 -g -miphoneos-version-min=7.0 -stdlib=libstdc++' 'objc=xcrun clang' 'ccas=gas-preprocessor.pl xcrun clang' 'cxxcpp=xcrun c++ -e' 'avcodec_cflags=-i/users/fkuehne/desktop/vlckit/mobilevlckit/importedsources/vlc/install-ios-os/arm64/include ' 'avcodec_libs=-l/users/fkuehne/desktop/vlckit/mobilevlckit/importedsources/vlc/install-ios-os/arm64/lib -lavcodec -lavutil -lz' 'avformat_cflags=-i/users/fkuehne/desktop/vlckit/mobilevlckit/importedsources/vlc/install-ios-os/arm64/include' 'avformat_libs=-l/users/fkuehne/desktop/vlckit/mobilevlckit/importedsources/vlc/install-ios-os/arm64/lib -lavcodec -lz -lavutil -lavformat' [000000015e6cf238] core libvlc debug: plug-ins loaded: 217 modules [000000015e6cf238] core libvlc debug: translation test: code "c" [000000015e6cf238] core libvlc debug: cpu has capabilities fpu  [000000015f9aab18] core playlist debug: creating audio output [000000015f9aaf38] core audio output debug: looking audio output module matching "any": 3 candidates [000000015f9aaf38] core audio output debug: using audio output module "audiounit_ios" [000000015f9aab18] core playlist debug: keeping audio output [000000015f9792a8] core interface debug: looking interface module matching "ios_dialog_provider,none": 1 candidates [000000015f9792a8] ios_dialog_provider interface debug: ios dialog provider initialised [000000015f9792a8] core interface debug: using interface module "ios_dialog_provider" [000000015e61f258] core generic error: option marq-color not exist [000000015e61f258] core generic error: option marq-opacity not exist [000000015e61f258] core generic error: option marq-position not exist [000000015e61f258] core generic error: option marq-refresh not exist [000000015e61f258] core generic error: option marq-size not exist [000000015e61f258] core generic error: option marq-timeout not exist [000000015e61f258] core generic error: option marq-x not exist [000000015e61f258] core generic error: option marq-y not exist [000000015e61f258] core generic debug: creating audio output [000000015e6cf4c8] core audio output debug: looking audio output module matching "any": 3 candidates [000000015e6cf4c8] core audio output debug: using audio output module "audiounit_ios" [000000015e61f258] core generic debug: keeping audio output [00000001701d3078] core input debug: creating input 'img_2728.mov' [00000001701d3078] core input debug: using timeshift granularity of 50 mib, in path '/tmp' [00000001701d3078] core input debug: `file:///var/mobile/media/dcim/102apple/img_2728.mov' gives access `file' demux `' path `/var/mobile/media/dcim/102apple/img_2728.mov' [00000001701d3078] core input debug: specified demux `any' [00000001701d3078] core input debug: creating demux: access='file' demux='any' location='/var/mobile/media/dcim/102apple/img_2728.mov' file='/var/mobile/media/dcim/102apple/img_2728.mov' [000000015e6cf7a8] core demux debug: looking access_demux module matching "file": 4 candidates [000000015e6cf7a8] core demux debug: no access_demux modules matched [00000001701d3078] core input debug: creating access 'file' location='/var/mobile/media/dcim/102apple/img_2728.mov', path='/var/mobile/media/dcim/102apple/img_2728.mov' [000000015f99d0b8] core access debug: looking access module matching "file": 15 candidates [000000015f99d0b8] filesystem access debug: opening file `/var/mobile/media/dcim/102apple/img_2728.mov' [000000015f99d0b8] filesystem access error: cannot open file /var/mobile/media/dcim/102apple/img_2728.mov (operation not permitted) [000000015f99d0b8] core access debug: no access modules matched [00000001701d3078] core input error: open of `file:///var/mobile/media/dcim/102apple/img_2728.mov' failed 

please if else facing similar problem.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -