0

sencha を使用してアプリケーションを作成し、phone gap build を使用してこれらのファイルをパッケージ化しています。現在、アプリケーションの起動中にスプラッシュ .png 画像を表示できます。しかし、アプリケーションの起動中にユーザーにスプラッシュ ビデオを表示する必要があります。だから私はスプラッシュビデオを取得していないビデオパスを追加したソース画像パスの代わりに追加しました。sencha touch2 がスプラッシュビデオをサポートしているかどうかについて知りたいです。サポートする場合は、サポートするビデオ形式を意味します。sencha touch2 でこれを実現する方法を教えてください。

スプラッシュ画像のコードは次のとおりです: 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>

スプラッシュ ビデオのコードは次のとおりです: config.xml (動作しません)

<?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>
4

1 に答える 1

1

Phonegap または Sencha で指定したスプラッシュ画像を削除します。次に、IFRAME または html5 ビデオ タグを使用して、index.html ファイルにビデオを追加します。使用しているタグに ID を提供します。

次に、Senchalaunch関数の ID で要素にアクセスし、DOM から削除します。欲しいものは手に入るはずです。

于 2012-08-24T10:59:29.303 に答える