Skip to content

RTSP / removed somwhow resulting Connection refused] OPTIONS rtsp://192.168.0.15:8554app/stream RTSP/1.0 #51

@rsemihkoca

Description

@rsemihkoca

In rtsp cases

Starting stream with URL: rtsp://192.168.0.15:8554/app/stream
waiting for sps and pps
2025-01-07 00:10:49.139792+0300 faceblurcamera[12764:837496] [connection] nw_socket_handle_socket_event [C1:1] Socket SO_ERROR [61: Connection refused]
OPTIONS rtsp://192.168.0.15:8554app/stream RTSP/1.0

CSeq: 0

connection failed: The operation couldn't be completed. (RootEncoder.IOException error 0.)
TEARDOWN rtsp://192.168.0.15:8554app/stream RTSP/1.0

CSeq: 1

As you can see, the "/" before app has somehow disappeared. I don't quite understand why it does this

targetting ios 15, iphone 14 pro but i think with 6s you can reproduce

private func initializeCamera(metalView: MetalView) {
    // Initialize camera with the metal view and connect checker
    camera = RtspCamera(view: metalView, connectChecker: self)
    
    // Set video codec before preparing video
    camera?.setVideoCodec(codec: .H264)
    
    // Configure video settings
    let width = 640  // Lower resolution for testing
    let height = 480
    let fps = 30
    let bitrate = 128 * 1000
    
    if camera?.prepareVideo(width: width, height: height, fps: fps, bitrate: bitrate) == true {
        camera?.startPreview()
        videoConfigReady = true
    } else {
        error = "Failed to initialize camera"
    }
    isInitializing = false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions