Display video on windows build

This seems to be a very basic feature but I didn’t find a way to do this.

How show a video on a windows build application? “media.play()” and “native.newVideo()” don’t work. 

Is there some plugin? Can I build a plugin to do that? Could someone give me a direction?

Thanks

Hi.

It’s a bit cumbersome, but maybe this libVLC stuff would work for you. I know of at least one person who has used it in production.

Unfortunately, video only seems to be a very basic feature.  :slight_smile:

I believe there  a webview full screen video sample that comes with the simulator.

This works in the simulators, on desktop, and on devices: https://docs.coronalabs.com/daily/api/library/native/newWebView.html

And can display streamed videos, perhaps local too?  Best to test and find out.

My guess is to do local, you’ll need an HTML file that does the loading/viewing of the video.

Are you sure this method works on simulator or windows build? I can’t make it work!

When using newWebView() on simulator I got:

WARNING: Web views are not supported in the simulator. Please build for device.

When using newWebView() in a windows build I got a black screen and no errors in Corona Output Viewer .

In both I tried a fresh project with just the following main.lua file:

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480 ) webView:request( "http://www.coronalabs.com/" )

I’m running  CoronaSDK-2016.2992.msi and Windows 10 Pro.

You’ll need to use an up-to-date version of Corona:

https://developer.coronalabs.com/downloads/daily-builds/

Support for this was added in version: 

 2016.3011

Hi.

It’s a bit cumbersome, but maybe this libVLC stuff would work for you. I know of at least one person who has used it in production.

Unfortunately, video only seems to be a very basic feature.  :slight_smile:

I believe there  a webview full screen video sample that comes with the simulator.

This works in the simulators, on desktop, and on devices: https://docs.coronalabs.com/daily/api/library/native/newWebView.html

And can display streamed videos, perhaps local too?  Best to test and find out.

My guess is to do local, you’ll need an HTML file that does the loading/viewing of the video.

Are you sure this method works on simulator or windows build? I can’t make it work!

When using newWebView() on simulator I got:

WARNING: Web views are not supported in the simulator. Please build for device.

When using newWebView() in a windows build I got a black screen and no errors in Corona Output Viewer .

In both I tried a fresh project with just the following main.lua file:

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480 ) webView:request( "http://www.coronalabs.com/" )

I’m running  CoronaSDK-2016.2992.msi and Windows 10 Pro.

You’ll need to use an up-to-date version of Corona:

https://developer.coronalabs.com/downloads/daily-builds/

Support for this was added in version: 

 2016.3011