Post

Replies

Boosts

Views

Activity

Video play never works
Hi Kivy-ios experts, I wrote a very simple video player as below: from kivy.app import App from kivy.uix.screenmanager import Screen from kivy.uix.videoplayer import VideoPlayer class VideoScreen(Screen):    def init(self, **kwargs):      super(VideoScreen, self).init(**kwargs)          self.video = VideoPlayer(source='test.mp4', state='play',options={'allow_stretch':True, 'eos': 'loop'})     self.add_widget(self.video) class MyApp(App):    def build(self):       return VideoScreen() if name == 'main':   MyApp().run() It works fine at my Mac machine. Then I packaged it using this command in kivy-ios: toolchain create video_test /Users/haipan/python/kivy/video_test/ Which generated Xcode project: video_test.xcodeproj in a folder video_test-ios/ Then I double click video_test.xcodeproj, then Xcode launched, then I click the arrow button, then Xcode shows Build Successfully, then its Simulator launched, my app is there, video player seems there too, but no video playing. The error message as below: Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Users/haipan/Library/Developer/Xcode/DerivedData/video_test-drwhokvsjnzjuqblihyyhobprqov/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/Current/Foundation' (no such file), ... I have tried audio files and pictures, they all loaded fine. But I could never load any video. Did anybody get video running by Kivy app? Does Kivy really support video playing? Thank you in advance for any help.
0
0
834
Mar ’23