Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 9    Views: 1073

LAS
I hate code!
Profile
Posts: 34
Reg: Apr 03, 2012
location unknow...
10,340
01/03/13 06:59 AM (11 years ago)

Video won't play in eclipse emulator

Hi there, I'm building an app which needs to contain embedded video (only 5 short clips, nothing huge). I've purchased the At53 video player plug in and included it in my app. Problem is, I can't get my video to play in the Android emulator. I'm using a Mac, the video is a 4MB mp4 file (.mov file created using iMovie and converted with Handbrake). It is definitely packaged within the app- I've copied the file into Eclipse and it is showing under BT_Video in the package explorer. The name in my control panel is the same as the file, no capitals. When I press play on the emulator it says "loading.." and the wheel spins, but nothing happens, however long I leave it. My LogCat says: 01-03 13:43:46.366: W/ZZ(300): At53_video_player:playVideo 01-03 13:43:46.523: W/ZZ(300): At53_video_player:playVideo EXCEPTION copying video to /sdcard 01-03 13:43:46.523: W/ZZ(300): At53_video_player:playVideo no videoFileName or videoURL provided? Any help much appreciated!
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
01/03/13 08:13 AM (11 years ago)
Hi @cfg1006, I have never used this plugin, but does it use a link to play the video? Android emulators have problems playing videos. LA
 
LAS
I hate code!
Profile
Posts: 34
Reg: Apr 03, 2012
location unknow...
10,340
like
01/03/13 08:54 AM (11 years ago)
Hi LA, Thanks for your reply. There's no link involved and the video will play if I click on it within the package explorer. Perhaps it is the emulator, Eclipse seems to do some funny stuff and I'm only just getting to know my way around. Any other ideas, then please let me know! It would be good to know for sure so I can either stop spending all my time on this one element and trust (for now) that it will work okay on a real device, or find an alternative.
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
01/03/13 08:57 AM (11 years ago)
Try to test on real device first. LA
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
01/03/13 09:09 AM (11 years ago)
I run the Android emulator from Windows and it usually won't play videos, so I run the apk file on the device and it usually shows the video there.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/03/13 09:11 AM (11 years ago)
Thanks for purchasing! It sounds like you have everything in order- >> no videoFileName or videoURL provided? that's Eclipse not finding the file.... How about testing this URL link - http://archive.org/download/Pbtestfilemp4videotestmp4/video_test.mp4 will it play that remote video if you put that in the Control Panel? This will tell us if Eclipse/local is the issue....
 
LAS
I hate code!
Profile
Posts: 34
Reg: Apr 03, 2012
location unknow...
10,340
like
01/03/13 09:47 AM (11 years ago)
No problem, it's the perfect plug in for my app! Okay, I've tried it with the URL and I'm getting exactly the same result. Is that good or bad? Thanks
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/03/13 10:37 AM (11 years ago)
testing wise that's good as we're getting the same result. Let me pull down some fresh source code and build a quick app with the plug-in. There have been changes to some of the BT Core files lately and I want to verify that isn't part of the issue here...
 
Mr stuck
Android Fan
Profile
Posts: 974
Reg: Apr 09, 2012
Fife, Scotland
15,740
like
01/03/13 11:22 AM (11 years ago)
@ATRAIN53 Does the plugin stream YouTube videos?
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/03/13 11:41 AM (11 years ago)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.