Media solution written by java