DynTube API
  • Welcome!
  • Key Concepts
  • Quick Start
  • Reference
    • Videos
      • Video Upload via File (Server Side)
      • Video Upload via URL (server side)
      • HTML-Form Client Side Video Uploads
      • Get Video Status
      • Get Videos
      • Get Video
      • Update Video
      • Delete Video
      • Download Original Video
      • Get Video for Mobile App/Custom Player
      • Update Video Image
      • Add Video Captions/Chapters/Subtitles
      • Delete Video Captions/Subtitles/Chapters
      • Create Expirable Links
      • Get Collected Emails
      • Setting Up Webhooks
      • Copy call-to-action (CTA) to Videos
      • Token Authentication
    • Projects
      • Create Project
      • Update a Project
      • Get Projects
      • Get a Project
      • Delete a Project
      • Set default CTA for Project
    • Live Streaming
      • Create a Live Stream
      • Update a Live Stream
      • Get Live Streams
      • Get a Live Stream
      • Count Live Streams
      • Live Streams Limit
      • Get Live Streaming Recording
      • Delete a Live Stream
      • Service and Regions for live streams
    • Channels
      • Get Channels
      • Get Channel
      • Delete Channel
    • Subscriptions
      • Create a Plan
      • Create a Member
      • Attach Plan To Member
      • Get Plans
      • Get Members
      • Get Member's Plans
      • Delete a Plan
    • Analytics
      • Use your User Ids in Analytics
      • Get Video Analytics
    • Javascript Events Methods
      • Plain Javascript Events & Methods
      • Control the Player using React
      • Control the Player in Vue.js
    • Developer Resources
      • How to embed DynTube player in Next.Js
      • How to embed the video player in React
      • How to play DynTube videos in React Native
      • ExoPlayer app to play HLS videos
      • How to embed videos & channels dynamically
      • How to Import Vimeo Videos into DynTube
Powered by GitBook
On this page
  1. Reference
  2. Videos

Get Video for Mobile App/Custom Player

PreviousDownload Original VideoNextUpdate Video Image

Last updated 2 years ago

Get HLS & MP4 URLs for mobile app or custom player

Please note that the following fields would have values in the API response only if direct HLS links or direct MP4 links are enabled on your plan.

The HLS URLs will be available in the API response if your videos were transcoded into HLS format (according to your project settings).

Similarly, the MP4 URLs will be available in the API response if your videos were transcoded into MP4 format (according to your project settings).

You can use the following endpoint to get the details of the video.

You will need to look for the following fields in the JSON response.

  • hlsUrl

  • hlsUrlWeb

  • Mp4Url

The field hlsUrl can be used to play the videos in any of the native video players that support HLS adaptive streaming.

The field hlsUrlWeb can be used to play the videos in any HTML5-based video players that support HLS adaptive streaming.

The field mp4Url can be used to play the videos in any of the native or HTML5-based video players. (Please note that MP4 is not an adaptive streaming format so the video player won't be able to switch resolutions on the fly based on the viewer's internet speed.)

Get Single Video
Get Video