add media service encryption sample code