Video (MP4) [iOS/Android]

mdotedot

  • *
  • Posts: 1099
Only one block: Play URL -------

Extension:
https://dl.dropboxusercontent.com/u/107982821/stencyl/Video/Video.zip

Android publication:
https://dl.dropboxusercontent.com/u/107982821/stencyl/Video/Video.apk


Example URL used in game:
https://dl.dropboxusercontent.com/u/107982821/stencyl/1.mp4

Yes: it is a short video and stops abruptly.


Restrictions:
* iOS 9 : use HTTPS URL otherwise it will quit your app
* No controls on video
* Loading takes some time
* There is bound to be a maximum on the video you use .. memory .. size .. etc..

With special thanks to Original work by: Dom818, GeorgeN
 

« Last Edit: March 06, 2016, 05:42:30 am by mdotedot »
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

LIBERADO

  • *
  • Posts: 1949
Thanks a lot, @mdotedot

Tested on Android, and it works.

It would be ideal to have blocks to set the size and position of the video player window, as well as the possibility of playing a video file stored in the "extras" folder to get an immediate video playback.
Also, it would be useful to have a block to check if the video playback has finished.

I would like to add to my games some short video intros as this feature gives a very professional look to commercial games.

« Last Edit: March 06, 2016, 09:16:01 am by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

mdotedot

  • *
  • Posts: 1099
Yes, I know that those blocks would be useful. But I'm not working on this anymore. Maybe next year.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

camaleonyco

  • *
  • Posts: 204
@mdotedot Thanks a lot for your contribution!
It would be ideal to have blocks to set the size and position of the video player window, as well as the possibility of playing a video file stored in the "extras" folder to get an immediate video playback.
Also, it would be useful to have a block to check if the video playback has finished.
Exactly, without those 3 features the extension is not very useful to me. I tried to modify it to play the videos fullscreen on Android by default, without luck so far. Is anyone else trying to add those features?

Sorry for my English.

« Last Edit: March 28, 2016, 09:57:50 am by camaleonyco »