Support sharing SoundCloud tracks (#671)
This commit is contained in:
parent
384e2c0e83
commit
8e0176e326
|
@ -50,6 +50,8 @@
|
||||||
<data android:host="www.vimeo.com"/>
|
<data android:host="www.vimeo.com"/>
|
||||||
<data android:host="player.vimeo.com"/>
|
<data android:host="player.vimeo.com"/>
|
||||||
<data android:host="www.svtplay.se"/>
|
<data android:host="www.svtplay.se"/>
|
||||||
|
<data android:host="soundcloud.com"/>
|
||||||
|
<data android:host="m.soundcloud.com"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<meta-data android:name="android.service.chooser.chooser_target_service"
|
<meta-data android:name="android.service.chooser.chooser_target_service"
|
||||||
|
|
|
@ -526,6 +526,9 @@ public class RemoteActivity extends BaseActivity
|
||||||
return "plugin://plugin.video.svtplay/?url=%2Fvideo%2F"
|
return "plugin://plugin.video.svtplay/?url=%2Fvideo%2F"
|
||||||
+ URLEncoder.encode(matcher.group(1)) + "&mode=video";
|
+ URLEncoder.encode(matcher.group(1)) + "&mode=video";
|
||||||
}
|
}
|
||||||
|
} else if (host.endsWith("soundcloud.com")) {
|
||||||
|
return "plugin://plugin.audio.soundcloud/play/?url="
|
||||||
|
+ URLEncoder.encode(playuri.toString());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue