Well, I've been testing the DRM Forward Lock system to see whether the users're able to download the contents from a server on a Blackberry or not. Next thing I knew I received two messages that stated "The media being played is of an unsupported format" (A 3gp/video file could be downloaded but it couldn't be played whatsoever) and "Unsupported media type: MMS" (Well, my manager has a reason to believe that the user can download it only if the DRM Forward Lock's perfect. By the way, it consists of a text file and an image file @ a GIF file) so here are the codes I would like you to see;
PHP Code:
<?
header("Content-type: application/vnd.oma.drm.message; boundary=boundary-1");
print("--boundary-1\r\n");
print("Content-type: video/3gpp\r\n");
print("Content-Transfer-Encoding: binary\r\n");
print("\r\n");
fpassthru(fopen("190001023.3gp", "rb"));
print("\r\n--boundary-1--\r\n");
?>
PHP Code:
<?
header("Content-type: application/vnd.oma.drm.message; boundary=boundary-1");
print("--boundary-1\r\n");
print("Content-type: MMS\r\n");
print("Content-Transfer-Encoding: binary\r\n");
print("\r\n");
fpassthru(fopen("EC2233600553", "rb"));
print("\r\n--boundary-1--\r\n");
?>
Does anyone have any idea what's wrong with the codes above? I think the sets of codes apply to all BlackBerry models (I'm currently using BlackBerry Bold 9000).