@cvp Thanks for the reply. I’m a bit out of my depth trying to solve this. I haven’t used ctypes before and can’t work out how to call the swift “image(at:)“ function as you’ve suggested.
Latest posts made by Pythonised
RE: video edition
Hi. Thanks for the reply.
Yea I did. It has a similar result with a transparent view and not able to see any images. I’ve started going through your code line by line but I’ve only just starting to use objc_util and there are other things you are doing that are new to me.
My concern is that it isn’t possible anymore and I’m going down the wrong path.
RE: video edition
I'd like to be able to get a video from the photos module or a local .mov file and show a given frame in the console.
There seems to be 2 ways to do this but neither is working for me yet.
I tried running this:
But the resulting view is just a transparent overlay.
It seems to me that this returns a 'NoneType' object.
It also looks like the photos module has a .seek function I am unable to get that to show me anything other than frame 1 using get_image().
Are there any working examples of this?
Thanks so much for your help.
RE: permission error on ipad but not on iPhone with getcwd().
Thanks @cvp I added the root of my icloud to external files as you sugeated and voila. I dont understand how this stopped working but I'm happy to have a simple solution.
permission error on ipad but not on iPhone with getcwd().
import os print(os.getcwd())
Running that code in a file is giving me a permission error.
Traceback (most recent call last):
File "/private/var/mobile/Library/Mobile Documents/com LoudDocs/_test/test_function.py", Line 3, in <module> print (os.getcwd())
PermissionError: [Errno 3] Operation not permitted
I can run the same code/file on my iphone and it works. how have i changed ios permissions on my iPad.