Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [BUG] PlayvideoToImage flips the image on Android

Author
Message
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 27th Apr 2017 10:22
I'm trying to implement looping video, and use the following code called every frame before the sync, which works fine on iOS but not on Android.

if Not GetVideoPlaying () then PlayvideoToImage (100000)

On Android this inverts the image for a few milliseconds.
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 27th Apr 2017 20:58 Edited at: 27th Apr 2017 21:07
Confirmed in Tier 2 on Android
what system do you use?

I hope there will be a non- update workaround for this. :S

Let's find out what it is.

Tier2 thaught me, that the video is actually reloaded, when you call "PlayvideoToImage".
This happens due to the video method in java - This flip is likely to be caused by the loading delay.

Does it also flip, if you reset the position of the video to zero in order to loop?


Pls post resultz.

[/url]
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 2nd May 2017 15:36
I can confirm that you can get around this issue by setting the play position to 0 before it gets to the end of the video.
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 8th May 2017 09:22
I should also add that this solution doesn't work on iOS. SetVideoPosition() doesn't seem to work at all on iOS so I had to version the code to function differently depending on the platform.


Login to post a reply

Server time is: 2024-09-30 03:19:01
Your offset time is: 2024-09-30 03:19:01