Skip to content

Commit

Permalink
修复投屏
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengchen committed Jun 8, 2024
1 parent 784f1e0 commit ae536cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BilibiliLive/Module/DLNA/BiliBiliUpnpDMR.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class BiliBiliUpnpDMR: NSObject {

func handlePlay(json: JSON) {
let roomId = json["roomId"].stringValue
if roomId.count > 0, let room = Int(roomId) {
if roomId.count > 0, let room = Int(roomId), room > 0 {
playLive(roomID: room)
} else {
playVideo(json: json)
Expand Down

0 comments on commit ae536cc

Please sign in to comment.