SamsungDForum / SmartViewSDKDefaultMediaPlayer2.0

This application demonstrates how to send a video,audio,photo content URL to a default media player app on TV and how to control the playback and make a list of the content from mobile.
14 stars 6 forks source link

Connection lost when screen off iOS #6

Closed TrungNguyen1208 closed 4 years ago

TrungNguyen1208 commented 5 years ago

Hi, I'm using this lib in my objective-C project. When I turn off screen and turn on it again, my app crash with the following error: onDisconnect ---- Error is Optional(Error Domain=NSPOSIXErrorDomain Code=57 "Socket is not connected" UserInfo={_kCFStreamErrorCodeKey=57, _kCFStreamErrorDomainKey=1}) The swift sample lost connection too but it does not crash. Please help me to fix it

qttoan-khtn commented 5 years ago

Hi @TrungNguyen1208 , Just add photoplayer?.connectionDelegate = self, this issue will resolve Thanks