适用于 Netflix Android TV 应用的电影 Deeplink (com.netflix.ninja) [英] Movie Deeplink for Netflix Android TV app (com.netflix.ninja)

查看:26
本文介绍了适用于 Netflix Android TV 应用的电影 Deeplink (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.

我尝试使用带有 action.VIEW 的 Intent 并传递普通的 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.

有没有人能解决这个问题?

Has anyone been able to figure this out?

推荐答案

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 应用的电影 Deeplink (com.netflix.ninja)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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