Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Get the color of a pixel from a video on screen
Started by novelda76 Dec 06 2018 01:36 AM

4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

novelda76

[GLOBAL: userInfoPane.html]
novelda76
  • Observer

  • 8 posts
  • Corona SDK

Can i get the color of a pixel from a video on screen? My app has a video at the lower half of the screen and need to display a background color from this video at the upper half of the screen.

 

Thanks



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,997 posts
  • Corona SDK

What API are you using to play the video?

 

Rob



[TOPIC: post.html]
#3

novelda76

[GLOBAL: userInfoPane.html]
novelda76
  • Observer

  • 8 posts
  • Corona SDK

Hi Rob, i'm using native.newVideo()



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,997 posts
  • Corona SDK

native.* API's run outside of the Corona OpenGL canvas. We have no access to that information from Corona. It might be possible to write a native feature that can do that using Corona Native.

 

Rob



[TOPIC: post.html]
#5

novelda76

[GLOBAL: userInfoPane.html]
novelda76
  • Observer

  • 8 posts
  • Corona SDK

Ok, thank you Rob.

 

Xavier




[topic_controls]
[/topic_controls]