Android MediaPlayer Error (1, -2147483648) CFContent MP4 Video

I have an Android app that plays MP4 files using VideoView. Videos are retrieved from the remote server and provided to the VideoView object using the .setVideoURI () method. They are encoded in the baseline and play perfectly when I provide the setVideoURI method with a direct link to the mp4 file. However, I need to find a way to make it work using the cfcontent ColdFusion tag. At the moment, I have the cfcontent tag created as follows

<cfcontent type="video/mp4" file="full path to my mp4 file" deleteFile="no">

This works fine in the browser, however, when I try to provide a link to my CFM page as a URI for the setVideoURI method, it returns with a MediaPlayer error (1, -2147483648) and also shows the same error for VideoView. I tried adding cfheader tags to cfcontent to force the type as video / mp 4, but without success.

11-14 15:05:18.162: E/MediaPlayer(373): error (1, -2147483648)
11-14 15:05:18.162: E/MediaPlayer(373): Error (1,-2147483648)
11-14 15:05:18.162: D/VideoView(373): Error: 1,-2147483648

Has anyone managed to play MP4 files in Android VideoView using the ColdFusion page and the cfcontent tag? Any suggestions are greatly appreciated !!!

Thanks!

+4
source share
1 answer
+1

All Articles