« first day (382 days earlier)      last day (3601 days later) » 

14:00
Error log
What does it say
attempt to call getDuration without a valid media player
I am not seeing any getDuration method
mayabe getDuration is native method of mediaplayer
yes yes it is native method
its called in my code to set the seekbar
0
Q: Android - MediaPlayer streaming displaying a Progress Dialog before playing

sftdevIn my application, I will playing music from URL. So it would still take some time to play the audio since it is through streaming. I wanted to implement a ProgressDialog while waiting for the MediaPlayer to play/start. Here is my method for playing the audio: public void playMedia(Stri...

the solution of this question is "Use Async Task" which i cannot use because it is working just once
14:08
I am not able the story of just once
Jusrify
Justify
@Kabira
Come
@TeknoFreek show ur error
i think your try to using relese mpplayer object second time
you are *
by the way why you are using async task to play music
async task bound to gui of activity
use service
14:18
and you can use mp.startasync also
mp.prepareasync
okay i will use service
it will play async
illegal state exception occurs for me usually when same media player object accessed from multiple threads
dont need to use async to play music
14:19
how can i show and control seekbar in my activity when im using service?
@Swap-IOS-Android paaji kithe ho
but im resetting my mediaplayer naa?
@Kabira aabhi need se jaga hu kaal ka hang over hai
oye hoye :p
match bhi chalu hai mast...@Kabira
14:20
:v
@swap i used prepareAsync() but then the audio wouldnt even load :/
saala phir koi yaad nhi dilata match hai :D
@Kabira lekin yaha pe yaad dilana padta hai....
yaha pe cricket koi nahi dekhta sab football ke fan hai
mujhe yaha pe pta nhi chalta
@TeknoFreek okay which file format kind of streaming
14:23
mp3
okay
?
do one thing put it into service
okay
wait wait wait okay one minute bas....i have it service me in another project....
lemme test that
yay its working - only play and stop. it works. now i need a seekbar and timer displays in my activity. hwo do i do this when my mediaplayer is in the service?
okay wait
you can use
media controller
whats that
i mean how
do i use that
14:28
SIXX
aayla ye bhi match dekh rhi hai
yep :D
@AjayThakur you got write access
Thanks
14:29
@TeknoFreek search about media controller
simple
create object of it
and addanchor (media controller object) before mp.prepare
read documents first
MainActivity extends Activity implements MediaController.MediaPlayerControl{
right na?
okay em trying
dhoni ball khel raha hai
gimme some sample ? :(
14:31
dhoni kaha se aagya
no spoon feeding @Swap-IOS-Android tujhe ledo ki kasam :p
Guys
i used phonegap framework for an app
In andriod kitkat version when i used i did see a yellow color text box around edit box ie., very ugly look
where as for other os versions there is no issue
how do i fix it
@Kabira hehehehe yaa dude but i think he/she is new to android
and Java also
14:33
thank youuuu :D trying it now
@Kabira aree hamare yaha streaming 5 min delay hai...UK se streaming karte hai hum log
he is new :p
very good
@AjayThakur ask on Stack Overflow , phone gap room
she*
i say what was that about anchor
setAnchorView hai na
14:41
sidhu aagya
what kind of layout do i have to
its 4 again
put in that
baap re baap :p
haha
kohli ghoda ... tagdak tagdak
14:42
aapka connection piche hai :p
110/2 current score
haa bola na mai UK stream kar raha hu
5 min ka delay
naadaan parinde ghar aaja :p
hahahaha
@TeknoFreek finished?
@Kabira second last over
no em trying na :s abhi tak didnt work
whts the problem
14:57
i dont understand
my main activity currently has only a play and a stop button
playButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(),
MyMediaPlayerService.class);
intent.putExtra(MyMediaPlayerService.START_PLAY, true);
startService(intent);

}
});
it calls service like this ^
so if i put a mediacontroller object in my activity
then how will it connect to the service?
i know
i mean the instance of the mediaplayer is in the service and not in the activity so how will i reference it in my activity :/
i know
MediaController.setMediaPlayer(this);
MediaController.setAnchorView(findViewById(your ID));
or you can creat mpcontroler in activity
and the mediaplayer is referenced at 'n' number of places...in the mediacontroller implemented methods.....what do i write in place of the mediaplayers name?
15:05
or in serviceconnected you can use mService = binder.getService();
and than mc = new MediaController(mpContext);
mc.setAnchorView(findViewById(R.id.anchorText));
mc.setMediaPlayer(mService);
mc.setEnabled(true);
mc.show(0);
its all depend on ur logic
oo
serviceconnected?
ooh got it wait wait
xcode paagal ho gya hai
kaha pe?
@PiyushMishra namaskar bhai
15:11
to use icon_57 as icon it should be renamed to icon.png
to use ico_57@2x as icon it should be renamed to icon~-iphone.png
to use icon_60@2x as icon it should be renamed to [email protected]
@Swap-IOS-Android hey swap how are you?
by the way what's your original name :)
mujhe yaad hai
swap + nil
hehehehehe
@PiyushMishra aur batao kya chal raha hai dubai mai
Europe se acha nahi chal rha ;)
15:19
hehehehe
mujhe aana hai ek baar dubai...
lekin time nahi milta
mujhey hamesha ke liye europe ana hai :D
best aao
aao
how's the market and what kind of clients you have?
mujhe to koi yaad hi nhi krta :(
ha ha you are best for indian market
15:24
hahahaha
Market tik tak hai
itna bhi booming nahi hai france mai
lekin UK mai booming hai bohot
UK mai europe ka sabse bada market hai
is your company open to buy new products
jobs bhi bohot hai
who's in dubai?
not interested in jobs
lekin waha pe visa ka issue hai indian logo ke liye
15:25
umm, isn't there a simpler way to do it than using service?
dubi
@TeknoFreek piyush bhai dubai ke raja hai
hahaha
@Swap-IOS-Android i asked something :/
@PiyushMishra kya?
15:26
ooo :D i returned from there last week....
i asked something too, btw
@PiyushMishra wht kind of products?
buy 1 get 1 free
in terms of application
@PiyushMishra meri company startup hai yaar
lekin phir bhi puchta hu
15:27
but they can pitch the clients
in europe
hum log product based pe nahi client base pe kaam karte hai yaha pe
most important issue iss language
ye log french chodke koi baat nahi karte aur inko client aur developer bhi french he chahiye
in client based you can't earn and its difficult to manage the expenses as you are dependent on the clients work
aur europe mai aabhi outsource bohot kam kardiya hai
so right now you dont have any sales report
yaaa
no
we just work for our client
15:29
ha ha samajh nahi aya
ok but koi toh client lata hoga
maine french sikhi thi school me
comas tu ta pelle kuch tha
but mere itna contacts nahi yaha pe
15:30
ok no problem just speak to your management if they can introduce a new thing into the market
sure
why not
i will
tomorrow
great :)
give me your id or something where i can reach
out tha yaar
sab chila rhe the
@Kabira tere ko arabic sikhwayengey
al habibi :p
match dekh tu bhi dubi me baith k
15:33
wahi kar rha hun, client se milne nahi gya isi chakar mey
ok someone plz listen to me also now for two minutes?
hahahahahaha
ha ha sun le kabira iski kabse bol rha hai
@TeknoFreek ask to @PiyushMishra
bol rahi hai @PiyushMishra
huh :v
:p
15:34
bhookh lag rhi hai
ok ask tekno
if someone know they will get back to you
hn isko poora mat batiyo :p
aisa btaiyo kal kuch aur bug aajaaye :p
lol heheh :p ok piyush, i am using a service to play audio files
okau
okay
right now my activity has only one play button and a stop button
15:35
okay
playButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(),
MyMediaPlayerService.class);
intent.putExtra(MyMediaPlayerService.START_PLAY, true);
startService(intent);

}
ek aur chauka
i want to show a seekbar and timers too
and let the user control the seekbar too
toh swapnil tol me to use media controller
but i dont know how to
can u gimme a sample
how much familiar with java?
15:37
or something
very much familiar
but neverrr everrrr used services
or media player
ha ha i really like such kind of answers
haha
this is the first time i em working with audio, see
:p
before this i tried other ways
13
A: Streaming Audio from A URL in Android using MediaPlayer?

PiyushMishrasimple Media Player with streaming example.For xml part you need one button with id button1 and two images in your drawable folder with name button_pause and button_play and please don't forget to add the internet permission in your manifest. public class MainActivity extends Activity { private ...

can you understand this?
like simple activity mein playlist n all....but the prepare stream took a helll ot of time...then i used async to show "loading
so then sqp told me to use service
wait
yes yes yessss you know infact i was using this exact same approach like in that answer of yours
using AsyncTask
15:41
kitne chauke hai
indians k chehre dekhne laayak hai :D
but the problem was that - i had a list of audio filenames. it worked perfectly on the first click on the list...on any item.....but after that if i clicked on any second item it didnt work then
i thought its tough pitch to play par yeh toh 200 ke hisab se khel rahe hain
@TeknoFreek ever worked on listview?
yes piyush
brb
ok then what's the problem you are facing?
try to put logs and check what you are getting in the url string
i did, url string was fine
they worked perfectly when i was using simple mp.setdatasource,prepare,start directly - without using asynctask. so the url strings are fine.
this is the error i get when i click on any item after loading first one...: postimg.org/image/sgmz6mqbp
@TeknoFreek You should call the prepareAsync() method while listening the OnPrepared event. When the event is triggered you should notify your UI and start the player
u mean i should not use asynctask
To get prepareAsync to work, you have to call MediaPlayer.setOnPreparedListener, and then call MediPlayer.start() in the handler
no
no need of because android provide you prepareAsync
15:49
Hi.. I'm new with iOS and this might be a noob question, but how am I able to strip all non alphebetical characters and chars like ä, ö or ü from a string?
ooo, okay lemme try that now, wait
@TeknoFreek do know understand wht i said to you
use setOnPreparedListener
yes i'll show you the code
no spoon feeding @Kabira right?
come on this aint spoonfeeding, i've worked so much on this :P
15:55
ha ha can believe on you
look at the code
the thing inside the onprepared aint called
problem?
the play button remains disabled
and the timer shows blank (which shows the durations when the audio is loaded)
don't smile its not working yet na :(
15:58
it's not difficult task that you are doing can easily achieved as i showed to you
just inside the click listner you have to change the url

« first day (382 days earlier)      last day (3601 days later) »