What protocol and how to stream a video that is already streamed- Android -
i'm trying make app playing videos tv channels have online broadcasting on homepages. apparently need know ** streaming protocol** appropriate kind of videos. mean need know what protocol using in streaming? or should i choose own protocol? , what should think when comes choosing?
and final question: heard choosing appropriate class (media player) or video view depended on protocol is. true? class has have support swiping on screen.
thanks in advance.
firstly worth checking stream want play available playback - many online tv providers use encryption , authentication mechanisms video streams can played in app or browser registered user has logged in to.
assuming available need check see format make available in.
in high level terms streaming video typically packaged follows:
- raw video
- -> encoded compressed format (e.g. h.264)
- -> packaged container (e.g.mp4) along audio streams etc
- -> packaged adaptive bit rate streaming format (e.g. hls, smoothstreaming, mpeg dash)
different devices , different browsers support different encoding, packaging , streaming formats.
assuming want use html5 browser, either standalone or in web view in app, following links provide good, regularly updated, overview of devices , browsers support encoding , streaming html5 video playback (this changing picture need check current status using links such these):
- https://developer.mozilla.org/en-us/docs/web/html/supported_media_formats
- http://www.jwplayer.com/html5/
so steps:
- make sure video available either unprotected or have access encryption keys authentication credentials etc
- identify streaming technology being used, example looking @ file type in url (e.g. '.mpd' dash format)
- look @ individual video , audio streams within streaming 'index' or 'manifest' file , check device can support them
you can take short cut testing streams have on target device in of available browser based test players different formats, example dash:
if play here should able them working in app.
Comments
Post a Comment