Coder Social home page Coder Social logo

Comments (5)

bradmartin avatar bradmartin commented on June 12, 2024

Should work fine. Do you have errors or what's happening? I think the demo app is working fine, so more info about your project would be helpful and errors or what you see happening.

from nativescript-videoplayer.

xblabs avatar xblabs commented on June 12, 2024

Got it to work Brad. Thanks! Was an issue with Svelte preprocess and the "src" attribute on the native element

from nativescript-videoplayer.

eikaramba avatar eikaramba commented on June 12, 2024

@henryschmieder can you elaborate how you were able to fix it? also using svelte-native. for me there is just no error, but i don't see anything in the UI

import { Video } from 'nativescript-videoplayer';
registerNativeViewElement('videoPlayer', () => Video);

then

<videoPlayer id="nativeVideoPlayer" controls="true" loop="true" autoplay="true" width="100%"
src="~/images/rendering.mp4" />

from nativescript-videoplayer.

eikaramba avatar eikaramba commented on June 12, 2024

nevermind i added webpack.Utils.addCopyRule('**/*.mp4') to my webpack config and made sure to have a height attribute. The error actually was also because height was missing. ;)

from nativescript-videoplayer.

franconeilglovasa avatar franconeilglovasa commented on June 12, 2024

Hi!

How did you manage to play the video? Using NS 8.3.3 cant play any video that is from the website.

<VideoPlayer
src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
autoplay="false"
height="300"></VideoPlayer>


// somewhere at top of your component or bootstrap file
import { registerElement } from "@nativescript/angular";
import { Video } from 'nativescript-videoplayer';
registerElement("VideoPlayer", () => Video);
// documentation: https://docs.nativescript.org/angular/plugins/angular-third-party.html#simple-elements

Git:
https://github.com/franconeilglovasa/nativeapp1

from nativescript-videoplayer.

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.