-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
571 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/src/main/java/net/programmierecke/radiodroid2/CastOptionsProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package net.programmierecke.radiodroid2; | ||
|
||
import android.content.Context; | ||
|
||
import com.google.android.gms.cast.framework.CastOptions; | ||
import com.google.android.gms.cast.framework.OptionsProvider; | ||
import com.google.android.gms.cast.framework.SessionProvider; | ||
|
||
import java.util.List; | ||
|
||
public class CastOptionsProvider implements OptionsProvider { | ||
|
||
@Override | ||
public CastOptions getCastOptions(Context context) { | ||
return new CastOptions.Builder() | ||
.setReceiverApplicationId(context.getString(R.string.app_id)) | ||
.build(); | ||
} | ||
|
||
@Override | ||
public List<SessionProvider> getAdditionalSessionProviders(Context context) { | ||
return null; | ||
} | ||
} |
Oops, something went wrong.