{"_id":"56046d6d8d58900d0051eb51","__v":19,"version":{"_id":"55d383ac0168850d0073f1da","project":"55d22cd53c74062300aee584","__v":9,"createdAt":"2015-08-18T19:12:44.826Z","releaseDate":"2015-08-18T19:12:44.826Z","categories":["55d383ad0168850d0073f1db","55d383ad0168850d0073f1dc","55d38d25f77e6d0d00b1b179","55f0af8b7dccfc0d00986a08","56047d370c78b00d0039b1c3","560481e1d5c3900d0003e79e","5604849b60d2c40d00deb4ba","56390754aaddb90d00c76018","58867f5fbd44ca1b005d29fd","58ab437f9048311b0089b732"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"project":"55d22cd53c74062300aee584","user":"55139533d028bb210040fac9","parentDoc":null,"category":{"_id":"5604849b60d2c40d00deb4ba","version":"55d383ac0168850d0073f1da","__v":1,"project":"55d22cd53c74062300aee584","pages":["5604e408d5c3900d0003e7e5"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-24T23:17:47.800Z","from_sync":false,"order":1,"slug":"website-api","title":"Website API"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-24T21:38:53.881Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"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]","excerpt":"","slug":"mpeg-4-video-content","type":"basic","title":"MPEG-4 Video Content"}

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]