Coder Social home page Coder Social logo

Comments (11)

fregante avatar fregante commented on May 22, 2024

iphone-inline-video is javascript
Most email clients don't support javascript

from iphone-inline-video.

binarykitchen avatar binarykitchen commented on May 22, 2024

No, not email. Just click on the link in the email to open the web page. Video won't play on Safari.

from iphone-inline-video.

fregante avatar fregante commented on May 22, 2024

My bad, I'm seeing that now. Make sure that you call makeVideoPlayableInline() after setting the src to the video

from iphone-inline-video.

fregante avatar fregante commented on May 22, 2024

Actually, I'm not seeing the props on the <video> element at all, so make sure that the function is actually called

These should appear at the bottom of the output of dir(video) in the console via remote debugger:

screen shot 2016-04-12 at 15 43 14

from iphone-inline-video.

binarykitchen avatar binarykitchen commented on May 22, 2024

ok, will try tomorrow, thanks

from iphone-inline-video.

binarykitchen avatar binarykitchen commented on May 22, 2024

@bfred-it Hmmm, I moved makeVideoPlayableInline after setting the src's to the video. Still no luck.

See changes at
https://github.com/binarykitchen/videomail-client/blob/master/src/wrappers/visuals/replay.js#L92

that show() function is called after mp4 + webm sources are set.

Have bumped www.videomail.io with these changes - if you do not mind to check again, that would be very much appreciated.

from iphone-inline-video.

fregante avatar fregante commented on May 22, 2024

The video width is 0
screen shot 2016-04-20 at 12 23 37

Once I set that to something else the video appears, but for some reason the module is not running because the symbols are not there and the video plays fullscreen. Also you're missing the CSS to hide the play button https://github.com/bfred-it/iphone-inline-video#usage

Again, the issue is somewhere in your code and I can't debug that

from iphone-inline-video.

binarykitchen avatar binarykitchen commented on May 22, 2024

Right, I can reproduce all the above with Valence now (but have added the missing CSS).

So, I have really no idea why width is set to 0. In the Videomail-Client code I set the width and height of the video dom element before the makeVideoPlayableInline() call. Is that good or should I set width/height after that call?

See from https://github.com/binarykitchen/videomail-client/blob/master/src/wrappers/visuals/replay.js#L86

from iphone-inline-video.

fregante avatar fregante commented on May 22, 2024

Video size shouldn't affect the module. You just need to make sure that the src or currentSrc properties are set when you call that function.

from iphone-inline-video.

binarykitchen avatar binarykitchen commented on May 22, 2024

@bfred-it ah, finally got it. the height was wrongly calculated before. works well on iphones now :)

but why does the video play full-screen and not inline? any ideas why?

from iphone-inline-video.

fregante avatar fregante commented on May 22, 2024

Re-read this: #16 (comment)

You're not calling the function. On your website I called it on the video and it works.

The only limitation is that you can't use the browser's play/pause buttons: #16 (comment)

from iphone-inline-video.

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.