简体   繁体   中英

Animated Gif/Image on Apple TVOS using TVML

Is there a way to display animated .gif or video using TVML?

I tried using img tag but the image doesn't animate.

Apple does not provide a way to display it by default, but actually it is possible to creating a custom TVML element.

Because TVML is "transformed" to native Views, it is possible to create any kind of View you could also create in a "native" tvOS app.

I built a sample app to show how it works here: https://github.com/goergisn/custom-tvml-elements

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM