-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support "video" source type #601
Comments
ah, this is going to be hard and need a lot of dependencies, guess we start with whatever lib VLC is using if we want a lot of format support or do we just allow h.264 only so we only depend on one library or on android we could perhaps leverage the platform support for video, need to look at how we can do this from native without being too slow |
@artemp wasn't there a project split a while back from ffmpeg? what is the other one? |
@ljbade - yes, there is http://libav.org/. Both libs seems to be active - I guess we need pick one. |
My first instinct is to use platform APIs here. |
Also can we make a call on whether we should only support H.264? It will make things a lot easier. |
I think it would be fine for certain platforms to support H.264 only. The way a GL style video source works is modeled on the HTML5 |
I'm leaning this way as well.
APIs are great, from what I hear, but I don't have a lot of direct experience. I've done a bit on iPad with assembling frames of video and syncing to audio, but not much. But in general, media support is pretty nice on iOS with good high-level APIs. |
We definitely should use platform APIs here. I think it's fair to not support video on Android 2/3, and to require H.264. |
Is this issue dead? :| |
@asheemmamoowala Do I remember you had an example of how to include video support via custom layers? |
There's a demo of how to do this using custom layers at: https://github.com/asheemmamoowala/MapboxMapVideoLayer The video is jittery at high zooms when being interacted with, and it consumes a lot of energy. |
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
https://github.com/mapbox/mapbox-gl-js/blob/mb-pages/js/source/video_source.js
I'm imagining this is going to work totally differently than JS. That AFAICT uses an out-of-view video
<div>
that plays back and whose content snapshot is grabbed periodically to use in GL frames.On native we'd likely have to decode video directly and get frames that way.
The text was updated successfully, but these errors were encountered: