Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Support "video" source type #601

Closed
Closed

Description

@incanus

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.

Activity

  1. added
    GL JS parity
    on Nov 13, 2014
  2. ljbade commented on Nov 14, 2014

    @ljbade
    Contributor

    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

  3. ljbade commented on Nov 14, 2014

    @ljbade
    Contributor

    @artemp wasn't there a project split a while back from ffmpeg? what is the other one?

  4. artemp commented on Nov 14, 2014

    @artemp
    Contributor
  5. jfirebaugh commented on Nov 14, 2014

    @jfirebaugh
    Contributor

    My first instinct is to use platform APIs here.

  6. ljbade commented on Nov 16, 2014

    @ljbade
    Contributor

    @jfirebaugh OK on Android we can use the builtin OpenMAX AL interface to the hardware video decoder. This is only available for Android 4.x and above, do we just not support video on older 2.x and 3.x devices? Or do we also add libav or ffmpeg for video decode?

    There is also the private lib stagefright

    Also see:

    @incanus what platform support does iOS have?

    Linux will likely use system provided libav or ffmpeg.

  7. ljbade commented on Nov 16, 2014

    @ljbade
    Contributor

    Also can we make a call on whether we should only support H.264? It will make things a lot easier.

  8. jfirebaugh commented on Nov 17, 2014

    @jfirebaugh
    Contributor

    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 <video> element -- the style author can provide several source URLs in different formats and the renderer will pick the one with best support.

  9. incanus commented on Nov 17, 2014

    @incanus
    ContributorAuthor

    My first instinct is to use platform APIs here.

    I'm leaning this way as well.

    @incanus what platform support does iOS have?

    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.

  10. kkaefer commented on Nov 24, 2014

    @kkaefer
    Member

    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.

  11. changed the title [-]port video support[/-] [+]Support "video" source type[/+] on Sep 27, 2016
  12. added
    Core
    on Sep 27, 2016
  13. dylan-chong commented on Jul 23, 2018

    @dylan-chong

    Is this issue dead? :|

  14. ChrisLoer commented on Jul 23, 2018

    @ChrisLoer
    Contributor

    @asheemmamoowala Do I remember you had an example of how to include video support via custom layers?

  15. asheemmamoowala commented on Aug 16, 2018

    @asheemmamoowala
    Contributor

    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.
    ezgif com-resize

  16. added
    archived
    on Feb 12, 2019
  17. stale commented on Feb 12, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreGL JS parityarchived

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions