Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secure connection setup failed #5397

Closed
agieocean opened this issue Sep 23, 2017 · 4 comments
Closed

Secure connection setup failed #5397

agieocean opened this issue Sep 23, 2017 · 4 comments

Comments

@agieocean
Copy link

Versions

Description

Attempting to view a video over https yields the following:

[ERROR  ] [Image       ] Error reading file https://vjs.zencdn.net/v/oceans.png
[INFO   ] [Base        ] Start application main loop
[ERROR  ] [Image       ] Error reading file https://vjs.zencdn.net/v/oceans.mp4
[INFO   ] [GL          ] NPOT texture support is available
WARNING: no real random source present!
[ERROR  ] [VideoGstplayer] b'Secure connection setup failed.'
[ERROR  ] [VideoGstplayer] b'Internal data stream error.'
[ERROR  ] [VideoGstplayer] b"Stream doesn't contain enough data."

Note that this does work over http.

Code and Logs

HTTPS (Not Working):

from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.videoplayer import VideoPlayer

class TestApp(App):
    def build(self):
        player = VideoPlayer(
            source='https://vjs.zencdn.net/v/oceans.mp4',
            state='play',
            options={'allow_stretch': True}
        )
        return player

TestApp().run()

HTTP (Working):

from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.videoplayer import VideoPlayer

class TestApp(App):
    def build(self):
        player = VideoPlayer(
            source='http://clips.vorwaerts-gmbh.de/VfE_html5.mp4',
            state='play',
            options={'allow_stretch': True}
        )
        return player

TestApp().run()
@vpvn
Copy link

vpvn commented Aug 28, 2019

I have the same issue

@radiolondra
Copy link

Same problem here. No answer?

@SpiessSolution
Copy link

Same problem

@Julian-O
Copy link
Contributor

Julian-O commented Nov 7, 2023

  • The example code is confusing because it isn't downloading the same video! Should use the same URL as the first one, but without the s.
  • Tried it on Kivy 2.2.1 on Windows. All versions give the same Image not found error, because the source parameter is expected to be a filename. (More strictly, it goes through resources.find_resource() which accepts "atlas://" and "data:"

So this code isn't supported - download the video locally and then play it. Not sure why it used to work, but presumably there have been backend changes since then.

Closing as as Not Planned.

@Julian-O Julian-O closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants