• <bdo id='TS2zm'></bdo><ul id='TS2zm'></ul>

      <tfoot id='TS2zm'></tfoot>

      <small id='TS2zm'></small><noframes id='TS2zm'>

      <i id='TS2zm'><tr id='TS2zm'><dt id='TS2zm'><q id='TS2zm'><span id='TS2zm'><b id='TS2zm'><form id='TS2zm'><ins id='TS2zm'></ins><ul id='TS2zm'></ul><sub id='TS2zm'></sub></form><legend id='TS2zm'></legend><bdo id='TS2zm'><pre id='TS2zm'><center id='TS2zm'></center></pre></bdo></b><th id='TS2zm'></th></span></q></dt></tr></i><div id='TS2zm'><tfoot id='TS2zm'></tfoot><dl id='TS2zm'><fieldset id='TS2zm'></fieldset></dl></div>

        <legend id='TS2zm'><style id='TS2zm'><dir id='TS2zm'><q id='TS2zm'></q></dir></style></legend>

        如何在 kivy 中播放来自网络的视频,例如 youtub

        时间:2023-08-31

            <small id='OBFfg'></small><noframes id='OBFfg'>

            • <bdo id='OBFfg'></bdo><ul id='OBFfg'></ul>
                <i id='OBFfg'><tr id='OBFfg'><dt id='OBFfg'><q id='OBFfg'><span id='OBFfg'><b id='OBFfg'><form id='OBFfg'><ins id='OBFfg'></ins><ul id='OBFfg'></ul><sub id='OBFfg'></sub></form><legend id='OBFfg'></legend><bdo id='OBFfg'><pre id='OBFfg'><center id='OBFfg'></center></pre></bdo></b><th id='OBFfg'></th></span></q></dt></tr></i><div id='OBFfg'><tfoot id='OBFfg'></tfoot><dl id='OBFfg'><fieldset id='OBFfg'></fieldset></dl></div>
                <legend id='OBFfg'><style id='OBFfg'><dir id='OBFfg'><q id='OBFfg'></q></dir></style></legend>
                  <tfoot id='OBFfg'></tfoot>
                    <tbody id='OBFfg'></tbody>

                  本文介绍了如何在 kivy 中播放来自网络的视频,例如 youtube的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我真的很想创建一个 kivy 应用程序,让我可以查看来自某些网络链接的视频.我该怎么做呢,比如有一个视频链接然后在 Kivy 中播放?我已经阅读了文档,但我不明白.请帮忙.

                  I really want to create a kivy app that lets me view videos from certain web links. How can I go about doing this, Like having a link to a video then play it in Kivy? I already read the documentation and I don't get it. Please help.

                  推荐答案

                  视频VideoPlayer 小部件都能够播放来自网络的流式视频.下面是一个播放网络视频的简单示例:

                  The Video and VideoPlayer widgets are both capable of playing streaming videos from the web. Here's a simple example of playing a video from the web:

                  import kivy
                  kivy.require('1.8.0')
                  
                  from kivy.app import App
                  from kivy.lang import Builder
                  
                  root = Builder.load_string('''
                  VideoPlayer:
                      source: 'http://www.debone.com/VivVilConGminorRV578.mpg'
                  ''')
                  
                  class TestApp(App):
                      def build(self):
                          return root
                  
                  if __name__ == '__main__':
                      TestApp().run()
                  

                  这适用于任何受支持的流媒体类型.但请注意,YouTube 不提供流式传输 URL.在此处查看我对专门询问 YouTube 的问题的回答.

                  This will work for any supported streaming media type. Note, however, that YouTube does not provide streaming URLs. Check my answer here to a question which was specifically asking about YouTube.

                  这篇关于如何在 kivy 中播放来自网络的视频,例如 youtube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Python 中的存储访问框架 下一篇:.gif 图像作为源代码在 Windows kivy 程序中运行良好

                  相关文章

                  最新文章

                1. <small id='vr4nK'></small><noframes id='vr4nK'>

                2. <tfoot id='vr4nK'></tfoot>
                  1. <i id='vr4nK'><tr id='vr4nK'><dt id='vr4nK'><q id='vr4nK'><span id='vr4nK'><b id='vr4nK'><form id='vr4nK'><ins id='vr4nK'></ins><ul id='vr4nK'></ul><sub id='vr4nK'></sub></form><legend id='vr4nK'></legend><bdo id='vr4nK'><pre id='vr4nK'><center id='vr4nK'></center></pre></bdo></b><th id='vr4nK'></th></span></q></dt></tr></i><div id='vr4nK'><tfoot id='vr4nK'></tfoot><dl id='vr4nK'><fieldset id='vr4nK'></fieldset></dl></div>
                      <bdo id='vr4nK'></bdo><ul id='vr4nK'></ul>

                    1. <legend id='vr4nK'><style id='vr4nK'><dir id='vr4nK'><q id='vr4nK'></q></dir></style></legend>