织梦CMS - 轻松建站从此开始!

abg欧博官网|登陆|游戏|

Movie Deeplink for Netflix Android TV app (com.ne

时间:2025-08-05 19:01来源: 作者:admin 点击: 5 次
I wanted the same, so I spent some time digging. It had to be possible because Netflix series and movies show up in the Android TV launcher search res

I wanted the same, so I spent some time digging. It had to be possible because Netflix series and movies show up in the Android TV launcher search results and can be launched from there. Apparently there are intent extras in that intent and they are the missing piece. The biggest problem was that there is no easy way to capture those intent extras (logcat doesn't show the extras), still I found a way. The following code does what you want:

Intent netflix = new Intent(); netflix.setAction(Intent.ACTION_VIEW); netflix.setData(Uri.parse("http://www.netflix.com/watch/70202141")); netflix.putExtra("source","30"); // careful: String, not int netflix.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK); getActivity().startActivity(netflix);

Alternatively, through adb:

adb shell am start -c android.intent.category.LEANBACK_LAUNCHER -a android.intent.action.VIEW -d -f 0x10808000 -e source 30 com.netflix.ninja/.MainActivity

This way I can launch right into a movie or series and it automatically starts playing. To launch into the screen without automatic playback, use /title/ instead of /watch/. Tested on netflix ninja 3.3.1 build 1513 for Android TV on arm.

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-08-23 17:08 最后登录:2025-08-23 17:08
栏目列表
推荐内容