code: public GenerateMediaPlayerCodeResponse generateMediaPlayerCode(GenerateMediaPlayerCodeRequest request) {
  
          checkStringNotEmpty(request.getMediaId(), "Media ID should not be null or empty!");
          checkIsTrue(request.getHeight() > 0, "Height of playback view should be positive!");
          checkIsTrue(request.getWidth() > 0, "Width of playback view should be positive!");
  
          InternalRequest internalRequest =
                  createRequest(HttpMethodName.GET, request, PATH_MEDIA, request.getMediaId(), PARA_GENCODE);
          internalRequest.addParameter(PARA_WIDTH, Integer.toString(request.getWidth()));
          internalRequest.addParameter(PARA_HEIGHT, Integer.toString(request.getHeight()));
          internalRequest.addParameter(PARA_AUTO_START_NEW, Boolean.toString(request.isAutoStart()));
          internalRequest.addParameter(PARA_AK, config.getCredentials().getAccessKeyId());
          internalRequest.addParameter(PARAM_TRANSCODING_PRESET_NAME, request.getTranscodingPresetName());
  
          return invokeHttpClient(internalRequest, GenerateMediaPlayerCodeResponse.class);
      }
docs: Get the HTML5 code snippet (encoded in Base64) to play the specific media resource.
  
  @param request The request object containing all the options on how to
  @return The Flash and HTML5 code snippet