I'm making a video stream app using VLC player.
I installed mobileVLCKit-unstable
and successfully streamed video but it stops within 1 minute.
I found out that the VLC library's 'hardware decoding' option is 'on'. But I can't find how to do it.
This is what I tried:
myplayer = VLCMediaPlayer
myplayer.media.addOptions(["network-caching":1000]) // this is hint
myplayer.media.addOptions(["hardware-decoding":false]) // i tried, but not worked
myplayer.media.addOptions(["avcodec":false]) // i tried, but not worked
I'm using Swift 4, Xcode 10.
You shouldn’t use the unstable pod of MobileVLCKit anymore. This is no longer needed and will give you a very old and unstable version of the library as we no longer update this pod. Just use the normal MobileVLCKit pod and try again.
Disabling hardware decoding will NOT solve your problem. Please post a debug log of the stable library so we can take a more detailed look.