如何在不同应用程序的钩子播放器中播放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);
}
} 发布于 2014-01-09 00:06:27
Ooyala文件是不正确的,要在"Hook应用程序“中创建打开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);
}
} 其中:
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); https://stackoverflow.com/questions/21009034
复制相似问题