Page 2 of 2 FirstFirst 12
Results 21 to 36 of 36
  1. Ikyo's Avatar
    Posts
    290 Posts
    Global Posts
    292 Global Posts
    #21  
    Code:
    AudioService.getSystemVolume = function(callback, sceneController) {
        var request = new Mojo.Service.Request(AudioService.system_identifier, {
          method: 'getVolume',
    	  onSuccess: callback,
    	  onFailure: callback
        });
    	return request;
    }
      
    AudioService.setSystemVolume = function(volume,callback, sceneController) {
        var request = new Mojo.Service.Request(AudioService.system_identifier, {
          method: 'setVolume',
    	  parameters: {volume:volume },
    	  onSuccess: function(response) {
    	  			if(callback)
    					callback(response);
    	  },
    	  onFailure: function(response) {
    	  			if(callback)
    					callback(response);
    	  },			
        });
    	return request;
    }
    Those are the two functions that will need to be added to the phone app and called. Will need to create a holding variable to retain the system sound level. Then when a call starts set it to 0. When it ends reset it back.
    Need different SMS tones for contacts? Well take a look here...
    http://forums.precentral.net/web-os-...h-contact.html
    Disable annoying notifications in calls....
    http://forums.precentral.net/web-os-...ml#post1863116

    Thanks are always appreciated or for a really big Thanks you can always:
  2. elryon's Avatar
    Posts
    715 Posts
    Global Posts
    720 Global Posts
    #22  
    Quote Originally Posted by Ikyo View Post
    Code:
    AudioService.getSystemVolume = function(callback, sceneController) {
        var request = new Mojo.Service.Request(AudioService.system_identifier, {
          method: 'getVolume',
    	  onSuccess: callback,
    	  onFailure: callback
        });
    	return request;
    }
      
    AudioService.setSystemVolume = function(volume,callback, sceneController) {
        var request = new Mojo.Service.Request(AudioService.system_identifier, {
          method: 'setVolume',
    	  parameters: {volume:volume },
    	  onSuccess: function(response) {
    	  			if(callback)
    					callback(response);
    	  },
    	  onFailure: function(response) {
    	  			if(callback)
    					callback(response);
    	  },			
        });
    	return request;
    }
    Those are the two functions that will need to be added to the phone app and called. Will need to create a holding variable to retain the system sound level. Then when a call starts set it to 0. When it ends reset it back.
    Is this working yet? What about simply adding a command to set the volume to 0 when a call is answered and then return it to whatever it was when the call is disconnected?.....hmmm may have to think on that one, what about if a second call comes in..... which file?
    Avatar on Left Patch
    Call Rejecter Patch
    Make your messanger look like the iphone's
    SMS tone per Contact
    No Alert During call

    Thanks are always appreciated or for a really big Thanks you can always:
    (it can go a long way to convince my fiancee that this is worth my time)

    Please feel free to PM for more direct assistance.
  3. #23  
    I agree that would be a very needed patch..
  4. Ikyo's Avatar
    Posts
    290 Posts
    Global Posts
    292 Global Posts
    #24  
    Last night sleep over ruled tried to do anything with this. I will look at it today.
    Need different SMS tones for contacts? Well take a look here...
    http://forums.precentral.net/web-os-...h-contact.html
    Disable annoying notifications in calls....
    http://forums.precentral.net/web-os-...ml#post1863116

    Thanks are always appreciated or for a really big Thanks you can always:
  5. elryon's Avatar
    Posts
    715 Posts
    Global Posts
    720 Global Posts
    #25  
    Would setting the system sound to 0, basically mute the audio of the person your talking to? If so, it might be better not to mess with the volume and simply stop the audio notification from playing altogether. Again, my original suggestion of simply having the notification check if there is an active call before playing the tone and not playing if there is. I know this would have to be implemented separately for sms and email or any notification for that matter....
    Avatar on Left Patch
    Call Rejecter Patch
    Make your messanger look like the iphone's
    SMS tone per Contact
    No Alert During call

    Thanks are always appreciated or for a really big Thanks you can always:
    (it can go a long way to convince my fiancee that this is worth my time)

    Please feel free to PM for more direct assistance.
  6. Ikyo's Avatar
    Posts
    290 Posts
    Global Posts
    292 Global Posts
    #26  
    the system sound volume should have 0 to do with the call volume. I will do it this way and if it messes up the call volume--I will fix it. Per Palm, all volume are independent of each other (i.e. call is different then message, etc).
    Need different SMS tones for contacts? Well take a look here...
    http://forums.precentral.net/web-os-...h-contact.html
    Disable annoying notifications in calls....
    http://forums.precentral.net/web-os-...ml#post1863116

    Thanks are always appreciated or for a really big Thanks you can always:
  7. elryon's Avatar
    Posts
    715 Posts
    Global Posts
    720 Global Posts
    #27  
    ok, wasn't sure, just offering options. If you need help (probably dont) feel free to ask.
    Avatar on Left Patch
    Call Rejecter Patch
    Make your messanger look like the iphone's
    SMS tone per Contact
    No Alert During call

    Thanks are always appreciated or for a really big Thanks you can always:
    (it can go a long way to convince my fiancee that this is worth my time)

    Please feel free to PM for more direct assistance.
  8. Ikyo's Avatar
    Posts
    290 Posts
    Global Posts
    292 Global Posts
    #28  
    Okay, I have the first revision of this. It is a lot easier then I thought. Currently if you have your system sounds muted, after the call they will become unmuted again. I am working on a check to see if I can get the current status prior to the call.
    Need different SMS tones for contacts? Well take a look here...
    http://forums.precentral.net/web-os-...h-contact.html
    Disable annoying notifications in calls....
    http://forums.precentral.net/web-os-...ml#post1863116

    Thanks are always appreciated or for a really big Thanks you can always:
  9. elryon's Avatar
    Posts
    715 Posts
    Global Posts
    720 Global Posts
    #29  
    way to go Ikyo....
    Avatar on Left Patch
    Call Rejecter Patch
    Make your messanger look like the iphone's
    SMS tone per Contact
    No Alert During call

    Thanks are always appreciated or for a really big Thanks you can always:
    (it can go a long way to convince my fiancee that this is worth my time)

    Please feel free to PM for more direct assistance.
  10. Ikyo's Avatar
    Posts
    290 Posts
    Global Posts
    292 Global Posts
    #30  
    I found the function to get the Mute value. I am working on verifying it works. I can't test it in the emulator since audio isn't running.
    Need different SMS tones for contacts? Well take a look here...
    http://forums.precentral.net/web-os-...h-contact.html
    Disable annoying notifications in calls....
    http://forums.precentral.net/web-os-...ml#post1863116

    Thanks are always appreciated or for a really big Thanks you can always:
  11. elryon's Avatar
    Posts
    715 Posts
    Global Posts
    720 Global Posts
    #31  
    Quote Originally Posted by Ikyo View Post
    I found the function to get the Mute value. I am working on verifying it works. I can't test it in the emulator since audio isn't running.
    if you need someone to call or something.....
    Avatar on Left Patch
    Call Rejecter Patch
    Make your messanger look like the iphone's
    SMS tone per Contact
    No Alert During call

    Thanks are always appreciated or for a really big Thanks you can always:
    (it can go a long way to convince my fiancee that this is worth my time)

    Please feel free to PM for more direct assistance.
  12. #32  
    Quote Originally Posted by Ikyo View Post
    I found the function to get the Mute value. I am working on verifying it works. I can't test it in the emulator since audio isn't running.
    Very nice can't wait to test.
    If you feel that I have given you worthy advice please feel free to show your support. TY

  13. drmull's Avatar
    Posts
    13 Posts
    Global Posts
    15 Global Posts
       #33  
    Ikyo -

    Thanks for working on this one. If you were asking me, this has happened since Pre day 1. There are no patches involved as a cause. VERY excited to try out your work.
  14. Ikyo's Avatar
    Posts
    290 Posts
    Global Posts
    292 Global Posts
    #34  
    I will be starting a new thread here shortly with the information on the patch. That way we can keep everything separate.
    Need different SMS tones for contacts? Well take a look here...
    http://forums.precentral.net/web-os-...h-contact.html
    Disable annoying notifications in calls....
    http://forums.precentral.net/web-os-...ml#post1863116

    Thanks are always appreciated or for a really big Thanks you can always:
  15. drmull's Avatar
    Posts
    13 Posts
    Global Posts
    15 Global Posts
       #35  
    Great! I'll be looking for it.
  16. Ikyo's Avatar
    Posts
    290 Posts
    Global Posts
    292 Global Posts
    #36  
    it's up
    Need different SMS tones for contacts? Well take a look here...
    http://forums.precentral.net/web-os-...h-contact.html
    Disable annoying notifications in calls....
    http://forums.precentral.net/web-os-...ml#post1863116

    Thanks are always appreciated or for a really big Thanks you can always:
Page 2 of 2 FirstFirst 12

Posting Permissions