Netflix Android TV应用程序的电影深层链接(com.netflix.ninja) [英] Movie Deeplink for Netflix Android TV app (com.netflix.ninja)

查看:187
本文介绍了Netflix Android TV应用程序的电影深层链接(com.netflix.ninja)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了有关如何为移动Netflix应用程序为Netflix进行电影深层链接的解决方案,但是对于该应用程序的Android TV版本,这些相同的解决方案似乎无法正常工作.

I have seen solutions on how to do movie deeplinking for Netflix for the mobile Netflix app, but for the Android TV version of the app those same solutions don't seem to be working.

我尝试将Intent与action.VIEW结合使用,并传递正常的Netflix URL,例如: http://www.netflix.com/watch/ {movieId}或使用nflx://协议.

I have tried using an Intent with action.VIEW and passing the normal Netflix URL such as: http://www.netflix.com/watch/{movieId} or with the nflx:// protocol.

对于android TV应用程序,只有nflx://协议似乎在打开应用程序时执行任何操作,然后仅停留在主菜单中而不播放电影.使用http://协议可在浏览器中打开netflix,在浏览器中它仅要求您下载手机或平板电脑应用.

For the android TV app only the nflx:// protocol seems to do anything where it opens the app and then it just stays at the main menu instead of playing the movie. Using the http:// protocol opens to netflix in the browser where it just asks you to download the phone or tablet app.

有人能弄清楚吗?

推荐答案

Netflix最近为Android TV添加了通用搜索支持,这意味着必须有某种方法可以深层链接到节目和电影.因此,我发现需要设置一些标志才能正确打开显示页面.似乎还有一些可以用来自动开始播放的功能.

Netflix recently added universal search support to Android TV, which means there had to be some way to deep link to shows and movies. So I found a few flags you need to set to correctly open the show page. It seems like there are also extras which could be used to automatically start playing.

public void OpenNFX() {
    Intent netflix = new Intent();
    netflix.setAction(Intent.ACTION_VIEW);
    netflix.setData(Uri.parse("http://www.netflix.com/watch/70291117"));
    netflix.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK);
    getActivity().startActivity(netflix);
}

这篇关于Netflix Android TV应用程序的电影深层链接(com.netflix.ninja)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆