Debugging approaches for HTML5 video on iPad

I am writing a video encoder / server to display video in a web application designed to run on an iPad. The iPad uses HTML5 video text to extract and decode the video, and I run into problems when the encoded video is not decoded correctly.

Is there something like a syslog on an iPad where I can find any information that a video decoder finds undesirable in my bitstream, or some other way of gaining visibility during the decoding process?

+3
source share
1 answer

Older versions of iOS allowed you to enable the Safari debug console (settings -> safari-> advanced -> debug console). It was convenient for reporting errors, etc. If you are a Mac user, apparently there is a good interface for this.

If you have a Safari desktop, you can also fake a user agent: http://www.dummies.com/how-to/content/how-to-activate-user-agent-switcher-in-safari.html , this Allows you to use web debugging tools to see what is happening.

Alternatively, you can create the Debug panel in your web browser and capture the console.log function so that you can see errors, etc.

Example:

<div id="debug-info"></div>

<script>

(function(){
    var oldLog = console.log;
    console.log = function (message) {
        // DO MESSAGE HERE.
        oldLog.apply(console, arguments);
        $('#debug-info').prepend('<p>'+message+'</p>')
    };
})();

</script>
+1
source

All Articles