-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Cast Companion Library w/ Cast SDK v3 Sender API. Change-Id: I11be5625b43579146898955878bb2672142e8c4c
- Loading branch information
Showing
8 changed files
with
254 additions
and
188 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
43 changes: 43 additions & 0 deletions
43
mobile/src/main/java/com/example/android/uamp/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,43 @@ | ||
/* | ||
* Copyright (C) 2016 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.example.android.uamp; | ||
|
||
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; | ||
|
||
/** | ||
* Specify receiver application ID for cast | ||
*/ | ||
public class CastOptionsProvider implements OptionsProvider { | ||
|
||
@Override | ||
public CastOptions getCastOptions(Context context) { | ||
return new CastOptions.Builder() | ||
.setReceiverApplicationId(context.getString(R.string.cast_application_id)) | ||
.build(); | ||
} | ||
|
||
@Override | ||
public List<SessionProvider> getAdditionalSessionProviders(Context context) { | ||
return null; | ||
} | ||
} |
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
42 changes: 0 additions & 42 deletions
42
mobile/src/main/java/com/example/android/uamp/UAMPApplication.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
39fa286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @smishra2 , are you still maintining this project?
39fa286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. I am one of many maintainers on this project.
39fa286
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I was wondering, because Issues are accumulating on this project, but no one seems to answer or try to resolve them.