oralodabas / google-cast-sdk

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

Cast m3u8 to chromecast which streams has massive lag #561

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Cast a m3u8 streams to chromecast by my developing android app
2. m3u8 file and .ts extension segment files are at my local server (Not CORS 
problem)
3. It will start to cast streaming. But lag happened at some ts segment.
4. The time cost is high that is observed via chrome develeoper mode. Please 
see pictures as attached.

What is the expected output? What do you see instead?
1. It should stream smoothly with no lag. I used other player to stream such as 
MX player works fine. 
2. Chromecast streams this m3u8 with massive lag.

more message is as attached

What version of the product are you using? On what operating system?
Streaming server : Mac os 10.10.2
Receiver : Style receiver and custom receiver have same problem.
cast_receiver.js : 2.0.0 version
media_player.js: 1.0.0 version

Please provide any additional information below.
1. The "Time" cost pictures is as attached.
2. Sample stream link: 
https://drive.google.com/file/d/0ByoZJAoAfH7Md2pOd0ZEWHBmbmc/view?usp=sharing

Original issue reported on code.google.com by newfun....@gmail.com on 13 Apr 2015 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Make an adjustment, VLC streams this sample fine, not MX player.

Original comment by newfun....@gmail.com on 13 Apr 2015 at 12:20

GoogleCodeExporter commented 9 years ago
Hi, there is another sample that has same problem that some position will be 
stuck.
The url link is: 
https://drive.google.com/file/d/0ByoZJAoAfH7MajdaYVZDUmpFMGs/view?usp=sharing

Original comment by newfun....@gmail.com on 13 Apr 2015 at 4:15

GoogleCodeExporter commented 9 years ago
What do you mean when you say "the time cost is high"? Have you experienced 
this issue when using the sample apps?

Original comment by jonathan...@google.com on 13 Apr 2015 at 11:23

GoogleCodeExporter commented 9 years ago
Hi, yes.

Sample receiver and style receiver both have the same problem which will be
stuck at some position.

And I had tested again, the Time and Latency is reduced.
But it still be stuck.

So maybe root cause is not high Time and Latency cost to happen stuck.

You can try the two samples using custom apps and style apps to see the
streams on screen, they always stuck at same position.
2015年4月14日 上午7:23於 <google-cast-sdk@googlecode.com>寫道:

Original comment by newfun....@gmail.com on 14 Apr 2015 at 12:41

GoogleCodeExporter commented 9 years ago
Can you provide receiver side MPL debug console logs?

Original comment by jonathan...@google.com on 15 Apr 2015 at 1:17

GoogleCodeExporter commented 9 years ago
Hi,thanks for replay. Logs are as attched.
test2.log is for 
https://drive.google.com/file/d/0ByoZJAoAfH7Md2pOd0ZEWHBmbmc/view?usp=sharing

test3.log is for 
https://drive.google.com/file/d/0ByoZJAoAfH7MajdaYVZDUmpFMGs/view?usp=sharing

test_akb.log is for 
https://drive.google.com/file/d/0ByoZJAoAfH7McjZTUkJyYmNORVE/view?usp=sharing

Original comment by newfun....@gmail.com on 15 Apr 2015 at 2:19

Attachments:

GoogleCodeExporter commented 9 years ago
Based on these logs, what exactly is the issue and where does it happen in the 
logs you provided?  The logs indicate that the video element currentTime is 
progressing and MPL maintains about 20 seconds of future data in the source 
buffer.

Original comment by vadi...@google.com on 15 Apr 2015 at 5:24

GoogleCodeExporter commented 9 years ago
Hi. test3 stream is obivious lag.

When I use VLC player to watch this video, it seems to be fluent on TV screen.
But use chromecast to stream test3, it's not fluent. 

For test3, It exactly starts to lag at first ts segment, subsequently every ts 
segment seem to be lag on TV screen. And audio sounds fine.
For example, you can observe the mouse cursor moving in video that is lag.

Any other possibilities will cause the lag? Such as information metadata of 
stream is not completed, or bitrate is too high/low?

Original comment by newfun....@gmail.com on 16 Apr 2015 at 1:34

GoogleCodeExporter commented 9 years ago
Hi, I record a video to show stream test3 sample on VLC and chromecast.
https://drive.google.com/file/d/0ByoZJAoAfH7MLWRMb084YmRDYms/view?usp=sharing

Left is played by chromecast, right is played by VLC. Chromecast is obvious lag.

Original comment by newfun....@gmail.com on 16 Apr 2015 at 8:55

GoogleCodeExporter commented 9 years ago
Hi, is there any progress on this issue?

Original comment by newfun....@gmail.com on 21 Apr 2015 at 1:38

GoogleCodeExporter commented 9 years ago
We're looking into it.

Original comment by jonathan...@google.com on 21 Apr 2015 at 8:50