Sie sind nicht angemeldet.

MikaG

Anfänger

  • »MikaG« ist der Autor dieses Themas

Beiträge: 24

Wohnort: Berlin, Germany

  • Nachricht senden

1

Sonntag, 1. Mai 2016, 00:43

Distorted Video hotspot different size in Flash and HTML5

Hello,

I added a distorted video hotspot in one of a scene and tweaked its position and size using the Flash player. When I switch to HTML5 (which I prefer) the embedded video frame dimensions are considerably larger than in Flash. I somehow couldn't figure out why there is a different displayed size of the hotspot and what I could do, to match them for Flash and HTML5. Any hints would be highly appreciated!

Timescale

Schüler

Beiträge: 120

Wohnort: Netherlands

Beruf: Archaeologist, Timescale R&D

  • Nachricht senden

2

Sonntag, 1. Mai 2016, 01:14

Is this behavior consistent throughout all OS/browser platforms?

MikaG

Anfänger

  • »MikaG« ist der Autor dieses Themas

Beiträge: 24

Wohnort: Berlin, Germany

  • Nachricht senden

3

Sonntag, 1. Mai 2016, 08:17

I'm not capable of testing on various platforms and browsers. At least on OSX Chrome and Safari it occurs on both and also on iOS in Puffin browser (uses Flash on iOS)... I corrected for the HTML5 version, so in Flash the dimensions are a bit smaller.

There must be something different with the projection of the video dimensions between Flash and HTML5. I'm going to turn off Flash later anyway. But I'm still curious what the actual problem is!? My xml code looks like this:

Quellcode

1
2
<!-- videohospots -->
<hotspotname="videospot" url.html5="%SWFPATH%/plugins/videoplayer.js" url.flash="%SWFPATH%/plugins/videoplayer.swf" videourl="media/Scheunenzimmer.mp4" posterurl="media/Scheunenzimmer.jpg" distorted="true" ath="-95.58" atv="0.59"edge="center" scale="0.25" rx="10" ry="0" rz="0" ox="0" oy="0" loop="true pausedonstart="true onclick="togglepause();"  />

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »MikaG« (1. Mai 2016, 08:31)


4

Montag, 2. Mai 2016, 13:14

Hi,

in Flash the size of the video itself will be taken,
and in HTML5 either the size of the poster-image (when present) or also the size of the video itself.

That means maybe the size of the poster-image is wrong...?

Best regards,
Klaus

MikaG

Anfänger

  • »MikaG« ist der Autor dieses Themas

Beiträge: 24

Wohnort: Berlin, Germany

  • Nachricht senden

5

Montag, 2. Mai 2016, 13:57

Thank you, Klaus. In fact, sizes of the poster and the video itself were different by accident. You´re a Genius!