需要ADB命令行才能使用浏览器启动youtube视频 [英] Need ADB command line to start a youtube video using browser

查看:343
本文介绍了需要ADB命令行才能使用浏览器启动youtube视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Adb shell命令

I have an Adb shell command

adb shell是start -a android.intent.action.VIEW -d' https://youtu.be/CSULRDoF8-g '

adb shell am start -a android.intent.action.VIEW -d 'https://youtu.be/CSULRDoF8-g'

这确实有效。但是,当它调用URL(一个youtube视频链接)时,Youtube应用将代替浏览器来接管导航。

That does work. But when it calls the URL (a youtube video link) the Youtube app takes over the navigation instead of the browser.

我希望可以通过浏览器打开youtube视频,不是Youtube应用。我正在使用三星Galaxy S7,可以从八号Chrome或三星股票浏览器播放视频。

I want the youtube video to be open via browser, not Youtube app. I am using Samsung Galaxy S7, the video can be played from eighter Chrome or Samsung stock browser.

有什么线索吗?谢谢

推荐答案

您可以使用以下网址作为参数启动Chrome浏览器:

You can launch Chrome with that url as parameter using:

adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main "https://youtu.be/CSULRDoF8-g"

这篇关于需要ADB命令行才能使用浏览器启动youtube视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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