GithubHelp home page GithubHelp logo

Rotating EMVideoView about exomedia HOT 17 CLOSED

brianwernick avatar brianwernick commented on May 26, 2024
Rotating EMVideoView

from exomedia.

Comments (17)

brianwernick avatar brianwernick commented on May 26, 2024

The current demo app correctly handles device rotation when playing a video. Your problem sounds like an issues with the dialog fragment. Possibly related to http://stackoverflow.com/questions/14657490/how-to-properly-retain-a-dialogfragment-through-rotation

from exomedia.

notsatyarth avatar notsatyarth commented on May 26, 2024

Sorry I was not clear enough.I have a portrait activity where I have am trying to open a Dialog fragment where by rotating the EMVideView by 90,i plan to make it look like landscape.Is that possible?

from exomedia.

brianwernick avatar brianwernick commented on May 26, 2024

Not currently (and I don't plan on adding it in the future since it is a very small edge case). You might be able to do something similar to what is described in http://stackoverflow.com/questions/8586526/rotating-an-android-videoview

from exomedia.

notsatyarth avatar notsatyarth commented on May 26, 2024

Can i get a reference to the VideoView used here?

from exomedia.

brianwernick avatar brianwernick commented on May 26, 2024

Sorry, I'm not sure what you are asking?

from exomedia.

notsatyarth avatar notsatyarth commented on May 26, 2024

in EMVideoView can i get a reference to the underlying view to rotate it.Or is it not possible with EMVideoView?

from exomedia.

brianwernick avatar brianwernick commented on May 26, 2024

Oh, you would probably need to modify the exoVideoSurfaceView (https://github.com/brianwernick/ExoMedia/blob/master/library/src/main/java/com/devbrackets/android/exomedia/EMVideoView.java#L239). However, this would require modifications to the layouts referenced in initView which is private. So when I get a little time I will update method availabilities to protected and maybe re-structure a little to help with any custom video layouts like this

from exomedia.

notsatyarth avatar notsatyarth commented on May 26, 2024

OK thanks,Feel free to close the issue if its out of scope .Thank you 👍 :)

from exomedia.

notsatyarth avatar notsatyarth commented on May 26, 2024

Also ,I do not want to open an issue for something this trivial hence asking here.But I cannot play webm videos on a Samsung API 17 phone. Is that possible? Or am i doing something wrong. Only audio plays while there is no video.

from exomedia.

brianwernick avatar brianwernick commented on May 26, 2024

Hmm, webm should work :/

I'll see if I can get any webm to play on my devices this weekend (I haven't tested it in a while)

from exomedia.

notsatyarth avatar notsatyarth commented on May 26, 2024

And if a video does not play,is there a callback that I can receive and choose an alternating format.
Also maybe get a list of the possible formats?

from exomedia.

brianwernick avatar brianwernick commented on May 26, 2024

Sorry; I haven't forgotten about this, I've just been pretty busy with work lately. It looks like it may be closer to the new year when I can get around to any issues :(

from exomedia.

notsatyarth avatar notsatyarth commented on May 26, 2024

No issues.Thank you for the library :).
Also do let me know if you need any help in maintaining.

from exomedia.

brianwernick avatar brianwernick commented on May 26, 2024

I just tried webm again and it plays without issues on my Nexus devices (and the new emulator) [http://video.webmfiles.org/big-buck-bunny_trailer.webm]

from exomedia.

brianwernick avatar brianwernick commented on May 26, 2024

I'm going to close this as WEBM is currently working (there are updates that will be in 2.5.0 that should fix a few minor playback issues). The method availability changes will be in the next major release (3.0) since I'm making other architectural changes I will wait until then.

from exomedia.

brianwernick avatar brianwernick commented on May 26, 2024

As far as the original Rotation question goes: I have added the ability to manually specify video rotation in the 3.0 branch. See #159

from exomedia.

notsatyarth avatar notsatyarth commented on May 26, 2024

Thanks a lot!

from exomedia.

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.