communitymedia / mediaphone

An Android multimedia narrative app (Com-Phone Story Maker)
https://digitaleconomytoolkit.org/com-phone/
GNU Lesser General Public License v3.0
18 stars 8 forks source link

Content scalation issues in HTML exporting #13

Closed EchedelleLR closed 4 years ago

EchedelleLR commented 4 years ago

I am reporting here from a friend's experience.

It seems to happen with any content, not only text.

Webview based: image-2242486116 image-522969602

IceCat based: image-1562455413

simonrob commented 4 years ago

Thanks for reporting this.

I can't replicate the WebView results that you are seeing, but I presume this is happening in an app that overrides the viewport (which isn't actually specified in the HTML player).

To be honest the HTML export option is primarily aimed at non-mobile browsers. I could update it to fix this, but would probably lose some of the backwards compatibility that Com-Phone tries to preserve. I will take a look.

Is your friend using a recent phone? What version of Android do they have?

EchedelleLR commented 4 years ago

The Webview tests were made from a webapp which uses the webview in raw to render HTML/CSS and allow JS content as the Android default web browser cannot open files and HTML viewer cannot execute JS by default (https://github.com/Simon-Laux/ZHV)

Android version is Android 9.

EchedelleLR commented 4 years ago

I think it overrides viewport for mobile screen adaptation as most webpages are not adapted to the mobile screen (see IceCat example very very very far to be read correctly) and ZHV is integrated in a version of Delta Chat used by Cubans to interact dynamically with a bot and allow deep actions as web browsing, etc.

simonrob commented 4 years ago

Please can you try this sample of a new HTML narrative player and let me know whether it is a better experience: https://digitaleconomytoolkit.org/com-phone/beta/com-phone-4f20230d.html

EchedelleLR commented 4 years ago

I tried to download it on mobile directly but seems that was difficult to find a browser which allowed it and also was downloaded broken...

Could you upload it attached here? If not I can try in the computer later.

simonrob commented 4 years ago

You shouldn't need to download it - it plays in the browser automatically.

However, if you want to try it in a different app that needs a local file, the following link should automatically download rather than playing: https://digitaleconomytoolkit.org/com-phone/beta/download/com-phone-4f20230d.html

EchedelleLR commented 4 years ago

It works perfectly. Thank you. Screenshot_20201029-095636 Screenshot_20201029-095639 Screenshot_20201029-095629 Screenshot_20201029-095706

EchedelleLR commented 4 years ago

I have a new issue. Idk if report here or other part.

simonrob commented 4 years ago

Fixed in mediautilities 30dc950. Moving discussion of audio playback to #15.