android


Streaming Webcam in android using yawcam


i had creating an android apps.
using yawcam that installed on my pc as server to browse webcam feed in my android apps.
but, what i got is, video in actually like in browser, got more white unuse space
this is my code:
public class ViewVideo extends Activity{
#SuppressLint("NewApi")
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//String ipAddress = getIntent().getStringExtra("ipAddress");
// String portNumber= getIntent().getStringExtra("portNumber");
SharedPreferences app_preferences1 = PreferenceManager.getDefaultSharedPreferences(this);
String ip = app_preferences1.getString("ip", "null");
SharedPreferences app_preferences2 = PreferenceManager.getDefaultSharedPreferences(this);
String port = app_preferences2.getString("port", "null");
WebView engine = (WebView) findViewById(R.id.web_engine);
engine.setInitialScale(1);
engine.getSettings().setLoadWithOverviewMode(true);
engine.getSettings().setUseWideViewPort(true);
engine.getSettings().setJavaScriptEnabled(true);
engine.loadUrl("http://"+ip+":"+port);
Button btnBack = (Button) findViewById(R.id.btnBack);
//Listening to button event
btnBack.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
Intent myIntent = new Intent(ViewVideo.this,CameraActivity.class);
startActivity(myIntent);
}
});
what i want to do, is want to view the webcam stream in fullscreen mode without got white space, i know it is because i am using webview() method.
is there any possible way to view yawcam feed without use webview?
i am so sorry if got any weakness in my question.
thanks in advance

Related Links

Mopub SDK : fetch creative name and details
Nothing happens when calling Google Endpoint from Android App with credential
ios/android camera capture then send image to dynamically changing webpage
Android Gradle app:connectedCheck runs tests from dependencies
Looks like no data entering rows
How to share assets/resources/images between android projects
Android avoid creating new objects
Could not find any version that matches org.robolectric:robolectric:2.3.+
Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class fragment [duplicate]
How to transform these shapes from xml to java code?
Android Proguard errors on compile
TextView and Button in ListView - OnClick works, OnItemClick does not work
Finishing activity as soon as back button is pressed
PagerAdapter notifyDataSetChanged() not updating fragment
Deep-linking intent does not work
My Android Studio is can not normal edit and no hint when i write code [closed]

Categories

HOME
url-redirection
phpword
prism
deep-learning
rdbms
zend-framework
swt
google-apps
ado.net
mapbox
jax-ws
trac
opengl-3
barcode
fhir
jsonpath
spring-social
heat
job-scheduling
enterprise-miner
named-entity-recognition
object-storage
scriptella
jquery-callback
froala
ms-access-web-app
progress-bar
fractions
cppreference
uitapgesturerecognizer
volatile
livelink
fstream
android-sugarorm
hreflang
contacts
html-encode
gdata
linq-to-objects
setup.py
apache-stanbol
postgresql-8.4
lpsolve
wc
monkey-testing
snapchat
x++
magento-2.0.7
configurationmanager
monkey
flyout
node-request
builtins
redistributable
iotivity
uicolor
signalr.client
scaffolding
respondcms
turbo-prolog
jaunt-api
jbase
themoviedb-api
django-urls
video-player
extjs-grid
dock
sapscript
batik
dulwich
snoop
nsurlsessiondatatask
fits
rapidsvn
uncaught-typeerror
crowd
sql-scripts
psr-4
mdichild
jqmodal
lnk
mysql-error-1044
swfobject
redis-py
subgraph
boost-signals
multiplexing
failing-tests
predicatebuilder
koken
jquery-address
screen-size
w3c-geolocation
dot-emacs
murmurhash
echo3
lalr
wordprocessingml
alsb

Resources

Encrypt Message