[MPlayer-users] why mplayer can only play once in my porting?

4 views
Skip to first unread message

lean fu

unread,
Mar 21, 2012, 12:29:52 PM3/21/12
to mplaye...@mplayerhq.hu
Hi,
I've ported mplayer to android,but i found mplayer can only play
once,when trying to play another file during playback,i sent "stop" ,
" loadfile 'fullpath' " cmds in sequence,but this will cause the
android activity exit and not any error msg be found in logcat. while
reload mplayer can play normally again.can anybody tell me what's this
problem ? how can i play file when another file is playing ? thanks!
_______________________________________________
MPlayer-users mailing list
MPlaye...@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

Oliver Seitz

unread,
Mar 21, 2012, 3:20:26 PM3/21/12
to mplaye...@mplayerhq.hu
On 21.03.2012 17:29, lean fu wrote:
> Hi,
> I've ported mplayer to android,but i found mplayer can only play
> once,when trying to play another file during playback,i sent "stop" ,
> " loadfile 'fullpath' " cmds in sequence,but this will cause the
> android activity exit and not any error msg be found in logcat. while
> reload mplayer can play normally again.can anybody tell me what's this
> problem ? how can i play file when another file is playing ? thanks!

I'd say, just do not send "stop". This makes MPlayer exit, unless it was
started with the "-idle" switch.

Greets,
Kiste

lean fu

unread,
Mar 22, 2012, 2:14:50 AM3/22/12
to MPlayer usage questions, feature requests, bug reports
In fact,i start mplayer in slave mode with following options:

"mplayer"
"-idle","-slave","-osdlevel","0","-vf","format=bgr16","-noaspect","-nocorrect-pts","-quiet"

i have also tested only send 'loadfile',but the problem all the same.i
found when activity disappear,the android apk process is also terminated,
but i can't found any error msg.the native thread of playback is created
in JNI_OnLoad,which will be called when apk process load the mplayer
related .so files in memory. how can i debug in this condition ? thanks!


2012/3/22 Oliver Seitz <in...@vtnd.de>

> On 21.03.2012 17:29, lean fu wrote:
>
>> Hi,
>> I've ported mplayer to android,but i found mplayer can only play
>> once,when trying to play another file during playback,i sent "stop" ,
>> " loadfile 'fullpath' " cmds in sequence,but this will cause the
>> android activity exit and not any error msg be found in logcat. while
>> reload mplayer can play normally again.can anybody tell me what's this
>> problem ? how can i play file when another file is playing ? thanks!
>>
>
> I'd say, just do not send "stop". This makes MPlayer exit, unless it was
> started with the "-idle" switch.
>
> Greets,
> Kiste

> ______________________________**_________________
> MPlayer-users mailing list
> MPlaye...@mplayerhq.hu
> https://lists.mplayerhq.hu/**mailman/listinfo/mplayer-users<https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users>

Reply all
Reply to author
Forward
0 new messages