Android Play Ooyala Video avec Crochet Player
Question
Comment jouer à la vidéo d'Ooyala dans Hook Player à partir d'une autre application?
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);
}
}
La solution
the documentation OOYALA est incorrecte, de créer une intention d'ouvrirUne vidéo d'Ooyala dans "Hook Mobile Player App" doit être (sans "caractères" <"et"> "):
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);
}
}
Où:
pcode : vidéo player_id défini dans l'arrière-plan OOYALA. Code de l'intégration : Video Content_ID définie dans l'arrière-plan Ooyala. null : jeton valide ou string "null", non requis. time_in_seconds : heure en quelques secondes pour spécifier le point dans la vidéo pour démarrer l'application, non requise.
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);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow