Comments (4)
Can you share the project package.json, your code for how you're using the video player as well?
from nativescript-videoplayer.
Package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"scripts": {
"lint": "eslint \"app/**/*.js\""
},
"dependencies": {
"@nativescript/core": "7.0.0",
"@nativescript/theme": "2.5.0",
"@nativescript/webpack": "3.0.0",
"@progress-nativechat/nativescript-nativechat": "3.0.0",
"kinvey-nativescript-sdk": "5.0.0",
"nativescript-accelerometer": "3.0.0",
"nativescript-background-http": "4.2.1",
"nativescript-camera": "4.5.0",
"nativescript-geolocation": "5.1.0",
"nativescript-image": "2.2.5",
"nativescript-imagepicker": "7.1.0",
"nativescript-intl": "3.0.0",
"nativescript-iqkeyboardmanager": "1.5.1",
"nativescript-social-share": "1.5.2",
"nativescript-theme-core": "1.0.6",
"nativescript-ui-autocomplete": "6.0.0",
"nativescript-ui-calendar": "6.0.0",
"nativescript-ui-chart": "7.1.0",
"nativescript-ui-dataform": "6.0.0",
"nativescript-ui-gauge": "6.0.0",
"nativescript-ui-listview": "8.0.1",
"nativescript-ui-sidedrawer": "8.0.0",
"nativescript-videoplayer": "^5.0.1"
},
"devDependencies": {
"@nativescript/ios": "7.0.6",
"@nativescript/types": "7.0.0"
},
"author": "",
"main": "app.js"
}
Usage on Page object:
XML:
<Page class="modal-page" xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:VideoPlayer="nativescript-videoplayer" shownModally="onShownModally" unloaded="onNavigatedFrom">
<DockLayout stretchLastChild="true">
<AbsoluteLayout class="modal-stack" dock="top">
<VideoPlayer:Video class="modal-video" id="nativeVideoPlayer" controls="false" autoplay="true" fill="false" top="0"
left="0" height="100%" width="100%" src="{{ video }}" />
JS:
function onNavigatedFrom(args) {
const video = args.object.getViewById('nativeVideoPlayer') ;
video.pause();
}
Calling function:
function watchVideo(args) {
console.log(args.object.bindingContext.video);
const page = args.object.page;
page.showModal(
"./modal/modal",
{
video: args.object.bindingContext.video
},
function closeCallback(result) {
if (result) {
console.log("Result was: ", result);
}
},
false // Full screen or not? (on iOS the modal is fullscreen irrespective of this value)
);
}
Crashes when invoking showModal on the Page object.
from nativescript-videoplayer.
Too many issues to fix after upgrading to V7.
I'm going to use Swift to rebuild it from scratch unless there's a fix coming 🙄
from nativescript-videoplayer.
Not sure what the issue is :) hard to help. V7 was a major version with breaking changes.
If you have any errors or more info on what is broken with your update process I'd be happy to help guide you.
Looks like you might have some plugins/deps that need to be updated but I'm unsure.
from nativescript-videoplayer.
Related Issues (20)
- Uncaught Error: Cannot find module 'nativescript-angular/element-registry HOT 3
- Question: Playing Video on Viewport and More HOT 5
- Question: How to detect video is playing or paused HOT 2
- The plugin is taking over the audio focus even on muted videos HOT 2
- Error playback on iOS 13
- getDuration on live stream returns NaN
- Angular Nativescript 6.3.3 | Video is not displaying HOT 2
- Keep playing while the app is in background
- Not compatible with NativeScript 8.1 HOT 5
- Unable to play remote videos that are streamed from a DB (from urls) HOT 3
- ios crash with migrate to ns8. Only in --release HOT 1
- Ability to show subtitles?
- Does this player work for m3u8/hls streams?
- couldnt find registerElement in nativescript-angular/element-registry HOT 1
- unable to play video
- Demo Not working
- Video player options not visible on iOS 16 HOT 1
- Repocitor
- Re
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-videoplayer.