Skip to first unread message

Holly Eaves

unread,
Apr 25, 2018, 7:30:02 AM4/25/18
to MIT App Inventor Forum
Hello,

We have an app that utilizes the video player.  When the app is run on my Android phone, the video plays without issue.  On the Tablet, Samsung Galaxy Tab E ( Android OS 7.1.1) the video player "thinks" it is playing.   The play button is pressed, the progress bar increases but there is no picture or sound.  I am using AI companion emulator in both cases.  I have tried factory resetting the tablet, cleared caches, attempted to download other video players on the tablet amongst other efforts to no avail.  The tablet does not allow one to set a default video player.

Any help would be appreciated.

SteveJG

unread,
Apr 25, 2018, 10:41:38 AM4/25/18
to mitappinv...@googlegroups.com
No one can see or test your App's video player on their devices.  You might  post your Project's aia file or make a small working example showing how this fails on your Android 7.1.1   tablet and post the aia.  

No one to date has indicated any problems using the video component on any Tablet to date.  This behavior on your tablet  could be an issue due to using 7.1.1 or restrictions imposed by Samsung,  We do not know why this should happen without an example to try.  Is your phone a 7.0 device?

This https://developer.android.com/guide/topics/media-apps/video-app/building-a-video-player-activity.html  indicates Google made some changes to the  video player behavior for OS 7 that might affect using the VideoPlayer component behavior.  

Consider posting an aia of the Project or a smaller example.  Someone can test that and try to replicate this behavior and you can get advice.

I can confirm the VideoPlayer works on a Samsung TabA  7.0 tablet just fine using a small mp4 file.   You may wish to review the VideoPlayer documentation  http://ai2.appinventor.mit.edu/reference/components/media.html#VideoPlayer  .

Using this code

You can play a mp4 video like this.









Regards,
Steve
Reply all
Reply to author
Forward
0 new messages