arabenseifer / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Streaming ts file don't work #408

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to stream this ts file: 
https://drive.google.com/file/d/0B7pcAkvWOZoNZ0RsSVVUUFNrZlk/view?usp=sharing

What is the expected output? What do you see instead?
1. See the video
2. Error: Load metadata error

What version of the product are you using? On what operating system?
Chromecast

Please provide any additional information below.

Error Log:

 [ 36.456s] [cast.receiver.IpcChannel] Received message: {"data":"{\"currentTime\":0,\"type\":\"LOAD\",\"media\":{\"streamType\":\"BUFFERED\",\"duration\":0,\"contentType\":\"video\\/mp4\",\"contentId\":\"http:\\/\\/192.168.188.26\\/filme\\/test.ts\",\"metadata\":{\"metadataType\":1}},\"requestId\":3,\"autoplay\":true}","namespace":"urn:x-cast:com.google.cast.media","senderId":"109:de.resper.e2cast-24"} cast_receiver.js:18
 [ 36.466s] [cast.receiver.CastMessageBus] Dispatching CastMessageBus message cast_receiver.js:18
 [ 36.472s] [cast.receiver.MediaManager] MediaManager message received cast_receiver.js:18
 [ 36.477s] [cast.receiver.MediaManager] Dispatching MediaManager load event cast_receiver.js:18
 [ 37.291s] [cast.receiver.IpcChannel] IPC message sent: {"namespace":"urn:x-cast:com.google.cast.system","senderId":"SystemSender","data":"{\"type\":\"setappstate\",\"statusText\":\"Now Casting\"}"} cast_receiver.js:18
 [ 37.322s] [cast.receiver.MediaManager] Load - contentId: http://192.168.188.26/filme/test.ts autoplay: true time: 0 cast_receiver.js:18
The page at 'https://www.gstatic.com/eureka/player/player.html?skin' was loaded 
over HTTPS, but displayed insecure content from 
'http://192.168.188.26/filme/test.ts': this content should also be loaded over 
HTTPS.
 cast_receiver.js:55
 [ 38.398s] [cast.receiver.MediaManager] Load metadata error cast_receiver.js:18nb cast_receiver.js:18kb.Yb cast_receiver.js:18B.log cast_receiver.js:13I cast_receiver.js:16Z.ra cast_receiver.js:88g.ra cast_receiver.js:53Ib cast_receiver.js:23Fb cast_receiver.js:24(anonymous function) cast_receiver.js:21
 [ 39.313s] [cast.receiver.MediaManager] Sending error message to 109:de.resper.e2cast-24 cast_receiver.js:18
 [ 39.324s] [cast.receiver.IpcChannel] IPC message sent: {"namespace":"urn:x-cast:com.google.cast.media","senderId":"109:de.resper.e2cast-24","data":"{\"requestId\":3,\"type\":\"LOAD_FAILED\"}"} cast_receiver.js:18
 [ 40.165s] [cast.receiver.IpcChannel] IPC message sent: {"namespace":"urn:x-cast:com.google.cast.system","senderId":"SystemSender","data":"{\"type\":\"setappstate\",\"statusText\":\"Ready To Cast\"}"} cast_receiver.js:18
 [254.250s] [cast.receiver.IpcChannel] Received message: {"data":"{\"reason\":\"transport_too_long_inactive\",\"senderId\":\"109:de.resper.e2cast-24\",\"type\":\"senderdisconnected\"}","namespace":"urn:x-cast:com.google.cast.system","senderId":"SystemSender"} cast_receiver.js:18
 [254.260s] [cast.receiver.CastMessageBus] Dispatching CastMessageBus message cast_receiver.js:18
 [254.268s] [cast.receiver.CastReceiverManager] Dispatching sender disconnected event [109:de.resper.e2cast-24] Reason: unknown cast_receiver.js:18
 [254.273s] [cast.receiver.CastMessageBus] Unregistering sender [urn:x-cast:com.google.cast.player.message, 109:de.resper.e2cast-24] cast_receiver.js:18
 [254.278s] [cast.receiver.CastMessageBus] Unregistering sender [urn:x-cast:com.google.cast.media, 109:de.resper.e2cast-24] cast_receiver.js:18
 [340.191s] [cast.receiver.CastMessageBus] Disposed CastMessageBus[urn:x-cast:com.google.cast.system] cast_receiver.js:18
 [340.197s] [cast.receiver.CastMessageBus] Disposed CastMessageBus[urn:x-cast:com.google.cast.player.message] cast_receiver.js:18
 [340.201s] [cast.receiver.CastMessageBus] Disposed CastMessageBus[urn:x-cast:com.google.cast.media] cast_receiver.js:18
 [340.212s] [cast.receiver.CastReceiverManager] Disposed CastReceiverManager

Original issue reported on code.google.com by profd...@gmail.com on 10 Oct 2014 at 8:34

GoogleCodeExporter commented 9 years ago
Playing ts files directly in an HTML video element is not supported at this 
time. However, ts files that are part of an HLS stream is supported. For more 
details on supported media, please refer to this link: 
https://developers.google.com/cast/docs/media

Original comment by christia...@google.com on 15 Oct 2014 at 4:12

GoogleCodeExporter commented 9 years ago
And how I make a HLS Stream?

Original comment by profd...@gmail.com on 15 Oct 2014 at 7:00

GoogleCodeExporter commented 9 years ago
You can use a segmenter program to produce the HLS index and segmented files 
(.m3u8 and .ts files, respectively). Bear in mind that implementing HLS in your 
Cast setup will require CORS-compliance. You can refer to the link I included 
in my last post.

An alternative would be to simply convert your ts files into an accepted format 
such as MP4. Your converted files can then be streamed directly from your 
Chrome browser.

Original comment by christia...@google.com on 20 Oct 2014 at 9:27