questions about my app

i tried to show a youtube video in my phone using native.new web view

and i’m showing the video but it’s able to scroll down… how do i show a youtube video without being able to scroll down ?

and ALSO

i saw allot of people SHARING TO WHATSAPP pictures and news, can anyone tell me if it’s possible in lua, corona and also how to do it ?

Hello shay, 

The problem with the web view is that the scroll is under it, and you can block it. 
The other solution, is to use : 

local video = native.newVideo( display.contentCenterX, display.contentCenterY, 640, 360 ) local function videoListener( event ) print( "Event phase: " .. event.phase ) if event.errorCode then native.showAlert( "Error!", event.errorMessage, { "OK" } ) end end -- load a remote video video:load( "http://www.coronalabs.com/video/bbb/BigBuckBunny\_640x360.m4v", media.RemoteSource ) video:addEventListener( "video", videoListener ) -- play video video:play()

you can look in ressources/api libraries et native new video.

Kévin

Hello shay, 

The problem with the web view is that the scroll is under it, and you can block it. 
The other solution, is to use : 

local video = native.newVideo( display.contentCenterX, display.contentCenterY, 640, 360 ) local function videoListener( event ) print( "Event phase: " .. event.phase ) if event.errorCode then native.showAlert( "Error!", event.errorMessage, { "OK" } ) end end -- load a remote video video:load( "http://www.coronalabs.com/video/bbb/BigBuckBunny\_640x360.m4v", media.RemoteSource ) video:addEventListener( "video", videoListener ) -- play video video:play()

you can look in ressources/api libraries et native new video.

Kévin