yixia / VitamioBundle

Vitamio for Android
http://www.vitamio.org/en/
Other
5.27k stars 2.07k forks source link

Vitamio based app not streaming video #18

Closed ghost closed 11 years ago

ghost commented 11 years ago

Wrote a test app which simply streams video from http://www.learnwake.com/samples/flv/HsFs3603dSequence_h.flv. All I see is a black screen. I tested the link on my computer using VLC Player and it streams fine. I then tested this link on my test app: http://ia600204.us.archive.org/2/items/Pbtestfilemp4videotestmp4/video_test_512kb.mp4 and it has the same problem, it won't play. Is there anywhere I can download an older version of the Vitamio library?

crossle commented 11 years ago

I test the two link, it's playback fine. can you tell us some error log?

ghost commented 11 years ago

Strangely enough, there's no errors in LogCat. Pressing the start button spits out this: 07-23 14:41:21.341: I/ActivityManager(96): Starting: Intent { cmp=com.example.vdemo/.Player } from pid 6564 07-23 14:41:21.481: I/ActivityManager(96): Displayed com.example.vdemo/.Player: +108ms

My source for this app is here: https://www.dropbox.com/sh/mf697dzxu0klase/2yylixeoX0 and the apk I compiled is here: https://www.dropbox.com/s/zswt0gjz0qx79ee/VDemo.apk

crossle commented 11 years ago

You can look the demo, must add the line code

if (!LibsChecker.checkVitamioLibs(this))
            return;
<!-- Don't forgot InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
ghost commented 11 years ago

Thanks! It works now. By the way, is it possible to customize the UI, since I need to put more emphasis on some controls rather than others