3

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.

user3672804
  • 45
  • 1
  • 5
  • See documentation: [Video player — Kivy 1.8.1-dev documentation](http://kivy.org/docs/api-kivy.uix.videoplayer.html) – furas Jul 26 '14 at 23:23

1 Answers1

3

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()

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.

Community
  • 1
  • 1
kitti
  • 14,663
  • 31
  • 49
  • Question - does Kivy have the ability to be embedded on a webpage and receive a stream from OBS (attempt to get away from FB, YT, Twitch, etc)? – Jordon Gonzales Feb 12 '21 at 17:26