Domanda

Come riprodurre oyala video in Gancio giocatore da un'applicazione diversa?

public class MainActivity extends Activity {
  @Override  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

  Intent launchHook = new Intent(Intent.ACTION_VIEW, Uri.parse
  (<"ooyala://pcode/embed code/null/time_in_seconds">));
    startActivity(launchHook);
  }
}      
.

È stato utile?

Soluzione

the OOYALA DOCUMENTAZIONE è errata, per creare un intento di aprireUn video oylala in "ACC Mobile Player App" deve essere (senza "<<" e ">" caratteri):

public class MainActivity extends Activity {
  @Override  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);  
  Intent launchHook = new Intent(Intent.ACTION_VIEW, Uri.parse("ooyala://pcode/embed code/null/time_in_seconds"));
    startActivity(launchHook);
  }
}   
.

Dove:

.
    .
  • PCODE : video Player_id definito in OOYALA backlot.
  • Incorpora il codice : Video Content_ID definito in OOYALA backlot.
  • null : token valido o la stringa "null", non richiesto.
  • time_in_seconds : tempo in secondi per specificare il punto nel video per avviare l'app, non richiesto.
Intent launchHook = new Intent(Intent.ACTION_VIEW, Uri.parse("ooyala://c9565052281a402ebf432dca9b59b2ca/45cjJ0ZDrfOUerwSu6BbChfItUCDCxZE"));
// Intent launchHook = new Intent(Intent.ACTION_VIEW, Uri.parse("ooyala://c9565052281a402ebf432dca9b59b2ca/45cjJ0ZDrfOUerwSu6BbChfItUCDCxZE/null/10"));
startActivity(launchHook);      
.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top