{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"MPEG-4 Video Content","type":"basic","slug":"mpeg-4-video-content","excerpt":"","body":"MPEG-4 media content contains information about the duration, video & audio tracks, and where each picture within a file can be found (at either the beginning or end of a file). In order to allow requests to be made using a `start` or `end` *time in seconds* we provide special handling of MPEG-4 video content served through our platform. Certain header optimizations are performed to remove unwanted space and fix media synchronization issues.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Pseudo Streaming\"\n}\n[/block]\nUsing the `start` and `end` URL arguments and a duration in seconds the response of a video can be manipulated. Our platform will retrieve the beginning of the media content from its cache or using a HTTP range request from the origin source and return the modified response depending on the request.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Example Requests\"\n}\n[/block]\nRetrieve Video starting at 10 seconds with a length of 1 minute\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /videos/test.mp4?start=10&end=70\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nRetrieve Video with a length of 5 minutes\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /videos/test.mp4?end=300\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]","updates":["5df9be6cede96301837543cd","5df9bee3ce59fc006b984da6"],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56046d6d8d58900d0051eb51","__v":21,"version":{"version":"2","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["55d383ad0168850d0073f1db","55d383ad0168850d0073f1dc","55d38d25f77e6d0d00b1b179","55f0af8b7dccfc0d00986a08","56047d370c78b00d0039b1c3","560481e1d5c3900d0003e79e","5604849b60d2c40d00deb4ba","56390754aaddb90d00c76018","58867f5fbd44ca1b005d29fd","58ab437f9048311b0089b732"],"_id":"55d383ac0168850d0073f1da","createdAt":"2015-08-18T19:12:44.826Z","project":"55d22cd53c74062300aee584","__v":9,"releaseDate":"2015-08-18T19:12:44.826Z"},"project":"55d22cd53c74062300aee584","user":"55139533d028bb210040fac9","createdAt":"2015-09-24T21:38:53.881Z","githubsync":"","parentDoc":null,"category":{"sync":{"isSync":false,"url":""},"pages":["5604e408d5c3900d0003e7e5"],"title":"Website API","slug":"website-api","order":1,"from_sync":false,"reference":false,"_id":"5604849b60d2c40d00deb4ba","version":"55d383ac0168850d0073f1da","__v":1,"project":"55d22cd53c74062300aee584","createdAt":"2015-09-24T23:17:47.800Z"}}

MPEG-4 Video Content


MPEG-4 media content contains information about the duration, video & audio tracks, and where each picture within a file can be found (at either the beginning or end of a file). In order to allow requests to be made using a `start` or `end` *time in seconds* we provide special handling of MPEG-4 video content served through our platform. Certain header optimizations are performed to remove unwanted space and fix media synchronization issues. [block:api-header] { "type": "basic", "title": "Pseudo Streaming" } [/block] Using the `start` and `end` URL arguments and a duration in seconds the response of a video can be manipulated. Our platform will retrieve the beginning of the media content from its cache or using a HTTP range request from the origin source and return the modified response depending on the request. [block:api-header] { "type": "basic", "title": "Example Requests" } [/block] Retrieve Video starting at 10 seconds with a length of 1 minute [block:code] { "codes": [ { "code": "GET /videos/test.mp4?start=10&end=70", "language": "text" } ] } [/block] Retrieve Video with a length of 5 minutes [block:code] { "codes": [ { "code": "GET /videos/test.mp4?end=300", "language": "text" } ] } [/block]