We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26050d8 commit 06cf511Copy full SHA for 06cf511
1 file changed
app/src/main/java/org/schabi/newpipe/player/helper/PlayerHolder.java
@@ -120,6 +120,14 @@ private Context getCommonContext() {
120
return App.getInstance();
121
}
122
123
+ /**
124
+ * Connect to (and if needed start) the {@link PlayerService}
125
+ * and bind {@link PlayerServiceConnection} to it.
126
+ * If the service is already started, only set the listener.
127
+ * @param playAfterConnect If this holder’s service was already started,
128
+ * start playing immediately
129
+ * @param newListener set this listener
130
+ * */
131
public void startService(final boolean playAfterConnect,
132
final PlayerServiceExtendedEventListener newListener) {
133
if (DEBUG) {
0 commit comments