Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
316 views
in Technique[技术] by (71.8m points)

swift - Bitmovin iOS PreprocessHttpRequestDelegate not called

I set a simple player with Bitmovin player iOS like this:

func bind(videoPlayer: BitmovinPlayer.Player, url: URL) {
    // Update variables
    self.videoPlayer = videoPlayer
    self.videoPlayer?.add(listener: self)
    self.videoPlayer?.config.networkConfiguration.preprocessHttpRequestDelegate = self
    self.url = url

    let analyticsConfig = BitmovinAnalyticsConfig(key: Constant.BitmovinAnalytics.LICENSE_KEY)
    analyticsConfig.isLive = episode?.liveValue ?? false
    analyticsCollector = BitmovinPlayerCollector(config: analyticsConfig)
    analyticsCollector.attachPlayer(player: videoPlayer)
}

This method builds the player, but when I run a video the following method does not trigger the delegate:

func preprocessHttpRequest(_ type: String, httpRequest: HttpRequest, completionHandler: @escaping (HttpRequest) -> Void)

Other listeners work as expected.

Somebody had the same issue? I follow all the runcode looking for duplicate delegates but I just set the player once. No documentation or examples found for this feature.

question from:https://stackoverflow.com/questions/65876169/bitmovin-ios-preprocesshttprequestdelegate-not-called

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...