Test VAST 404 and Timeout Error Handling Using Actionscript 3

Introduction

This article describes how to correctly error handle and test HTTP requests when
using VAST in a custom video player. The two key concepts of this article are:

Your player should always be able to display the video content in case
Ooyala's servers are unavailable or timeout.

Your player should not rely on the VAST response to initiate, play/pause,
display the player controls, menus and other functionalities. Remember that
a VAST response may be unavailable or turned on/off in some cases by the
client.

Important: The code examples in this page should be used only as guidelines.
Implementation may vary depending on the player/framework you are using.

Testing Your Integration

You can use Charles Proxy or any other proxy
debugging tool to fake 404 or timeout requests. If you have correctly implemented 404
and timeout error handling your player will always display the video content while
performing these tests.

404 Error Handling

Start Charles Proxy and click Tools > Map Remote

Map all requests from videoplaza to any 404 page, for example,
http://www.google.com/404