Overriding MPNowPlayingInfoCenter while using WKWebView

前端 未结 1 852
执笔经年
执笔经年 2021-02-08 20:15

I am trying to create a multi-source music player with tracks coming from YouTube and Soundcloud, and I would like to override the content of MPNowPlayingInfoCenter to provide i

相关标签:
1条回答
  • 2021-02-08 20:39

    Although it's impossible to override the property itself on iOS, it should be noted that changing the "title" property of the <video> element in JavaScript

    I've achieved this behaviour with

    var control = ...; //Create video DOM control
    control.title = "Desired title";
    
    0 讨论(0)
提交回复
热议问题