Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Video in simulator
Started by waltsir Sep 15 2019 06:35 AM

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

waltsir

[GLOBAL: userInfoPane.html]
waltsir
  • Contributor

  • 172 posts
  • Corona SDK

Hello,

Our project game on Windows needs to launch a video before each level. When this lack will be solved?



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,271 posts
  • Corona SDK

I don't expect video support to be added for Windows anytime soon.

 

There's a workaround using HTML5 to play the videos. See Roaming Gamer's sample project on Github:
https://github.com/roaminggamer/RG_FreeStuff/tree/master/AskEd/2019/06/videoTest



[TOPIC: post.html]
#3

waltsir

[GLOBAL: userInfoPane.html]
waltsir
  • Contributor

  • 172 posts
  • Corona SDK

Thanks for the workaround, I will take a look. But, if the video doesn't play in the simulator, is it normal it doesn't start when exported for Windows too?

[TOPIC: post.html]
#4

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,271 posts
  • Corona SDK

Both media.playVideo() and native.newVideo() do work on the simulator, but just not on Windows. That HTML5 workaround works on Windows too, both on simulator or as win32 build. If the HTML5 video doesn't work on your simulator, then you've done something wrong.



[TOPIC: post.html]
#5

waltsir

[GLOBAL: userInfoPane.html]
waltsir
  • Contributor

  • 172 posts
  • Corona SDK

That's strange because, when I start the example in the simulator get this "WARNING: Native video objects are not supported in the simulator. Please build for device."




[topic_controls]
[/topic_controls]