How to compile Youtube WatchMe? - android

I am trying to (roughly) replicate the Sony Xperia "Live on Youtube" app. Since it is exclusive to the Xperia line, I am trying to build an app out of the Youtube WatchMe source code.
All I need is an app that can live stream video from the phone's camera to Youtube, as both of the apps mentioned above do. I know that WatchMe is meant to be nothing more than a reference for developers wanting to make apps that utilize this, but how possible would it be to modify the example code? I don't need a necessarily stable application, but something is better than nothing.
It would help even more if anyone knew of an app that already contained this functionality.

Due to sharing and open-source limitations of ffmpeg I wasn't able to distribute the built.
There were few people built successfully in here. They use ffmpeg + libx264 v2.3.
You'll also use Android.mk and ffmpeg-jni.c from the repo to build.

Take a look at TubeStreamer, now on Google Play. This is a work in progress but is currently working for streaming live video to YouTube.

I'm also trying to make this app worked.
I made it run on my phone, but with the wrong build method.
Here's my progress, just for reference.
I compiled the app on Eclipse except the libffmpeg.so.
Then, I got the lib file from someone provided on https://github.com/youtube/yt-watchme/issues/16
Finally, I push the file into the phone's directory "/data/app-lib/com.google.android.apps.watchme-1/libffmpeg.so"
After these steps and configure on Google develope console and Youtube, this app could run correctly.

Related

Youtube Music API for Uploaded music

Problem:
Youtube Music sucks for playing back music you have uploaded for years. The app sucks, and the Android Auto app sucks. I've contacted the YT Music team many times, but they don't seem to listen to music ever so they don't even understand the problem(s).
Solution:
Create my own app to play back my own music that lives in Google/Youtube Music. I'm an Android app developer so might as well fix this my own way.
Are there APIs for Youtube Music? I know there's an unofficial Youtube Music API, but that's phython, it doesn't build at the moment (Feb 2022), and it seems to focus on paid music, not my own uploaded library.
Would Google drive APIs do this? If so, is there documentation on how to use it? I can figure out the OAuth part, but I don't know where to get the data for the parameters in this sample api
Is there a better way for this? I just need to download the music files, and then create a player around them.
Thank you!
I was looking for something similar but the closest I got was ytmusicapi in python. It works for me and I installed it via pip install ytmusicapi. Its source is hosted on https://github.com/sigma67/ytmusicapi there, perhaps, you can see the YTM protocol. Authentication works by simply copying cookies from your browser after authenticating with YTM manually. That worked for me as well.
Another option is Kodi and a plugin they have: https://forum.kodi.tv/showthread.php?tid=360827 (but that did not seem to work for me after 3 minutes I spent on it).
If you are serious about it and you can't get YTM protocol via the source of ytmusicapi, then you can perhaps reverse-engineer the protocol using your browser. Firefox's Tools->Browser Tools->Web Developer Tools is your best friend. After you authenticate to YTM, open the "tools", click on "Library" on YTM webpage, then in "tools" tab, go to Network and look for a POST similar to https://music.youtube.com/youtubei/v1/browse?key=... right click on it and Copy->Copy as Curl. You will be able to see what auth-headers it sends and also what's the protocol for showing up your YTM Library.

How to implement opendrive in android application

I know there's an apk for opendrive in android market but can anyone show me a tutorial or link which shows how to implement opendrive in android application
i have googled it but all opendrive provides still now is there own apk link in googleplay appstore: https://www.opendrive.com/apps/android
please give me a link or a example how to implement that
EDIT: I have completed the login and checking of files in OpenDrivein android but I can't implement the upload and download for it because I can't find any url's for it, does anyone know of the url's required to implement Opendrive in android application?? i have mailed to their support centre also but still no help from there too
any help is appreciable
thanks
The following are the features provided by opendrive.. which feature do you want in your application?
Upload and preview files
Upload new file version
Create folders and subfolders
Send file to email
Store files for offline
Access Shared folders
Copy link to clipboard
Play music and video
Keep me logged in
Passcode Lock
There is an API of OpenDrive. You can use that. They also provide example code, that is in PHP though.
Dropbox, Google Drive, SpiderOak, Ubuntu One and SkyDrive include many other similar options you have in case you want better and more tested API.
[EDIT] Ubuntu One Comes with documentation for Android too https://one.ubuntu.com/developer/ . If that can serve your purpose, go ahead use it.

Playing video in Android app with native player

I'm new with building apps
I made it with eclipse to compile and phonegab.
A while ago I made a android app with video content.
It did work in the past, but not anymore.
I did it with a direct link
such as Play
When you click the link, Android used the "native"player. Thats what I want, but that doesn't work anymore.
Can anybody give me some advise or tell me why it doesn't work anymore?

Convert video with FFMPEG Library in android

I have a problem that I received a video file from the server which can not be played through video view from the app I am making. I don't know what the actual problem is because all videos are played through same video view but the video received from the server side is not played. So, I think that I have to integrate FFMPEG in our android app, so I can play every video at a runtime conversion. For this, I have read much more about FFMPEG Library integration with Android through many sites as:
http://www.roman10.net/how-to-build-android-applications-based-on-ffmpeg-by-an-example/
Downloaded some projects from GitHub (https://github.com/appunite/AndroidFFmpeg) but unable to succeed in building the Library through NDK. Something I missed and I am working on Windows machine, probably this might be a problem. I want the exact solution regarding this, means step by step solution for building the android project with FFMPEG Library. If you have some useful suggestion then please share with me.

How to play MP4 videos on Android 1.5?

Ineed to play a short MP4 video on my android app I'm searching info about how to load mp4 videos but i can't find the way to do it on Android 1.5. My app sould be compatible from Android 1.5 to 4.0
I tryed with a lot of tutorials from google, from stackoverflow, from android developers groups, etc.., but i can't make working any of them. For example, now i'm trying with the VideoViewDemo from android developers: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/VideoViewDemo.html But i can't make working the code, i dont know what is the problem, i just cant play mp4 videos with that code. And also i can't with all the code examples i find on internet.
I have a video on my ASSETS folder, and i just need to play the video, only this. I can not believe that doesn't exists a simple and quick way to do it.
If someone can give me a tutorial or a working example of playing mp4 videos on android i will apreciate it a lot.
Thanks
use this link http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.html
path = "/mnt/sdcard/file.mp4";
it will work fine.
#AndroidUser99 you need to use following thing to work mp4 and other in android.
1:Rockpler free coder may use for android
2:android ffmpeg
3:some SO Question for ffmpeg
you can also download FFmpeg library used before 1.7.0 from this link and use it in your project click here
Hope you will get idea to play mp4 on android 1.5.

Categories

Resources