Pregunta

¿Cómo jugar video de Ooyala en Hook Player de una aplicación diferente?

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);
  }
}      

¿Fue útil?

Solución

The Documentación de Ooyala es incorrecta, para crear una intención de abrirUn video de Ooyala en "Aplicación de jugador móvil de gancho" debe ser (sin "caracteres" <"y"> "):

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);
  }
}   

donde:

  • PCODE : video Player_ID definido en la retroiluminación de Ooyala.
  • código de incrustación : video contenido_id definido en la retroiluminación de Ooyala.
  • null : token válido o la cadena "nulo", no es necesario.
  • time_in_segundos : Tiempo en segundos para especificar el punto en el video para iniciar la aplicación, no es necesario.
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);      
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top