The new update hasnt fixed any of the bugs with webm video playback on windows.
Some webm videos that play just fine in a web browser will crash an AppGameKit application. See attached
https://forum.thegamecreators.com/thread/221818
-video seeking on android is really bad (scrubbing is impossible)
Here is some code to do paused video scrubbing - it works on windows (if the video can even be played by agk), but does not work on android
rem
rem Video Playback Example
SetWindowAllowResize( 1 )
rem Load Video
LoadVideo("bird.webm")
//SetVideoDimensions(0,0,100,93)
rem Main loop
cursorToVideoPosition as float
do
print(GetScreenBoundsRight())
if GetPointerState()=1
rem Reset video
PlayVideo()
cursorToVideoPosition = renormalize(GetPointerX(),0,GetScreenBoundsRight(),0,GetVideoDuration())
print(cursorToVideoPosition)
SetVideoPosition(abs(cursorToVideoPosition))
PauseVideo()
Sleep(30)
endif
//print(GetPointerX())
//print(GetVideoDuration())
// print(normalizeValue ( GetPointerX(), 0.0, 100.0 ))
// print(denormalize(normalizeValue ( GetPointerX(), 0.0, 100.0 ),0,GetVideoDuration()))
Sync()
loop
function normalizeValue(value as float,min,max)
normalized as float
normalized = (value - min) / (max - min)
endfunction normalized
function denormalize(normalized as float, min as float, max as float)
denormalized as float
denormalized = (normalized * (max - min) + min)
endfunction denormalized
function renormalize(value as float,oldMin as float,oldMax as float,newMin as float,newMax as float)
renormalized as float
renormalized = denormalize(normalizeValue ( value, oldMin, oldMax ),newMin,newMax)
endfunction renormalized
-most webm files crash the application on windows
I wanted to make a 360 video player app with AppGameKit for google Daydream .. unfortunately with such bad support for webm AGKis not going to be the engine to do it with
Right now the best engines to do this are
Unity:
https://unity3d.com/solutions/360video
three.js
https://www.learnthreejs.com/three-js-vr-360-video-tutorial-videotexture/
and online demo
https://threejs.org/examples/webgl_video_panorama_equirectangular.html
AGK cant even play most webm files