An iOS app to watch Realm videos and slides at the same time on your phone.
Realm is an amazing resource to watch different talks from various conferences and meetups. They publish videos and slides of each talk and itβs all great as long as you are not watching them from your iPhone or iPad. In that case, as soon as you start the video, a MPMovieViewController
will take all the space on your screen and the slides are not visible. Video without slides is π
@realm is aware of the issue but there is no real workaround as you can see from this tweet. Until now.
Realm Video uses a UIWebView
to take advantage of the great Realm website with the slides being automatically in sync with the video. A Javascript function is used to locate the video element on the page and scroll to it. The HTML element that takes care of showing the slides is also located by finding its id. A MPMovieViewController
object is presented as soon as the video is started and a UIView
is added on top of it by accessing the window hierarchy. A function runs in the background every second and renders a screenshot of the current slide in the UIWebView
. In this way, we keep the video and slides always in sync. The rendered image is then added to the floating UIView
to be always visible to the user.
A few cool features:
This project was developed in ~7 hours. It was tested on an iPhone 6s Plus only and it could use some more work to turn it into a real app. Pull requests are very welcome!
Run pod install
and open the workspace project in Xcode, build & run, enjoy. π
You are very welcome to add new features and fix bugs. Feel free to open as many issues and pull requests as you want. π
Iβm Patrick Balestra.
Email: [email protected]
Twitter: @BalestraPatrick.
RealmVideo is available under the MIT license. See the LICENSE file for more info.
Realm uses a few different video providers. The app was tested with Youtube videos a few a other services. If you find a page that is not compatible, please open an issue or submit a pull request.