Loading and playing a movie. Possible?
Is there any way to load a movie and be able to play parts of it?
I found nothing in the docs.
The ui.WebView lets you display html content. If you can get a video into your pythonista folder, you can use a
<video>html element to display it, or use video.js, etc. The tricky part is if you want to get a video from your ios photo stream, as opposed to, say, from the internet. Tony and techteej had a working solution, search the forums . The other tricky part is getting the url right. A WebView lets you load a url that is simply the abspath of the file, without any file://, etc.
Thank you for your reply, Jon.
What I wanted was the ability to control the video, being able to click a button and advance a frame, for example. Or, being able to play/stop the video at the click of a button (not the standard system controls)
I am interested in a video player now myself (I use Editorial more than pythonista). If I make it, I will respond here.
Main reason I am taking a whack at it is for Editorial. Easy testing also.
Debugging is an issue though, but I see it as a challenge. I'm starting with small but useful snippets right now.
Editorial needs more browser manipulation functions.
I wonder if I might be able to find code for a javascriot editor, and add it to Editorial.
Anyhow, as for the video player, I will be adding it to a Custom UI, but I can't find a way to package the video.
For a javscript editor within pythonista or editorial, check out
This has a primitive way to open, browse and save files, and the editor has syntax highlighting, etc. there are some keyboard quirks, and things like the search dialog have issues.
I nearly have a codemirror instance working, which I think will be a lot better than editarea.