Hello everyone I am building an android app on the appery.io platform. It basically seems to be a mix of java and html5 but for the most part follows the same rules as building an app in eclipse. Anyways I need help with integrating a youtube player into my build, and am not at all good with coding I have done some work but I don't believe it is the best option. I have attached a copy of the current java code that im using and the manifest file. I cannot get the player to default to full screen on play, and it will not play the video once the app is loaded on device, I get error saying this video content not available on mobile device. As you can tell I have many kinks in need of serious help.
Related
Evo's default music app handles M3U playlists easy, which is great but unfortunately doesn't support it's unicode twin - M3U8. M3U8 and M3U playlists are exactly same thing (minus utf8 encoding), so I really see no reason why HTC didn't include it in their supported-playlist-formats list.
Knowing Android is open source and hoping that HTC did the same, did HTC release source code for their Music app? I'm new to android, but not new to programming. I'll have no problem in adding M3U8 support to HTC's music app but couldn't find any source code to work with. Anyone here has or could point me in right direction to the HTC Music source code (if there are any)?
Tanks!
PS: probably could have posted in the dev section, but being new to android and owning HTC Evo, felt that posting in Evo's app section was appropriate
HTC apks and framework are closed source.
bummer... seems like its back to editing smali code again
I take that back....
Tried 3 different music apps: doubleTwist, HTC Music, and Nemo Player. All three are from different companies/developers yet they all seem to run on same database. Same music files, same albums, same playlists - including those which I already manually deleted from sdcard but for some reason still show up in all three players.
Conclusion? Those music apps are nothing more that just a UI for android's music engine, well maybe except some minor features that each app tried to add to android, but other than that - they do same thing, using same database.
My first thought is that the android core is the one that scans sdcard for audio and playlist files and stores the results in public database. Now, if that's true then, since android is open source, I'll simply have to track down where in the android code does it differentiates between "valid" and "invalid" playlist file.
Anyways, so much for that. See ya in few days while I try digging deeper into android code
EDIT: using notepad++, I changed all M3U playlist char encoding to UTF8, which technically is not a proper M3U file, but android properly parsed the non-ansii characters as I wanted. WOW!
Android is the ONLY mobile OS that was able to play UNICODE m3u playlists by default! Now I'm even more happy with Evo than I was
Hi there,
I noticed that the Nexus S did not play all of the DVIX films I have that would play with the Samsung Galaxy i9000. I used mVideoPlayer. I presume that it is missing codecs.
Is there a way to install missing codecs, that would not have been included by default in Android 2.3?
Regards, F.
Try Rockplayer, its free in the market.
I know of RockPlayer, but this was not my question (although its clear that Rockplayer has the codecs in it)
I want to install the codecs so that any app can play the video whether its stock, mVideoPlayer or others.
Looks like RockPlayer that might use libavcodec. Did anyone attempt to compile this for Android 2.3.4?
For those interested, there is an article here about compiling this.
http://odroid.foros-phpbb.com/t338-ffmpeg-compiled-with-android-ndk
OP i came from a galaxy S i know what you're talking about
use Dice Player it new and it supports most vid/audio codecs with hardware support
like in the galaxy S
I don;t think this is the best way forward. Compiling, and making generally available, the correct libraries would better serve us.
FFmpeg is available as per my link. I'll check what it really can decode, and then try and compile this. This'll take a week or so (min) as I have lots of other work to do At least the library is available fro Android. I think it strange that even Debian can install the proprietary codecs within a few clicks, yet stock Android cannot.
forgetmyname said:
I don;t think this is the best way forward. Compiling, and making generally available, the correct libraries would better serve us.
Click to expand...
Click to collapse
What do you want everything for free
he freely released his source if you actually looked
Devs have to put food on their plate also
$3 is pocket change especially considering the caliber of the apps capabilities until you put forth something to this caliber and freely distribute you have no right to complain
And FYI if you looked at Dice player source you would know it was compiled with FFmpeg
http://vpn.inisoft.co.kr:8000/public/DicePlayer/
demo23019 said:
What do you want everything for free
he freely released his source if you actually looked
Devs have to put food on their plate also
$3 is pocket change especially considering the caliber of the apps capabilities until you put forth something to this caliber and freely distribute you have no right to complain
And FYI if you looked at Dice player source you would know it was compiled with FFmpeg
http://vpn.inisoft.co.kr:8000/public/DicePlayer/
Click to expand...
Click to collapse
Your comments have no place in this thread. This is a discussion about missing codecs, that are freely available with the majority of all modern operating systems. Neither is this a complaint thread. It is about seeking information and taking action. I advise that you read the thread once more.
An analogy: When I purchase a telephone I expect it to be able to be able to hear the called party not only connect the call. I should not have to pay extra for the missing sound; The same is applicable to a built-in video player.
Your statement "what do you want everything for free" is clearly misinformed, when I would have to pay, and am willing to pay, 550 EUROs (775 USD) for a Nexus S. I might suggest that you take this up with Google.
This thread went down the path of compiling ffmeg: I was going to do this myself, and making this freely available. It would follow that I might write the front-end player myself. If I did this, and sell it myself on the Market, then according to you I am a free-tard. I suppose that this is true of all other developers out there. Arguably there would now be another player on the market - I don't think this would really help as others have more experience in this.
It is my opinion that Google should make all codecs easily available. It is not a lot to ask, especially as the likes of Canonical and Debian can do the same.
It was a complete P.I.T.A but I just finished building VLC. I had to upgrade my Linux distro, upgrade from Android SDK 15 to 17, install the NDK, install Eclipse from source (the version in the repos wasn't current enough), install the Android Developers Tools plugin for Eclipse, install about 30 different dependencies on Ubuntu, download over 1GB of Android SDK modules, and finally pull the Android VLC sources. Then I had to wait about 30 minutes while my ridiculously slow netbook compiled the source code, and THEN I had to compile the result of THAT in Eclipse.
The end result is an alpha build of VLC that runs on our phones (despite being built against the Gingerbread libs). It does in fact work, I just tested a couple video and audio files. I've tested the build with NEON enabled (hardware accelerated decoding) which seems to be okay and is in fact enabled on our SK4G. That being said, tomorrow i'll probably hit it again and build without NEON and see if it's more stable.
ENJOY
*** SCREENSHOTS
Uploaded with ImageShack.us
Uploaded with ImageShack.us
*** DOWNLOAD
https://rapidshare.com/files/648759753/vlc.apk
Ill give it a try in the morning looks legit. Are subtitles working? Like with mkv?
Sent from my SGH-T839 using XDA
I haven't tested subtitles yet. I tried one .mkv which caused the app to hang, but it was an odd format that I actually ripped from youtube. (it was a .webm which is basically a renamed .mkv)
Oh, and in case you're wondering why it says "no media" when you start it, you have to go into preferences and select which directories it reads from. mine are set to /sdcard/Music and /sdcard/Videos.
Unintentional kang
I didn't realize until I tried rebuilding VLC on my other computer today, but I uploaded someone else's VLC build (and a rather old one at that). I should really clean up my home directory because it's full of random APK files (both compiled and decompiled) and SDK components at the moment. I rebuilt about 4 times today, encountering all manner of errors along the way but after i finally got the issues all sorted out, the resulting build only runs on Gingerbread and ICS. This is because the Froyo code has been stripped from the the code base in the VLC git, so it's pretty much a no go on our phones until we get a Gingerbread ROM. On the upside, I just tested my VLC build on my old LG Optimus running CM7 and it works like a champ. I'll post the build I just made if anyone is interested, not that it does us any good on our SK4G
I'm definitely interested! Can you post your build. Does your build allow for entry of rtsp url to connect to a stream? Thanks a ton
no, there is no support for streaming built into the VLC app and I don't think there will be. There was no mention of it in the code, so I think that the VLC app is simply intended to be for local files only and be able to handle video playback of most file types and codecs. So far, I haven't been too impressed with it. It was a lot of work to get it up and running only to find that it lags far behind competitors like Mobo player and Rock player. Then again, it's still an alpha software so I'm sure file support will come.
I'm not sure why, but I wasn't able to locate a single media file using VLC. (And I have songs, and a few .mp4 on the SD Card.) Anyways, thanks for compiling this.
Ok so, i'm completely new to app developing, and i know a small amount of coding (python, some java) and i got real tired of the Play Music app displaying bad quality album art, all the other apps on the market look bad or just have "too much" so to speak. So i thought why don't i just make my own app? i was thinking of making it look kind of like the ios 6/7 music player since it looks really nice and straight forward, but i don't know if i should start from scratch or use an open source music app and start from there? and if possible for someone to tell me if its gonna be a pain in the bottom. if you guys know of or have an app that resembles what i am looking for, it would be kind of you to provide it
I am on a Moto X running 4.4.2
any input is appreciated!
thanks!
if you have some knowledge from java.you need use a music player open resource and edit,reskin that you own.
Hello Fellow Nexus Payer Owners! I have started a dev project to get MPEG2, VC1, and WMA hardware decoding working on the Nexus Player in hopes together we can enable this. I have never attempted anything more than built roms from asop with slight modification so Im going to need some assistance on this project
Description of Issue
The Nexus Player had great possibilities had it not been rushed to market with buggy applications and lack of hardware codec licencing. To me this product would be the perfect HTPC if Plex had worked with 5.1 audio (DTS/AC3) pass-through and MPEG2 hardware decoding for use with my HDHomeRun Prime for live TV. But Asus or Google dropped the ball as this is not enabled so the HDHomeRun View app has to fall back to software decoding which make the stream very choppy. Most cable companies are still using MPEG2 for now.
Here is a discussion on the Nexus Player over at the Silicon Dust's Forums:
http://www.silicondust.com/forum2/viewtopic.php?f=81&t=17894
Research into MPEG2 on Android
Searching Around the fourms I stumbled on this post enabling hardware decoding on the Nexus 7 2013 and other ARM devices.
http://forum.xda-developers.com/showthread.php?t=2517925
It seems they pulled libOmxCore.so from Cyanogenmod 11 on various devices and edited the media_codecs.xml. Ive contacted both contributors in hope I can discuss this with them. Im not sure there is any x86 CM12 Devices we can extract the libOmxCore.so from to test on the NP and thats if they have even merged they media codecs in CM12 yet.
Here are some projects and discussion for building ffmpeg into android which may enable MPEG2 decoding:
http://stackoverflow.com/questions/4725773/ffmpeg-on-android
https://github.com/appunite/AndroidFFmpeg
https://github.com/guardianproject/android-ffmpeg
Ffmpeg on Android x86
https://software.intel.com/en-us/android/blogs/2013/12/06/building-ffmpeg-for-android-on-x86
As of right now Im just gathering information to get started on this project so anyone with any input will be appreciated.
Once I get my Nexus Player the way I want it and if there is a custom recover (ahemm TWRP) I will post my personal build for you to try out.
*EDIT* Google has pushed Android 5.0.1 (build LRX22C) to AOSP with reports that it has fixes for "video issues". Fingers crossed they enabled MPEG2 hw decoding so I don't have to
XDA:DevDB Information
VC1/MPEG2/WMA hardware decode on the Nexus Player, Device Specific App for the Nexus Player
Contributors
WhiteWidows, whitewidows, god_md5, kennylam
Version Information
Status: Testing
Created 2014-12-03
Last Updated 2014-12-03
Very very happy to see I'm not the only one interested in this feature. I have a lot of dvd movies muxed into mkv in my plex server. My plex server does not have the power to transcode so to get Nexus player to direct play this is a huge step forward. Thanks!
Skickat från min GT-I9505 via Tapatalk
As an Nexus Player owner, and HDHomeRun Prime user, I'm also very interested in MPEG2 HW decoding.
For now I'm using my ADT-1's for TV... But who knows if Google will keep updating them... so far they are still on preview 5.0 builds.
Me too..
Add me to the list of people interested in this. There is a ton of MPEG2 content out there - US broadcast TV is all MPEG2. Enabling MPEG2 would open a ton of possibilities for this device.
Glad I wasn't the only one interested in this. I think its ridiculous to make a so called TV devices with no mpeg hw decoding
Update is I have been trying to build ffmpeg in to lollypop but it keeps failing. I going to at least try to build lollypop from source (arm) first because its been since jellybean I have done it. I'm a bit rusty ?
Plus one interested.any news?
Sent from my Nexus 7 using XDA Free mobile app
I'm still working on it I got x86 android to build. But with ffmpeg they fail. Work and holidays have been consuming most of my time but I try to put some time into it tomorrow.
We still need a custom recovery to simplify flashing
http://forum.xda-developers.com/nexus-player/general/nexus-player-mpeg2-hardware-decoding-t2996377
In the thread above, they claim that mx player is able to hardware decode mpeg2 with intel code plugin. Has anyone looked into this for a solution?
xomikronx said:
http://forum.xda-developers.com/nexus-player/general/nexus-player-mpeg2-hardware-decoding-t2996377
In the thread above, they claim that mx player is able to hardware decode mpeg2 with intel code plugin. Has anyone looked into this for a solution?
Click to expand...
Click to collapse
When the hdhomerun view app/googles live TV app launches a mpeg-2 stream which in turn uses androids default media player. There is no option to use MX or change to that. I wouldn't want to use MX as the over lays for the guide would not work. I tried another build last night but again it failed. Lat time I built android was back in the ICS daysband never with ffmpeg. I not sure I'm even going about this the correct way.
I just noticed a thread about a CM11 port for the GeeksPhone Revolution which runs an Intel® Atom™ processor Z2560. The processor is 32bit x86, but usually these things are backwards compatible. Maybe you can pull binaries from that image? I'd post a link to the thread and associated image, but since this is my first post on these forums it won't let me.
Any updates on this?
Did this project die?
No....its just my builds always fail compiling with ffmpeg into 5.0. I'm stuck. So if anyone can help !e out it would be appreciated