### Starting Ace Stream (Deprecated Intent) Source: https://github.com/acestream/android-service-client-example/blob/master/README.rst This code snippet demonstrates how to start Ace Stream versions prior to 3.1.43.0 using a deprecated intent. It sets the component name, action, and data (either content ID or transport file URL) and then starts the activity. This method requires knowing the Ace Stream application ID. ```java // Deprecated intent for version below 3.1.43.0 Intent intent = new Intent(); intent.setComponent(new ComponentName("org.acestream.media", "org.acestream.engine.ContentStartActivity")); intent.setAction(Intent.ACTION_VIEW); // start by content id intent.setData(Uri.parse("acestream://c894b23a65d64a0dae2076d2a01ec6bface83b01")); // or start by transport file URL intent.setData(Uri.parse("http://dl.acestream.org/sintel/sintel.torrent")); startActivity(intent); ``` -------------------------------- ### Starting Ace Stream (Intent for 3.1.43.0+) Source: https://github.com/acestream/android-service-client-example/blob/master/README.rst This code snippet shows how to start Ace Stream versions 3.1.43.0 and higher using the recommended intent. It sets the action to "org.acestream.action.start_content" and uses the "acestream:" schema with parameters for content ID or URL. It also demonstrates how to force playback in Ace Player by passing an extra parameter. ```java // Intent for versions 3.1.43.0+ Intent intent = new Intent("org.acestream.action.start_content"); // start by content id intent.setData(Uri.parse("acestream:?content_id=c894b23a65d64a0dae2076d2a01ec6bface83b01")); // or start by transport file URL intent.setData(Uri.parse("acestream:?url=" + Uri.encode("http://dl.acestream.org/sintel/sintel.torrent"))); // Uncomment this line to force starting playback in Ace Player (internal player of Ace Stream app) //intent.putExtra("org.acestream.EXTRA_SELECTED_PLAYER", "{\"type\": 3}"); startActivity(intent); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.