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

UI::HtmlDialog not playing MP4 video, UI::WebDialog does #185

Closed
thomthom opened this issue Dec 13, 2018 · 3 comments
Closed

UI::HtmlDialog not playing MP4 video, UI::WebDialog does #185

thomthom opened this issue Dec 13, 2018 · 3 comments

Comments

@thomthom
Copy link
Member

Reference forum thread: https://forums.sketchup.com/t/ui-htmldialog-not-playing-mp4-video-ui-webdialog-does/83255

I am trying to play a MP4 video in HTML with UI::HtmlDialog using the HTML5 standard way to embed it:

<video width="1280" height="720" controls>
  <source src="movie.mp4" type="video/mp4">
</video>

The video is not embedded properly, and I have to convert it to .ogg to make it work. This was working correctly with the deprecated UI::WebDialog, so I guess there is any problem either with the codecs or with the HTML5 usage.

yeh,

CEF in SU v18 loads an empty player for mp4’s…

drop the mp4 in the zip into Sketchup.temp_dir so that it’s relative to the [not yet created] html, and it won’t play…

add the .ogv and that will play…

anyone of you used ffmpeg2theora windows?

I used brew install ffmpeg2theora on the mac…

it’s very fast but drops the last few frames on this short clips…

dlg = UI::HtmlDialog.new(
	dialog_title:    'local mp4 or ogv?',
	preferences_key: 'com.local.mp4',
	scrollable:       true,
	resizable:        true,
	width:            800,
	height:           450,
	style:            UI::HtmlDialog::STYLE_WINDOW
)

  html = <<-HTML
	<!DOCTYPE html> 
	<html> 
	<body> 
	<video width="400" controls autoplay>
		<source src="pencil.mp4" type="video/mp4" />
		<source src="pencil.ogv" type="video/ogg" />
	</video>
	</body> 
	</html>
	HTML

  dlg.set_html(html)
  dlg.center
  dlg.show

pencil.zip

@taustin73
Copy link

Logged SU-41957

@DanRathbun
Copy link

Can we have a "wont fix" reason for the record?

@ghost
Copy link

ghost commented Jan 31, 2019

Trimble Inc. does not have licensing rights for redistributing these video codecs to all our customers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants