我在 kotlin 桌面中使用 JavaFx MediaPlayer。我如何设置链接的引用者。这是我的代码:
val mediaView = MediaView()
val media =
Media("https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8")
val player = MediaPlayer(media)
player.isAutoPlay = true
mediaView.mediaPlayer = player