# Remote Control Center

ByteArk Player SDK for iOS รองรับการให้ผู้ชมควบคุม Player ผ่าน iOS Control Center, Lock screen และ Now Playing widget

# เปิดใช้งาน

player.enableRemoteControlCenter()
1

# ปิดใช้งาน

player.disableRemoteControlCenter()
1

# ใช้งานร่วมกับ Background Audio

เพื่อให้ Remote Control Center ทำงานเต็มประสิทธิภาพ แนะนำให้เปิด Background Audio ร่วมด้วย ผู้ชมจะสามารถ Play / Pause / Seek จาก Control Center ได้แม้แอปอยู่ใน Background หรือหน้าจอถูกล็อก

Note

Remote Control Center ใช้ MPRemoteCommandCenter ของ iOS — Player จะลงทะเบียน Command handlers ให้อัตโนมัติเมื่อเปิดใช้งาน