Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Video
-
https://gist.github.com/3e708b73a04e5fc2e04569d9556198e3
Okay, this was not too bad. There is a lot of code defining CMTime and seeking ability, which is not needed if you just want to play without seeking.
-
Thanks so much! I'll try it when I get a chance! Let you know how it works out
-
Video works great!!!!!! Any idea on how to get the name of the selected video?
-
the phasset (in pick_asset) has a
filename()
method that returns the filename. You might want to modify that method asreturn asseturl, str(phasset.filename() )
-
Thanks so much! You are incredible!
-
How would I go about removing this avplayer later.
-
Also, how would I use a button to go back to the beginning of the video?
-
You can just remove_subview on the wrapper view to remove it. Technically maybe if you are planning on opening and closing a bunch of these, there is probably some cleanup that is required.
To seek. just use the seek function, and wrap a button action around it, similar to the way the slider action did.
-
What cleanup would need to be done? I’m pretty much beginner coding.
-
Also I’ve tried using the remove and have never been able to figure it out.