Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browser: notify user for unsupported video #7222

Closed

Conversation

lpranam
Copy link
Member

@lpranam lpranam commented Sep 7, 2023

detect if video is being played by browser using fps, if fps is near zero that means video is not able to play

Change-Id: I22bfc836a98ec0eb2caa58b89332b2531d69d18f

  • Target version: master

Checklist

  • Code is properly formatted
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@lpranam lpranam force-pushed the unsupported_video_notification branch from 88edb49 to cd37b92 Compare September 8, 2023 22:00
@lpranam lpranam marked this pull request as ready for review September 8, 2023 22:01
Copy link
Contributor

@Ashod Ashod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lpranam. Looks promising. Left some comments.

browser/src/map/handler/Map.SlideShow.js Outdated Show resolved Hide resolved
browser/src/map/handler/Map.SlideShow.js Outdated Show resolved Hide resolved
browser/src/map/handler/Map.SlideShow.js Outdated Show resolved Hide resolved
browser/src/layer/vector/SVGGroup.js Outdated Show resolved Hide resolved
@lpranam lpranam force-pushed the unsupported_video_notification branch from cd37b92 to fadaec7 Compare October 9, 2023 15:07
Copy link
Contributor

@Ashod Ashod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lpranam. Looks much better. Left one suggestion regarding code duplication. Best to have it in a cleaner state before we merge.

browser/src/map/handler/Map.SlideShow.js Outdated Show resolved Hide resolved
@lpranam lpranam force-pushed the unsupported_video_notification branch 2 times, most recently from e20bf8c to 612c6f4 Compare October 10, 2023 14:44
@lpranam lpranam force-pushed the unsupported_video_notification branch 2 times, most recently from 055fca1 to 762798d Compare October 11, 2023 11:32
@eszkadev
Copy link
Contributor

doesn't work: when I select video it shows snackbar with information that it is unsupported (but video can be played in my browser):
unsupvid-2023-10-11_13.49.00.webm

@lpranam lpranam force-pushed the unsupported_video_notification branch from 762798d to c039832 Compare October 11, 2023 15:26
@lpranam
Copy link
Member Author

lpranam commented Oct 11, 2023

NOTE: This patch does not show a warning in the slideshow as the snake bar can not be displayed over the fullscreen element. will talk to @pedropintosilva about it and fix it in the follow-up.

@eszkadev
Copy link
Contributor

eszkadev commented Oct 11, 2023

I think we can remove slideshow handler here? as it will not work, we need to code "alert" in presentation_engine.js generated by LibreOffice

detect if video is able to play via checking if any frames are decoded,
in other cases(i.e: file not found or corrupted file) check for the errors in source and video

Signed-off-by: Pranam Lashkari <[email protected]>
Change-Id: I22bfc836a98ec0eb2caa58b89332b2531d69d18f
@lpranam lpranam force-pushed the unsupported_video_notification branch from c039832 to 13d7f01 Compare October 11, 2023 16:04
@timar
Copy link
Member

timar commented Oct 11, 2023

I cherry-picked, resolved the conflict, and pushed to master directly. I could not figure out how to push here.

@timar timar closed this Oct 11, 2023
@lpranam lpranam deleted the unsupported_video_notification branch October 11, 2023 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants