HTML5 Video Player
I am very excited to be demonstrating how to use the Eagle Eye Video API with the standard HTML5 Video Player. No longer requiring a flash player, or transcoding the video, is a large improvement in user experience. It is also faster and a more streamlined way to use our API.
How do I get started?
We have already been using the HTML5 video player for video playback inside of the Eagle Eye VMS. It has been the default option since the second half of 2019. If you are embedding or linking to the video player page/history browser than you already have been using the HTML5 video player.
Please supply a valid ESN and an auth_key that has access to view the video.
Does this work for live and historic video?
Yes. From the the Eagle Eye API, the only difference between live and historic video is the time that it should start playing the video. There are more differences under the hood, but from the perspective of calling the API, you request live video using a stream_id and a time_offset. The stream_id replaces the start_timestamp parameter and the time_offset parameter replaces the end_timestamp.
Live and historic video is retrieved using the following API call.
What about CORS?
CORS is a browser security feature that establishes rules for Cross Origin Requests. It is implemented in all modern web browsers and requires that the remote site allows cross origin requests to specific resources. We implement a whitelist system that allows us to block all requests except for known technology partners. Please reach out to me at firstname.lastname@example.org to get your domain whitelisted.
Please note that invalid reqeusts that would normaly result in a 400 response will return a CORS error. Please confirm that paramters that you are sending if you are on a whitelisted domain and still have problems.
Does this mean no more FLV?
The FLV file format is a great, simple, straightforward container for h.264 video and we intend to continue using it. It allows us to slice and concatinate video as needed. Most importantly is a streamable format and is well supported among video players. Other than Flash players in browsers, it is an ideal format.
What else can we do with this?
I am excited the see the additional applications that can benefit from easily embeddable video. Not only can the preview stream be worked as a series of JPEG images, video can now be used as just a standard video component.