Вопрос

I am trying to reproduce MPEG DASH, HLS and HSS(HTTP SmoothStreaming) streams by using modified sample applications provided by Google, but for now, only DASH is working. I use: https://github.com/googlecast/cast-custom-receiver and https://github.com/googlecast/CastVideos-android

As i see here https://developers.google.com/cast/docs/player?hl=en all protocols (HSS, HLS, DASH) should work without problems.

When i try to stream HSS and HLS i get this in Sample Media Receiver HUD:

Media Element State: "Error" (or "Abort") . . . Host State: "Fatal Error: code = 1"

Does anyone know what that error represents? Also, sometimes i get this "Fatal Error: code = 0".

//UPDATE

I get this error when i try to cast HSS: [2648.568s] [cast.receiver.MediaManager] Load metadata error cast_receiver.js:19 and the link is : http://video3.smoothhd.com/ondemand/Turner_Sports_PGA.ism/Manifest

//UPDATE

HLS is working now. Problem is solved by setting CORS headers.

Это было полезно?

Решение 2

Problem was with codecs... I used streams encoded with VP1 video and WMAP audio codecs, so there were many errors. That is the reason for getting all those LOAD METADATA ERRORs.

And for CORS, you can use this: https://github.com/TOMODOcom/TOMODOkorz Works like a charm :)

Другие советы

I don't know what HSS is and we don't mention HSS as a supported protocol either, nor we claim we support "all" protocols. We have listed the supported protocols/variations in the link that you have mentioned.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top