Can we use video as a splash mode? Or play it right after default png loads?
Thanks [import]uid: 11559 topic_id: 20124 reply_id: 320124[/import]
Not as the splash, no, however playing a video immediately after the splash screen is certainly possible.
Peach
[import]uid: 52491 topic_id: 20124 reply_id: 78650[/import]
As peach said, as soon as default.png has loaded you can play a movie straight after
[import]uid: 84637 topic_id: 20124 reply_id: 78939[/import]
Thanks to all. [import]uid: 11559 topic_id: 20124 reply_id: 78940[/import]
Hi Danny and Peach,
When you say we can play the video right after, will it be a video like a cut scenes No controls, only tap to continue or next scene on video ending? I want to incorporate a video into a game but I don’t want the native video player with controls, I just want a full screen playing the video and the user can skip ahead by tapping the screen or wait until the video ends and taken to the menu. Is that possible right now?
Thanks,
Sid [import]uid: 7475 topic_id: 20124 reply_id: 85725[/import]
It sure is (subscribers only at present using daily builds)
Basically you play your video and if the user taps the screen you stop the video (and remove it) then change to your desired scene [import]uid: 84637 topic_id: 20124 reply_id: 85776[/import]
Hi Danny, gerat but the video can have NO controls on it right? So this way, it looks as if it’s part of the game. I need it just to have full screen of the video itself and nothing on it, no play, pause, stop etc. [import]uid: 7475 topic_id: 20124 reply_id: 85897[/import]
Hi. Yep that is correct
[import]uid: 84637 topic_id: 20124 reply_id: 85898[/import]
NICE! Thank you Danny! [import]uid: 7475 topic_id: 20124 reply_id: 85900[/import]
@ PL$ER
Its pretty easy to do.
Put this on your main.lua
-- Play video intro after default loads
local onComplete = function (event)
print ("video session ended")
end
media.playVideo("iphonelandscape.m4v", false , onComplete )
Dont forget to change your video file name.
Hope this helps
[import]uid: 11559 topic_id: 20124 reply_id: 85919[/import]
Thank you Ayena
[import]uid: 7475 topic_id: 20124 reply_id: 85928[/import]