Giter VIP home page Giter VIP logo

embed's People

Contributors

grambas avatar kanecohen avatar killtw avatar ramon-villain avatar vool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

embed's Issues

inject onclick method in the embed iframe

Has anybody managed to implement a JS onclick method in the embed iframe?
I have tried

$embed->setAttribute( ["onclick" => 'myMethod( ' . $video['id'] . ' )']);
and

$embed->setAttribute( ["onclick" => 'alert()']);
I see that in web inspector that the events are correctly injected to iframe html tags but I can't trigger even a simple alert.

I my case I want to add a listener for the player button ....

Latest Update broke Plugin for L4.2

Got an error after your latest update. Would be awesome if you commit a fix :)

{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Call to undefined method Cohensive\Embed\EmbedServiceProvider::mergeConfigFrom()","file":"C:\xampp18\htdocs\fotinity-portal\vendor\cohensive\embed\src\Cohensive\Embed\EmbedServiceProvider.php","line":31}}Script php artisan clear-compiled handling the post-update-cmd event returned with an error

Twitch clips not working

Youtube, dailymotion, etc. work.

However, with twitch clips nothing loads.

For example, I tried this clip out: https://www.twitch.tv/clintstevens/clip/CrispyEndearingCiderBibleThump

which was then converted into:

<object type="application/x-shockwave-flash" data="https://twitch.tv/widgets/live_embed_player.swf?channel=clintstevens" wmode="transparent" id="live_embed_player_flash" width="500" height="350"><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="allowNetworking" value="all"></param><param name="flashvars" value="hostname=www.twitch.tv&channel=clintstevens&auto_play=false&start_volume=25"></param><param name="movie" value="https://www.twitch.tv/widgets/live_embed_player.swf"></param></object>

however, when putting that on my website, it's just blank.

Untitled

Default image if no link provided

I am using this package for dynamic content feeding and it is doing an excellent job.
In my case I have many live events which still haven't started and in such case I would like to replace the url with a link to a default image. This would be a nice feature to have.
Thank you for your time.

Fatal error after generating config cache through artisan on Laravel 5.3

First many thanks for your package and your work.
I was trying to create config cache through php artisan config:cache however it seems that config file from your package is creating fatal error in that cached config file.

Fatal error: Call to undefined method Closure::__set_state() in xxx\bootstrap\cache\config.php on line 927

It seems that dataCallback are causing this. Here is code around line 927 ( and there is also one more occurence later ):

        'data' => NULL,
        'dataCallback' => 
        Closure::__set_state(array(
        )),

Is it possible to fix this somehow ?

support "start at"

Can you give us some tips to get video embeds from youtube with start time options
For example link: ...&t=24m10s

Call to undefined method Cohensive\Embed\Embed::make()

could you help please
Call to undefined method Cohensive\Embed\Embed::make()

        {!! \Cohensive\Embed\Embed::make($lessonsInfo->urlContent)->parseUrl($lessonsInfo->urlContent)->setAttribute([
        'width' => '100%',
        'height' => 315,
        'frameborder' => 0,
        'allowfullscreen' => true
        ])->getHtml() !!}

Call to undefined method Illuminate\\Foundation\\Application::bindShared()

I'm trying to install 4.2.0 on Laravel 4.0.*. It appears as though bindShared() is not a method. Some suggest it was renamed to singleton, although I'm not sure when that happened. Full error:

$ php artisan clear-compiled
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Call to undefined method Illuminate\\Foundation\\Application::bindShared()","file":"\/laravel\/vendor\/cohensive\/embed\/src\/Cohensive\/Embed\/EmbedServiceProvider.php","line":22}}

IMGUR?

Is there any way to get this to work with imgur?

SSL

Any support coming for https?

How to use responsive?

Hi @KaneCohen ,

Thanks for creating this package.

Do you have some pointers on how to use this responsively instead of with a fixed width and height?

- Sander

Closures in config file

Hello

I am trying to run php artisan config:cache but am triggering an error Call to undefined method Closure::__set_state(). It seems that Laravel does not support closures in config files. See below for reference.

laravel/framework#9625

I'm wondering if there is a work around for this or an update can be applied to provide the data for the dataCallback (ie in the youtube config)? I am willing to issue a pull request with an update with a little direction for a clean solution.

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.