PDA

View Full Version : how to show splash video during launching appication in sencha touch2



Rameshlamani
23 Aug 2012, 1:27 AM
Hi, I have done application using sencha, using phone gap build i am packaging these files. Right now i am able to show splash .png image during launching appication. but i need to show splash video to user while launching application. so i have added in place of source image path added video path not getting splash video. i want to know about is sencha touch2 support splash video or not. if it support means which type video format it will support. can any tell me how to achieve this one in sencha touch2.

Here is code for splash image: Config.xml (Working)

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.example"
versionCode="10"
version = "1.0.0">
<!-- versionCode is optional and Android only -->
<name>ABC</name>
<gap:splash src="resources/splash/def.png" width="1024" height="768" />
<gap:splash src="resources/splash/def.png" gap:platform="android" gap:density="ldpi" />
<icon src="resources/icons/xyz.png" gap:platform="ios" width="80" height="80" />
<icon src="resources/icons/xyz.png" gap:platform="android" gap:density="ldpi" width="100" height="100"/>
</widget>


Here is code for Splash video: config.xml (Not working)

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.example"
versionCode="10"
version = "1.0.0">
<!-- versionCode is optional and Android only -->
<name>ABC</name>
<gap:splash src="resources/splash/AVIFile.avi.mp4" width="1024" height="768" />
<gap:splash src="resources/splash/AVIFile.avi.mp4" gap:platform="android" gap:density="ldpi" />
<icon src="resources/icons/xyz.png" gap:platform="ios" width="80" height="80" />
<icon src="resources/icons/xyz.png" gap:platform="android" gap:density="ldpi" width="100" height="100"/>
</widget>