Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use flash only when html5 player not available #7

Open
blakerego opened this issue Nov 30, 2015 · 2 comments
Open

Use flash only when html5 player not available #7

blakerego opened this issue Nov 30, 2015 · 2 comments

Comments

@blakerego
Copy link

First off, thanks for this plugin!

When I add the vg-flash-player directive, it properly uses the flash player. However, this bypasses the HTML5 video player options if it is available. Is it possible to use the pure HTML5 video player if it is supported and only fall back to the flash option if the HTML5 video player is not available?

This is my markup -

  <videogular>
    <vg-media vg-src="videoConfig.sources" vg-flash-player vg-preload="'auto'"></vg-media>

    <vg-controls>
      <vg-play-pause-button></vg-play-pause-button>
      <vg-time-display>{{ currentTime | date:'mm:ss' }}</vg-time-display>
      <vg-scrub-bar>
        <vg-scrub-bar-current-time></vg-scrub-bar-current-time>
      </vg-scrub-bar>
      <vg-time-display>{{ timeLeft | date:'mm:ss' }}</vg-time-display>
      <vg-volume>
        <vg-mute-button></vg-mute-button>
        <vg-volume-bar></vg-volume-bar>
      </vg-volume>
      <vg-fullscreen-button></vg-fullscreen-button>
    </vg-controls>
    <vg-overlay-play></vg-overlay-play>
    <vg-poster vg-url='videoConfig.plugins.poster'></vg-poster>
  </videogular>
@NamPNQ
Copy link
Owner

NamPNQ commented Dec 1, 2015

I don't have time for implement it, but I have suggest code for u:
create a video tag, and check if browser support do something else do something

@dimalama
Copy link

@blakerego Hi I was wondering how far did you get to it. Did you implement fallback flash option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants