Google Chromecast: Unable to cast video/mp4 with captions from iOS getting Load metadata error -
i building ios app cast video content dlna/upnp media server chromecast. problem appears when add media track data captions. following works:
### media manager - load: { "type":"load", "i":false, "defaultprevented":false, "kb":true, "data": { "currenttime":0, "requestid":3, "autoplay":true, "media": { "metadata": { "title":"movie.mp4", "subtitle":"unknown", "images": [{ "url":"http://192.168.1.15:8895/resource/625/cover_image", "width":200, "height":100 }], "metadatatype":0 }, "texttrackstyle": { "windowroundedcornerradius":8, "windowtype":"rounded_corners", "foregroundcolor":"#ffffffff", "fontfamily":"helvetica", "fontgenericfamily":"sans_serif", "fontstyle":"bold", "fontscale":1, "windowcolor":"#000000ff", "backgroundcolor":"#000000ff" }, "contentid":"http://192.168.1.15:8895/resource/338/media_item/avc_mp4_mp_sd_aac_mult5-0/original", "contenttype":"video/mp4", "streamtype":"none", "duration":0 } }, "senderid":"33:3ea56d16-d18e-4d13-87a0-717dc188f8af"}
but when add captions either own or instance castvideos sample app (so make sure cors enabled), won't work with:
### media manager - load: { "type":"load", "i":false, "defaultprevented":false, "kb":true, "data": { "currenttime":0, "requestid":4, "autoplay":true, "media": { "tracks": [{ "trackid":1, "trackcontentid":"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/googleio-2014-castingtothefuture2-en.vtt", "language":"en-us", "subtype":"captions", "type":"text", "trackcontenttype":"text/vtt", "name":"english subtitle" }], "contentid":"http://192.168.1.15:8895/resource/338/media_item/avc_mp4_mp_sd_aac_mult5-0/original", "streamtype":"none", "contenttype":"video/mp4", "duration":0, "metadata": { "title":"movie.mp4", "subtitle":"unknown", "images": [{ "url":"http://192.168.1.15:8895/resource/625/cover_image", "width":200, "height":100 }], "metadatatype":0 }, "texttrackstyle": { "windowroundedcornerradius":8, "windowtype":"rounded_corners", "foregroundcolor":"#ffffffff", "fontfamily":"helvetica", "fontgenericfamily": "sans_serif", "fontstyle":"bold", "fontscale":1, "windowcolor": "#000000ff", "backgroundcolor":"#000000ff" } } }, "senderid":"11:9d7d43c2-cd85-4143-82aa-2d0056aa62fc" }
i get:
[cast.receiver.mediamanager] load metadata error cast_receiver.js:18
however sample app works captions in custom receiver without problems , don't find of difference (except video/image http url, i'm getting warnings those):
### media manager - load: { "type":"load", "i":false, "defaultprevented":false, "kb":true, "data": { "currenttime":0, "requestid":3, "autoplay":true, "media": { "tracks": [{ "trackid":1, "trackcontentid":"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/designingforgooglecast-en.vtt", "language":"en-us", "subtype":"captions", "type":"text", "trackcontenttype":"text/vtt", "name":"english subtitle" }], "contentid":"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/designingforgooglecast.mp4", "streamtype":"none", "contenttype":"video/mp4", "duration":0, "metadata": { "title":"designing google cast", "subtitle":"google io - 2014", "images": [{ "url":"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/images_480x270/designingforgooglecast2-480x270.jpg", "width":200, "height":100 }], "metadatatype":0 }, "texttrackstyle": { "windowroundedcornerradius":8, "windowtype":"rounded_corners", "foregroundcolor":"#ffffffff", "fontfamily":"helvetica", "fontgenericfamily":"sans_serif", "fontstyle":"bold", "fontscale":1, "windowcolor":"#000000ff", "backgroundcolor":"#000000ff" } } }, "senderid":"46:f162e34a-1a6d-4c0c-a0a3-db584c92cdf5" }
any idea?
thanks in advance.
when using captions chromecast, cors required not captions video stream well. in case video http server (e.g. serviio) doesn't support it.
Comments
Post a Comment