Java Media Player Cannot Play Audio File With User Role

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, cesium, kodachi

Java Media Player Cannot Play Audio File With User Role

Postby gregst » Thu Jan 22, 2009 4:51 pm

The Java Media Player will play an audio file when executing as my user. But, when I "su <role>" and try the same thing, the Java Media Player reports, "...unsupported or invalid media file...Failed to prefetch: Cannot open the audio device."

Anyone know why the user role would prevent playing the audio?
gregst
New Member
 
Posts: 3
Joined: Thu Jan 22, 2009 2:50 pm

Postby gregst » Tue Jan 27, 2009 2:44 pm

I'm still looking for a resolution. But, it turns out that this is not unique to a user role type. The Java media player will not play when I su to a normal user because it fails to "open the audio device". This seems to be a problem with Java because there's no problem when running a native application such as ossplay.
gregst
New Member
 
Posts: 3
Joined: Thu Jan 22, 2009 2:50 pm

Postby gregst » Tue Jan 27, 2009 9:46 pm

I don't know how this happens, but it seems that when a user logs into the Solaris/Java Desktop that a virtual device for the sound is created for the user and only this user has permissions to use it. So, when I "su <user>" and run my application the process running as this other user will not have permission to access the device. When I change the permissions to the device, then it works as expected.
gregst
New Member
 
Posts: 3
Joined: Thu Jan 22, 2009 2:50 pm


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest

cron