Android Playフックプレーヤーでヨーラビデオをプレイします
質問
別のアプリケーションからフックプレーヤーでOoyalaビデオを再生する方法?
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);
}
}
. 解決
Ooyala Documentation が正しくありません。「フックモバイルプレーヤーアプリ」のOoyalaビデオ( "<"と ">"文字):
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);
}
}
.
ここで:
- pcode :oyalaバックロットで定義されているVideo Player_ID。
- 埋め込みコード:oyalaバックロットで定義されているビデオcontent_id。
- null :有効なトークンまたは文字列 "null"、必須ではありません。
- time_in_seconds :アプリを起動するためのビデオ内のポイントを指定するには、必須ではありません。
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);
. 所属していません StackOverflow