title: How to add a custom SessionProvider with Google Cast SDK 3
body: <p>We've recently updated the Google Cast SDK to version 3. With this SDK it should be possible to add support for non-cast devices by implementing getAdditionalSessionProviders() in an <a href="https://developers.google.com/android/reference/com/google/android/gms/cast/framework/OptionsProvider" rel="nofollow">OptionsProvider</a>. We have created a custom <a href="https://developers.google.com/android/reference/com/google/android/gms/cast/framework/SessionProvider" rel="nofollow">SessionProvider</a> to return with the getAdditionalSessionProviders() method. </p>
  
  <p>However, this SessionProvider is never used and it will probably only be used when a device has been discovered and selected in the selection list when the <a href="https://developer.android.com/reference/android/app/MediaRouteButton.html" rel="nofollow">MediaRouteButton</a> is pressed as described in the <a href="https://developers.google.com/android/reference/com/google/android/gms/cast/framework/Session" rel="nofollow">Session</a> documentation. But we can not find a way to add our discovered non-cast device to this list. We have searched the API, the documentation and the examples that are available online, but we couldn't find how to do this. We have only found examples of older sdk versions, but these are completely different and not usable. </p>
  
  <p>We would like to use this functionality to add Samsung tv's to the Google Cast list with Samsung's SmartView SDK just like the YouTube and Netflix app do.</p>