ConnectSDK / Connect-SDK-Android-Core

Core source code for the Android Connect SDK project
Apache License 2.0
114 stars 79 forks source link

Added Media Player Error handler #50

Closed khk624 closed 9 years ago

khk624 commented 9 years ago

Added error state in the PlayStateStatus. Now we can subscribe the Media-Error state by subscribing PlayStateStatus.

khk624 commented 9 years ago

There is one thing I'm concerned; there is no way to receive error message in client side. They only know an error happens for playing media. (Even though I've added log message in https://github.com/ConnectSDK/Connect-SDK-Android-Core/pull/50/files#diff-7fdbeb955ac76f799ef666ce3e8a1a2eR100)

oleksii-frolov commented 9 years ago

As we discussed onError method should be called when error is happened. We are going to use this approach on both platforms.

oleksii-frolov commented 9 years ago

There is a way to get error on client side.

  1. call playMedia with wrong mimeType
  2. call playMedia with wrong URL
  3. call playMedia with URL from local server and disconnect this server during playback