Does the new video support touch events?

Does anyone know if the new video method supports touch events? I’m trying to detect where on the video it is touched. I thought of playing the video in the new webview but it does not support this. And I cannot put a button on top of the control to detect it.

Thanks

Warren
[import]uid: 184193 topic_id: 32712 reply_id: 332712[/import]

Hi Warren,
Somebody in the forums mentioned that you can just add a core Runtime listener that detects a touch, and thus it behaves just as if an “object-based listener” resided over top the video. I haven’t personally tested this, but it sounds like it’s fully viable.

Runtime:addEventListener( "touch", doSomething )  

Brent
[import]uid: 9747 topic_id: 32712 reply_id: 130092[/import]

Hi Warren,
Somebody in the forums mentioned that you can just add a core Runtime listener that detects a touch, and thus it behaves just as if an “object-based listener” resided over top the video. I haven’t personally tested this, but it sounds like it’s fully viable.

Runtime:addEventListener( "touch", doSomething )  

Brent
[import]uid: 9747 topic_id: 32712 reply_id: 130092[/import]

Has anyone added the runtime listener to the new native video that Brent mentioned above? It is only available to test on iOS so I have not had a chance. I did try the native webview and the listener but the native webview stayed on top. So I am wondering if the native video will act the same way.

Warren
[import]uid: 184193 topic_id: 32712 reply_id: 130736[/import]

I am not sure if this is the place to ask this question, but am not sure where else to ask.

Can I record a video using the Corona SDK media or video objects. I have found ways to capture a picture, but I cannot seem to find away to capture a video.

[import]uid: 120553 topic_id: 32712 reply_id: 130741[/import]

Has anyone added the runtime listener to the new native video that Brent mentioned above? It is only available to test on iOS so I have not had a chance. I did try the native webview and the listener but the native webview stayed on top. So I am wondering if the native video will act the same way.

Warren
[import]uid: 184193 topic_id: 32712 reply_id: 130736[/import]

I am not sure if this is the place to ask this question, but am not sure where else to ask.

Can I record a video using the Corona SDK media or video objects. I have found ways to capture a picture, but I cannot seem to find away to capture a video.

[import]uid: 120553 topic_id: 32712 reply_id: 130741[/import]

Why didn’t you start a new thread asking that rather than in this thread?? [import]uid: 184193 topic_id: 32712 reply_id: 130813[/import]

Why didn’t you start a new thread asking that rather than in this thread?? [import]uid: 184193 topic_id: 32712 reply_id: 130813[/import]

Hello @cfernandez,
I’ll just address this here… at this time, it’s not possible to record video in Corona… only to display it.

Brent Sorrentino
[import]uid: 9747 topic_id: 32712 reply_id: 131092[/import]

Hi Warren,
I also just want to confirm, for your question, that adding a Runtime touch listener allows you to “sense touches” through a native newVideo object (I just tested it myself in both iOS 5.x and 6.0). So, if the video is fullscreen, you can use this method to stop or skip or end the video; whatever you need to do.

Brent
[import]uid: 9747 topic_id: 32712 reply_id: 131101[/import]

Thanks Brent!! Im not trying to record video. I want to play a mov video file and detect touches on the video. Do you know if I can get the X/Y coordinates of the touch? [import]uid: 184193 topic_id: 32712 reply_id: 131104[/import]

Hi Warren,
Yep, you can get the X/Y location of the touch, and the phase (began, ended, etc.). I just tested and confirmed this as well. :slight_smile:

Brent
[import]uid: 9747 topic_id: 32712 reply_id: 131108[/import]

Thanks Brent! You saved my life! I have recently bought an iPad so I can develop and test for iOS now. I’m about to subscribe my Corona SDK today or tomorrow also. I just need to learn how to test the iOS apps. I read something about having to subscribe on Apple for $99 and other steps. Android was so easy to test for me!

Warren
[import]uid: 184193 topic_id: 32712 reply_id: 131115[/import]

Hello @cfernandez,
I’ll just address this here… at this time, it’s not possible to record video in Corona… only to display it.

Brent Sorrentino
[import]uid: 9747 topic_id: 32712 reply_id: 131092[/import]

Hi Warren,
I also just want to confirm, for your question, that adding a Runtime touch listener allows you to “sense touches” through a native newVideo object (I just tested it myself in both iOS 5.x and 6.0). So, if the video is fullscreen, you can use this method to stop or skip or end the video; whatever you need to do.

Brent
[import]uid: 9747 topic_id: 32712 reply_id: 131101[/import]

Thanks Brent!! Im not trying to record video. I want to play a mov video file and detect touches on the video. Do you know if I can get the X/Y coordinates of the touch? [import]uid: 184193 topic_id: 32712 reply_id: 131104[/import]

Hi Warren,
Yep, you can get the X/Y location of the touch, and the phase (began, ended, etc.). I just tested and confirmed this as well. :slight_smile:

Brent
[import]uid: 9747 topic_id: 32712 reply_id: 131108[/import]

Thanks Brent! You saved my life! I have recently bought an iPad so I can develop and test for iOS now. I’m about to subscribe my Corona SDK today or tomorrow also. I just need to learn how to test the iOS apps. I read something about having to subscribe on Apple for $99 and other steps. Android was so easy to test for me!

Warren
[import]uid: 184193 topic_id: 32712 reply_id: 131115[/import]