如何从Android中的YouTube视频iframe获取视频ID

时间:2019-11-16 19:10:35

标签: android iframe youtube-api android-youtube-api

我在JSON数组中有一个iframe代码,因此我想在我的活动中实现Youtube Api,为此,我需要i框架下方的视频ID(密钥)。如何在Android中以编程方式获取此内容??

<iframe width="560" height="315" src="https://www.youtube.com/embed/v_vmcXvMidM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

我需要此ID“ v_vmcXvMidM

0 个答案:

没有答案