Blazemeter / HLSPlugin

A repo to hold the OpenSource HLS JMeter Plugin code
Apache License 2.0
48 stars 17 forks source link

error if we set the duraton of the video playback #3

Closed facsiaginsa closed 4 years ago

facsiaginsa commented 5 years ago

hello, i set the duration of the video (120 s), i get this error: Capture

when i set the duration to "whole video", it wont stop. The video duration is 11m, but it still run when the time show 13m+. why is it happen?

rabelenda commented 5 years ago

Hello, thank you for reporting the issue.

Can you provide the jmeter logs to be able to better trace the cause of the issue?

Regards

facsiaginsa commented 5 years ago

Thanks for the respond.

Here is the log, i just use 2 thread, set the video duration by 600. i also attach my jmx for consideration, maybe my jmx config is wrong.

jmeter.log

hlssampler.zip

rabelenda commented 5 years ago

Hello,

The issue seems to be related with the plugin not properly resolving the url of the fragments and getting 404 response from the HLS server. Additionally, when such issue happen, it seems the plugin is not finishing since it can't download any fragments.

Can you verify if the reported segments urls are ok (maybe using curl to see if you get 404 for the url, or since you are using a local server maybe you know what is the expected segment url), and if you can please share the contents of the master list and playlist (the response body in jmeter for the sample results you see in green)? Have you tried consuming the hls video from a browser? you can compare the requests to the server by checking with inspect in the browser the requests for the segments and check if they look the same as jmeter plugin.

Regards.

facsiaginsa commented 5 years ago

If you can please share the contents of the master list and playlist (the response body in jmeter for the sample results you see in green)? i'm afraid i don't understand what you mean, but i will send several screen shoot, maybe this is what you need. please let me know if i'm wrong

Have you tried consuming the hls video from a browser? I use vlc and use network stream to consume the video. and it is alright. If I use my browser (chrome) the content is downloaded, not played on the browser. it can only played on browser if the browser is safari. and i dont use mac. hehe..

Capture Capture1 Capture2

rabelenda commented 5 years ago

Hello, from those three screenshots, can you send the same but showing the response and request tabs? Regards

facsiaginsa commented 5 years ago

ok, tomorrow i will send it to you. Thx! 👍

facsiaginsa commented 5 years ago

hi, here i send you the capture of response & request tab capture.zip

rabelenda commented 5 years ago

Thank you for the info, that really helps!

Yes, it seems to be a problem with URL resolution. We are going to release a new version of the plugin that should fix your case. I will let you know whenever the release is done so you can test with latest release and verify if everything works as expected.

Regards

facsiaginsa commented 5 years ago

Thank you very much!

Oh ya, one more thing, whenever i play the content using vlc, i get around 2mbps download throughput. But when i test it with the plugin for 2 user paralel i only get less than 100kbps, it should be around 4 mbps right? Is this plugin designed like that? or this is another problem?

rabelenda commented 5 years ago

It might be an issue with plugin reported sample results, when we do the release please re verify this case (since we are including many fixes) and if you find it still doesn't match, open a new ticket for that.

Regards

facsiaginsa commented 5 years ago

nice to hear that. hope to see the update really soon 👍

rabelenda commented 4 years ago

Closing since this should have been fixed with release 2.0