Skip to content

Can't play RTSP on mobile network (3g, 4g)

RTSP links only play on Wifi. Could someone help me, please? I'm testing on an iPhone X iOS 15.5

player = VLCMediaPlayer()
  
player.drawable = self
player.delegate = self
    
backgroundColor = .black
    
let streamURL = URL(string: String(uri))
let media = VLCMedia(url: streamURL!)
            
media.addOptions([
  "rtsp-tcp": true
])

player.libraryInstance.debugLogging = true
player.libraryInstance.debugLoggingLevel = 3
    
player.media = media
player.audio?.volume = 0
player.scaleFactor = 0
    
player.play()
Edited by Lucas Bortoli
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information