Giter Club home page Giter Club logo

Comments (5)

xuelian-bai avatar xuelian-bai commented on June 19, 2024

we will check if there is such API to get rotation angle from MM player

from plugins.

xuelian-bai avatar xuelian-bai commented on June 19, 2024

Currently, video player plugin use texture method which use MMPlayer software codec(hardware codec is not supported for texture method), but software codec don't support that tag, and right now MMplayer don't provide such an API to get rotation information from metadata.
To solve this issue, there are two solution:

  1. Use another video player which implemented based on video hole and plus player(to support local video file, we may need to support MMplayer). Hardware codec can support this video tag and rotate automatically, and video player don't need to do anything.
  2. MMplayer provide an API to get rotation information, so that video plugin can change geometry of the texture.

from plugins.

bbrto21 avatar bbrto21 commented on June 19, 2024

but software codec don't support that tag, and right now MMplayer don't provide such an API to get rotation information from metadata.

Well, if you can read the rotation metadata from the video file, can you solve it by second way?
Here I attach some information those might helpful.
https://docs.tizen.org/application/native/guides/multimedia/metadata/#retrieving-metadata
https://docs.tizen.org/application/native/api/wearable/4.0/group__CAPI__METADATA__EXTRACTOR__MODULE.html

  metadata_extractor_h metadata_h;
  metadata_extractor_create(&metadata_h);
  metadata_extractor_set_path(metadata_h, video_file_path);

  char *value = nullptr;
  metadata_extractor_get_metadata(metadata_h, METADATA_ROTATE, &value);

from plugins.

xiaowei-guan avatar xiaowei-guan commented on June 19, 2024

xiaowei-guan@7e71c7b

we can get rotation value,but set to player, not effect.

from plugins.

bbrto21 avatar bbrto21 commented on June 19, 2024

xiaowei-guan@7e71c7b

we can get rotation value,but set to player, not effect.

I guess that this approach only works when the player uses the display feature.

error_code = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, GET_DISPLAY(evas_obj));

from plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.