New issue
Advanced search Search tips

Issue 633940 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

How to detect [Stop Sharing] button is pressed?

Reported by gtk2kri...@gmail.com, Aug 3 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2817.0 Safari/537.36

Steps to reproduce the problem:
(53では未確認)現在のstable版(M52)を含む以前のバージョンではendedイベント(stream.onended)で取得することができましたが、
54ではendedイベントが廃止になるようで、イベントハンドラを設定してもイベントを取得できません。
代わりにinactiveイベントのハンドラを設定してみたのですが、これも共有停止ボタンをクリックしてもイベントが発生してくれませんでした。
どうすれば、共有停止ボタンをクリックしたというイベントを取得することができるのでしょうか?

What is the expected behavior?

What went wrong?
endedイベントまたはinactiveイベントが発生しない。

Did this work before? N/A 

Chrome version: 54.0.2817.0  Channel: canary
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0
 
stopsharing.png
15.2 KB View Download

Comment 1 by tkent@chromium.org, Aug 3 2016

Cc: guidou@chromium.org hta@chromium.org
Components: -Blink Blink>MediaStream
Summary: How to detect [Stop Sharing] button is pressed? (was: 共有停止ボタンをクリックしたというイベントを取得するには?)
Translated summary:
When a user presses [Stop Sharing] button, 'ended' event was dispatched until M52, but the event is not available in M54.  'inactive' event also didn't work.

'ended' event was removed per  https://crbug.com/586924 

Comment 3 by hta@chromium.org, Aug 4 2016

That's the stream 'ended' event, right?
The solution (requiring a change to customer's Javascript) is to listen to the track 'ended' event instead.

#3: Thank you! This problem solved.
Status: WontFix (was: Unconfirmed)
Closing this issue as per comment #4.
Please feel free to file a new bug for any further issues with chrome in future.

Sign in to add a comment