Difference between revisions of "Launch Ace Stream on Android"

From Ace Stream Wiki
Jump to: navigation, search
(Новая страница: «Для запуска просмотра через Ace Stream на Android необходимо выполнить следующий код: <tt><nowiki>Intent…»)
 
Line 1: Line 1:
Для запуска просмотра через Ace Stream на Android необходимо выполнить следующий код:
+
Refer to following code, as example:
 
  <tt><nowiki>Intent intent = new Intent();
 
  <tt><nowiki>Intent intent = new Intent();
 
intent.setComponent(new ComponentName("org.acestream.media", "org.acestream.engine.ContentStartActivity"));
 
intent.setComponent(new ComponentName("org.acestream.media", "org.acestream.engine.ContentStartActivity"));

Revision as of 11:58, 25 May 2017

Refer to following code, as example:

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://17120e77548ed851899de2e56f3fd02ff71873e9"));
// or start by transport file URL
intent.setData(Uri.parse("http://acestream.net/demos/files/avatar.rutor.torrent"));

startActivity(intent);