See: https://fluentreports.com/blog/?p=1434
The official NativeScript Exoplayer plugin
The documentation for the plugin is located in the src folder.
Please use: https://github.com/nstudio/nativescript-plugins/
See: https://fluentreports.com/blog/?p=1434
The official NativeScript Exoplayer plugin
The documentation for the plugin is located in the src folder.
Hi,
I am facing problem for playing SD Card's video. The link of the video link this:
/storage/emulated/0/Android/data/com.native.test/files/page/3358/HSK-1-L13-2.1-HD_360.mp4
file:///storage/emulated/0/Android/data/com.native.test/files/page/3358/HSK-1-L13-2.1-HD_360.mp4
/sdcard/Android/data/com.native.test/files/page/3358/HSK-1-L13-2.1-HD_360.mp4
None is working. But if you try to play this video using MX player manually, it works. Any idea in where I am doing wrong?
Thanks
awesome plugin and a time saver. However, i run into this issue where setting fill property isnt firing. i can use i a little help on this one
Hi. I am trying to access the video by id. But return undefined. Example: https://play.nativescript.org/?template=play-tsc&id=H8hxFe&v=2
When trying to display the exoplayer on iOS using Nativescript 7, I get the following error:
TypeError: Class constructor View cannot be invoked without 'new'
This worked before upgrading to NS7, so I assume it's not yet compatible. Is there an easy solution?
My ns info
:
Component nativescript has 7.0.8 version and is up to date.
Component @nativescript/core has 7.0.3 version and is up to date.
Component @nativescript/ios has 7.0.0 version and is up to date.
Component @nativescript/android has 7.0.0 version and is up to date.
For https://github.com/bradmartin/nativescript-videoplayer
you can't play directly unless you parse using http://plugins.nativescript.org/plugin/nativescript-youtube-parser
I have added exoplayer in listview it is working properly but loading only for first 5 items and hiding all instances after scrolling. I think exoplayer is not re-rendering after scrolling list.
Hey,
Video breaks after resuming the app at API levels lower than 24.
Inside the Exoplayer demo activity source we see an explicit check on API level <= 23. It releases the player on suspend and it reinits on resume. Does this conflict with NativeScript or is this an Exoplayer issue?
When the user has connection problems I get this in the console:
PlayerError com.google.android.exoplayer2.ExoPlaybackException: com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException: Unable to connect to ...
I was wondering if it was possible to catch this error and tell the user that they have connection problems and the video can't load.
I'm using this great plugin in nativescript-vue
How can I know if the video is playing or paused?
Hello,
Thanks for the plugin. Is it possible to add subtitle (.srt) with the video?
Thanks
Hi there,
I was making my own video overlay panel and I have most things working fine except for 2 peices. The pause button works by calling my this.videoplayer.pause()
but my this.videoplayer.play()
does nothing, the video remains paused.
I dug a little into it using the debugger and found that in this block of code:
onPlayerStateChanged: function (playWhenReady, playbackState) {
if (!this.owner) {
return;
}
if (playbackState === STATE_READY) {
if (!this.owner.eventPlaybackReady) {
this.owner.eventPlaybackReady = true;
this.owner._emit(Video.playbackReadyEvent);
}
if (this.owner._onReadyEmitEvent.length) {
do {
this.owner._emit(this.owner._onReadyEmitEvent.shift());
} while (this.owner._onReadyEmitEvent.length);
}
if (playWhenReady && !this.owner.eventPlaybackStart) {
this.owner.eventPlaybackStart = true;
}
}
else if (playbackState === STATE_ENDED) {
if (!this.owner.loop) {
this.owner.eventPlaybackStart = false;
this.owner.stopCurrentTimer();
}
this.owner._emit(Video.finishedEvent);
if (this.owner.loop) {
this.owner.play();
}
}
},
my state is never STATE_READY
and it seems to never change from STATE_IDLE
My code looks like this (NativeScript 7 + Angular):
<exoplayer
#videoPlayerRef
[src]="videoSrc"
autoplay='true'
loop='false'
muted="false"
backgroundAudio="true"
(playbackReady)="onPlaybackReady()"
observeCurrentTime="true"
(currentTimeUpdated)="onCurrentTimeUpdated()">
</exoplayer>
@ViewChild('videoPlayerRef') videoPlayerRef;
public videoplayer: Video;
public paused = false;
. . .
this.videoplayer = this.videoPlayerRef.nativeElement;
. . .
togglePlaying(): void {
if (this.paused) {
this.paused = false;
this.videoplayer.play();
}
else {
this.paused = true;
this.videoplayer.pause();
}
}
I think it might also be related, but mute/unmute does not work either. I can seek to a time though, so I know my references are not wrong.
Hi,
Can this plugin be also used to play audio with URL?
Hi,
This is a great plugin, thank you for the great work!
However, I seem to face an unusual behaviour, where some m3u8 files are loaded nicely and the others are not loaded. Leaving me with a white screen without error.
Haven't tested in iOS, but this behaviour is happening in Android.
Is there more detailed error log, I can spit out to see what's causing the white screen?
Thank you,
This may be related to #22.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 7.1.2 version and is up to date.
✔ Component @nativescript/core has 7.1.3 version and is up to date.
✖ Component @nativescript/ios is not installed.
✔ Component @nativescript/android has 7.0.1 version and is up to date.
"dependencies": {
"@nativescript-community/ui-pager": "^13.0.0-alpha.10",
"@nativescript/appversion": "^2.0.0",
"@nativescript/core": "~7.1.0",
"@nativescript/firebase": "^11.0.0",
"@nativescript/geolocation": "^7.0.0",
"@nativescript/iqkeyboardmanager": "^2.0.0",
"@nativescript/secure-storage": "^3.0.0",
"@nativescript/theme": "^3.0.0",
"@proplugins/nativescript-orientation": "^2.5.0",
"@types/node": "^12.12.7",
"moment": "^2.27.0",
"moment-timezone": "^0.5.28",
"nativescript-audio-player": "^1.0.3",
"nativescript-exoplayer": "^4.0.2",
"nativescript-insomnia": "^2.0.0",
"nativescript-mqtt": "^3.0.0",
"nativescript-ui-listview": "^9.0.2",
"nativescript-ui-sidedrawer": "^9.0.3",
"nativescript-webview-interface": "^1.4.4"
},
JS: Error: Building UI from XML. @./views/pages/videotest/videotest-page.xml:7:7
JS: > Module 'nativescript-exoplayer' not found for element 'nativescript-exoplayer:Video'.
JS: > Class constructor View cannot be invoked without 'new'
JS: error repo - reporting
JS: discarded Error: Calling js method onTouch failed
JS: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
JS: error repo - reporting
System.err: An uncaught Exception occurred on "main" thread.
System.err: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
System.err:
System.err: StackTrace:
System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
System.err: at com.tns.gen.java.lang.Object_vendor_21279_28_TouchListenerImpl.onTouch(Object_vendor_21279_28_TouchListenerImpl.java:19)
System.err: at android.view.View.dispatchTouchEvent(View.java:12509)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
System.err: at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:440)
System.err: at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1830)
System.err: at android.app.Activity.dispatchTouchEvent(Activity.java:3400)
System.err: at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
System.err: at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:398)
System.err: at android.view.View.dispatchPointerEvent(View.java:12752)
System.err: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5106)
System.err: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4909)
System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4426)
System.err: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4479)
System.err: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4445)
System.err: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4585)
System.err: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4453)
System.err: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4642)
System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4426)
System.err: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4479)
System.err: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4445)
System.err: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4453)
System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4426)
System.err: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7092)
System.err: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7061)
System.err: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7022)
System.err: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7195)
System.err: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:186)
System.err: at android.os.MessageQueue.nativePollOnce(Native Method)
System.err: at android.os.MessageQueue.next(MessageQueue.java:326)
System.err: at android.os.Looper.loop(Looper.java:160)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6669)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
JS: uncaughterror Error: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
System.err: com.tns.NativeScriptException: Error: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
System.err: at com.tns.Runtime.passExceptionToJsNative(Native Method)
System.err: at com.tns.Runtime.passUncaughtExceptionToJs(Runtime.java:84)
System.err: at com.tns.NativeScriptUncaughtExceptionHandler.uncaughtException(NativeScriptUncaughtExceptionHandler.java:34)
System.err: at com.google.android.gms.ads.internal.report.b.uncaughtException(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:3)
System.err: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
System.err: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1063)
System.err: at com.google.android.gms.ads.internal.report.c.uncaughtException(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:3)
System.err: at java.lang.Thread.dispatchUncaughtException(Thread.java:1955)
^C
wonderful plugin , thanks ! tried your demo ,working great ! though after change of orientation , aspect ratio of video won't keep on Android platform [tried to set fill property to false] ! same issue with brad martin's plugin ! or this is the default behavior ?
P.S. noticed the vp.java file from your demo folder , is it in use , if it was , how? thanks !
Hi, is there any way to force the control to always visible on the screen ?
When trying to use an HLS v4 streaming url, this chooses the wrong content type, and the video never starts playing. I've narrowing this down problem down to this function, and instead of it returning HLS it returns DASH. I've set this to always return HLS in my case and the video starts playing normally.
private _detectTypeFromSrc(uri: any): number { let type = com.google.android.exoplayer2.util.Util.inferContentType(uri); switch (type) { case 0: return this.TYPE.DASH; case 1: return this.TYPE.SS; case 2: return this.TYPE.HLS; default: return this.TYPE.OTHER; } }
According to this issue google/ExoPlayer#4060 inferContentType is not exhaustive, and can return the wrong content type in some instances.
Because of the limitations of inferContentType, my suggestion would be adding another property called contentType, that overrides the inferred type if set. This would allow developers to work around these edge case file types that don't get inferred properly.
I import {registerElement} from "nativescript-angular/element-registry";
registerElement("VideoPlayer", () => require("nativescript-videoplayer").Video);
In angular how can i get the instance of video player in angualr fro executing various operations like play
play() - Start playing the video
pause() - Pause the video
Plug-in requires old modules...
ERROR in ./node_modules/nativescript-exoplayer/subtitle-source/subtitle-source-common.js 3:12-34
Module not found: Error: Can't resolve 'utils/utils' in '[app path]/node_modules/nativescript-exoplayer/subtitle-source'
ERROR in ./node_modules/nativescript-exoplayer/subtitle-source/subtitle-source.android.js 3:12-34
Module not found: Error: Can't resolve 'utils/types' in '[app path]/node_modules/nativescript-exoplayer/subtitle-source'
ERROR in ./node_modules/nativescript-exoplayer/subtitle-source/subtitle-source.android.js 15:13-35
Module not found: Error: Can't resolve 'file-system' in '[app path]/node_modules/nativescript-exoplayer/subtitle-source'
ERROR in ./node_modules/nativescript-exoplayer/video-source/video-source.android.js 21:16-35
Module not found: Error: Can't resolve 'ui/enums' in '[app path]/node_modules/nativescript-exoplayer/video-source'
ERROR in ./node_modules/nativescript-exoplayer/videoplayer.android.js 8:12-51
Module not found: Error: Can't resolve 'tns-core-modules/application' in '[app path]/node_modules/nativescript-exoplayer'
...and others...
NativeScript 8.2.3 + Vue
⭕ Environment:
$ tns doctor
Error while loading nativescript-cloud is: Default commands should be required before child commands
✔ Getting environment information
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 12.0.1 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 7.0.11 version and is up to date.
⚠ Update available for component @nativescript/core. Your current version is 7.0.12 and the latest available version is 7.0.13.
✔ Component @nativescript/ios has 7.0.4 version and is up to date.
✔ Component @nativescript/android has 7.0.1 version and is up to date.
I am having issues registering the Video
element using @nativescript/angular
import {registerElement} from "@nativescript/angular";
registerElement("exoplayer", () => require("nativescript-exoplayer").Video);
import { Video } from "nativescript-exoplayer";
registerElement('exoplayer', () => Video);
❌ but I always get the below error:
TypeError: Class constructor View cannot be invoked without 'new'
at Video [as constructor] (file: node_modules/nativescript-exoplayer/videoplayer-common.js:82:0)
at new Video (file: node_modules/nativescript-exoplayer/videoplayer.ios.js:12:0)
Any idea how to register an element?
Hello,
I'm trying to run demo project from repository, but it seems to be broken, following error raises:
app/main-view-model.ts(5,23): error TS2307: Cannot find module 'nativescript-exoplayer'.
Has anyone tried livestream with nativescript-exoplayer ?
Any example or demo with nativescript angular would be nice to share around.
srcType - (Android Only)
0 = DETECT (from src)
1 = SS
2 = DASH
3 = HLS
4 = OTHER
I would like to know how can I use exoplayer with nativescript vuejs please ?
I tried this :
import exoplayer from 'nativescript-exoplayer'
...
components: {
exoplayer
},
and in my template :
<exoplayer id="nativeexoplayer"
controls="true"
loop="true" autoplay="false" height="280"
src="~/assets/videos/video1.mp4" />
But I have this error :
Unknown custom element: - did you register the component
correctly? For recursive components, make sure to provide the "name"
option.
https://github.com/NathanaelA/nativescript-exoplayer/blob/master/src/package.json#L5
Don't think it's being distributed.
Hi,
I'm getting the following error at compile time:
ERROR in node_modules/nativescript-exoplayer/videoplayer.d.ts(25,3): error TS2300: Duplicate identifier 'observeCurrentTime'.
node_modules/nativescript-exoplayer/videoplayer.d.ts(84,3): error TS2300: Duplicate identifier 'observeCurrentTime'.
I can see in the videoplayer.d.ts
file that the Video
class declares both a property called observeCurrentTime
and a method.
This bug is currently preventing compilation.
Many thanks!
Josh
Upon loading this plugin, the microphone starts listening. Why?
Is it possible to add some error event?
This would be realy helpful
Hello please the exoplayer looses aspectFill after orientation changes .. So if I start out in portrait its in aspectFill but if it goes into landscape it changes ... So reverting back to portrait now doesn't show aspectFill anymore
this plugin shows previous/next buttons by default , is it possible to expose event listeners for these buttons or just let the player accept a source array as a playlist ?
i was trying to do it myself , but after looking into the official documents , found no clue !
P.S. i am after you , haha! big fan of your work , digging around your plugins, trying to learn from it, still trying to grasp the basics though, thanks !
Any Idea?
Hello,
This plugin is no longer functional in nativescript 3.0.
Are you planning to release a compatible version of this plugin ?
hello, thanks for the plugin. on ios i've this issue: the playbackReady event won't fire, anyone else has this behaviour?how can i fix it?
thank you again
Could this be added like the nativescript-videoplayer now has?
Hello. i need help.
how can I play audio in background?
I have a news-app where I load a lot of videos through an Amazon account into nativescript-exoplayer.
The result is, that it doesn't load and it seems it doesn't even try. My best bet is, that it is dealing with too many items.
The construction is similar to this:
<ng-template let-item="item">
<StackLayout rows="*" [ngSwitch]="item.type">
<GridLayout *ngSwitchCase="'video'">
<Label [text]="item.relation.mediaInfo.videos[0].uri" textWrap="true"></Label>
<exoplayer
id="{{item.id}}"
src="{{item.relation.mediaInfo.videos[0].uri}}"
autoplay="false"
height="200"
(playbackReady)="videoPlaybackReady()"></exoplayer>
</GridLayout>
<GridLayout *ngSwitchDefault backgroundColor="gray">
<Label [text]="item.type"></Label>
</GridLayout>
</StackLayout>
</ng-template>
</ListView>
And visually the result is like
All the video paths are correct and are videos from AWS.
Any ideas?
Please how can I use Exoplayer for playing back DRM protected videos.
When I run tns build android --bundle i get the following error:
Refreshing application...
Successfully synced application org.nativescript.moviezurb on device HT543YB00350.
ActivityManager: Start proc org.nativescript.moviezurb for activity org.nativescript.moviezurb/com.tns.NativeScriptActivity: pid=10695 uid=10279 gids={50279, 1028, 1015, 3003, 5012}
System.err: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.moviezurb/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
System.err: Calling js method onCreate failed
System.err: Error: Building UI from XML. @file:///app/pages/home/home-page.xml:9:13
System.err: > Module '/data/data/org.nativescript.moviezurb/files/app/nativescript-exoplayer' not found for element 'nativescript-exoplayer:Video'.
System.err: > com.tns.NativeScriptException: Failed to find module: "/data/data/org.nativescript.moviezurb/files/app/nativescript-exoplayer", relative to: app//
System.err: com.tns.Module.resolvePathHelper(Module.java:146)
System.err: com.tns.Module.resolvePath(Module.java:55)
System.err: com.tns.Runtime.callJSMethodNative(Native Method)
System.err: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err: com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err: com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err: com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err: com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err: com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13)
System.err: android.app.Activity.performCreate(Activity.java:5312)
System.err: android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
System.err: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2395)
System.err: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
System.err: android.app.ActivityThread.access$800(ActivityThread.java:153)
System.err: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
System.err: android.os.Handler.dispatchMessage(Handler.java:102)
System.err: android.os.Looper.loop(Looper.java:157)
System.err: android.app.ActivityThread.main(ActivityThread.java:5633)
System.err: java.lang.reflect.Method.invokeNative(Native Method)
System.err: java.lang.reflect.Method.invoke(Method.java:515)
System.err: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:896)
System.err: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:712)
System.err: dalvik.system.NativeStart.main(Native Method)
System.err: File: "file:///data/data/org.nativescript.moviezurb/files/app/vendor.js, line: 11129, column: 20
System.err: StackTrace:
System.err: Frame: function:'ScopeError', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 8142, column: 24
System.err: Frame: function:'SourceError', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 8153, column: 23
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 11148, column: 17
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 11129, column: 33
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 27584, column: 13
System.err: Frame: function:'module.exports.EasySAXParser.parse', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 28452, column: 23
System.err: Frame: function:'module.exports.XmlParser.parse', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 27631, column: 22
System.err: Frame: function:'module.exports.XmlStringParser.parse', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 11135, column: 27
System.err: Frame: function:'parseInternal', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 10968, column: 11
System.err: Frame: function:'loadPage', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 11064, column: 27
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 13024, column: 26
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 13043, column: 20
System.err: Frame: function:'module.exports.FrameBase.navigate', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 13143, column: 28
System.err: Frame: function:'module.exports.ActivityCallbacksImplementation.onCreate', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 5953, column: 19
System.err: Frame: function:'module.exports.NativeScriptActivity.onCreate', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 33121, column: 25
System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2439)
System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
System.err: at android.app.ActivityThread.access$800(ActivityThread.java:153)
System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
System.err: at android.os.Looper.loop(Looper.java:157)
System.err: at android.app.ActivityThread.main(ActivityThread.java:5633)
System.err: at java.lang.reflect.Method.invokeNative(Native Method)
System.err: at java.lang.reflect.Method.invoke(Method.java:515)
System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:896)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:712)
System.err: at dalvik.system.NativeStart.main(Native Method)
System.err: Caused by: com.tns.NativeScriptException:
System.err: Calling js method onCreate failed
System.err: Error: Building UI from XML. @file:///app/pages/home/home-page.xml:9:13
System.err: > Module '/data/data/org.nativescript.moviezurb/files/app/nativescript-exoplayer' not found for element 'nativescript-exoplayer:Video'.
System.err: > com.tns.NativeScriptException: Failed to find module: "/data/data/org.nativescript.moviezurb/files/app/nativescript-exoplayer", relative to: app//
System.err: com.tns.Module.resolvePathHelper(Module.java:146)
System.err: com.tns.Module.resolvePath(Module.java:55)
System.err: com.tns.Runtime.callJSMethodNative(Native Method)
System.err: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err: com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err: com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err: com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err: com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err: com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13)
System.err: android.app.Activity.performCreate(Activity.java:5312)
System.err: android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
System.err: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2395)
System.err: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
System.err: android.app.ActivityThread.access$800(ActivityThread.java:153)
System.err: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
System.err: android.os.Handler.dispatchMessage(Handler.java:102)
System.err: android.os.Looper.loop(Looper.java:157)
System.err: android.app.ActivityThread.main(ActivityThread.java:5633)
System.err: java.lang.reflect.Method.invokeNative(Native Method)
System.err: java.lang.reflect.Method.invoke(Method.java:515)
System.err: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:896)
System.err: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:712)
System.err: dalvik.system.NativeStart.main(Native Method)
System.err: File: "file:///data/data/org.nativescript.moviezurb/files/app/vendor.js, line: 11129, column: 20
System.err: StackTrace:
System.err: Frame: function:'ScopeError', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 8142, column: 24
System.err: Frame: function:'SourceError', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 8153, column: 23
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 11148, column: 17
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 11129, column: 33
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 27584, column: 13
System.err: Frame: function:'module.exports.EasySAXParser.parse', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 28452, column: 23
System.err: Frame: function:'module.exports.XmlParser.parse', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 27631, column: 22
System.err: Frame: function:'module.exports.XmlStringParser.parse', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 11135, column: 27
System.err: Frame: function:'parseInternal', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 10968, column: 11
System.err: Frame: function:'loadPage', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 11064, column: 27
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 13024, column: 26
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 13043, column: 20
System.err: Frame: function:'module.exports.FrameBase.navigate', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 13143, column: 28
System.err: Frame: function:'module.exports.ActivityCallbacksImplementation.onCreate', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 5953, column: 19
System.err: Frame: function:'module.exports.NativeScriptActivity.onCreate', file:'file:///data/data/org.nativescript.moviezurb/files/app/vendor.js', line: 33121, column: 25
System.err: at com.tns.Runtime.callJSMethodNative(Native Method)
System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err: at com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:13)
System.err: at android.app.Activity.performCreate(Activity.java:5312)
System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2395)
System.err: ... 11 more
ActivityManager: R
ecipient 10695
Thanks!
This is a wonderful plugin! How to play in fullscreen?
Please clearify the documentation a little. I am new and I don't know how to use events. Please provide sample code :(
hi please i have this error when i run nativescript-exoplayer plugin
in angular nativescripte
how can fix this
image of the error :
https://drive.google.com/file/d/1P9I3FI6HDEAzzvgxrsDKshOLxArUmGlR/view?usp=sharing
error in Debug console :
System.err: com.tns.NativeScriptException:
System.err: Calling js method onCreateView failed
System.err: TypeError: com.google.android.exoplayer2.ui.PlaybackControlView is not a constructor
System.err: File: "file:///data/data/org.nativescript.myapp/files/app/tns_modules/nativescript-exoplayer/videoplayer.js, line: 250, column: 40
System.err: StackTrace:
System.err: Frame: function:'Video._setupMediaController', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/nativescript-exoplayer/videoplayer.js', line: 250, column: 41
System.err: Frame: function:'Video.initNativeView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/nativescript-exoplayer/videoplayer.js', line: 110, column: 14
System.err: Frame: function:'ViewBase.setNativeView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 470, column: 18
System.err: Frame: function:'ViewBase._setupUI', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 449, column: 14
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 456, column: 19
System.err: Frame: function:'LayoutBaseCommon.eachChildView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/layouts/layout-base-common.js', line: 125, column: 26
System.err: Frame: function:'ViewCommon.eachChild', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js', line: 699, column: 14
System.err: Frame: function:'ViewBase._setupUI', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 455, column: 14
System.err: Frame: function:'', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 456, column: 19
System.err: Frame: function:'ContentView.eachChildView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/content-view/content-view.js', line: 70, column: 13
System.err: Frame: function:'PageBase.eachChildView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/page/page-common.js', line: 206, column: 40
System.err: Frame: function:'ViewCommon.eachChild', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view/view-common.js', line: 699, column: 14
System.err: Frame: function:'ViewBase._setupUI', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 455, column: 14
System.err: Frame: function:'ViewBase._addViewCore', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 357, column: 18
System.err: Frame: function:'ViewBase._addView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/core/view-base/view-base.js', line: 346, column: 14
System.err: Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 504, column: 24
System.err: Frame: function:'FragmentClass.onCreateView', file:'file:///data/data/org.nativescript.myapp/files/app/tns_modules/tns-core-modules/ui/frame/fragment.js', line: 27, column: 38
System.err: at com.tns.Runtime.callJSMethodNative(Native Method)
System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:957)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:941)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:933)
System.err: at com.tns.FragmentClass.onCreateView(FragmentClass.java:40)
System.err: at android.app.Fragment.performCreateView(Fragment.java:2053)
System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894)
System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
System.err: at android.app.BackStackRecord.run(BackStackRecord.java:834)
System.err: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
System.err: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:447)
System.err: at android.os.Handler.handleCallback(Handler.java:739)
System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
System.err: at android.os.Looper.loop(Looper.java:135)
System.err: at android.app.ActivityThread.main(ActivityThread.java:5254)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at java.lang.reflect.Method.invoke(Method.java:372)
System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
ActivityManager: Process org.nativescript.myapp (pid 2427) has died
How can I call API method in vue? Can anyone give me some snippets for Vue?
Thanks
I am a newbie. Please forgive me for the idiot problem. I want to add a full-screen button to the default controller, and I want to modify the default similarity (play button, delete forward button, adjust the size and position of the play button) Style, I am using angular. I don't understand exactly how to do it. I don't see any related options in the plugin. Hope someone can help me.
Uncaught (in promise): TypeError: null is not an object (evaluating 'currentItem.removeObserverForKeyPath')
_removeStatusObserver@file:///app/tns_modules/nativescript-exoplayer/videoplayer.js:194:20
destroy@file:///app/tns_modules/nativescript-exoplayer/videoplayer.js:175:35
Setting the property "Muted" to true mutes the video on ios but not on android.
When running on Android v27, I see this error.
I'm using NativeScript v6 with project created from CLI with Angular.
Implementation:
import { registerElement } from "nativescript-angular/element-registry"; registerElement('exoplayer', () => require('nativescript-exoplayer').Video);
HTML:
<exoplayer src="https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" autoplay="true" height="300"> </exoplayer>
StackTrace:
StackTrace: System.err: at com.tns.Runtime.callJSMethodNative(Native Method) System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1242) System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1122) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1109) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1089) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1081) System.err: at com.tns.gen.com.google.android.exoplayer2.SimpleExoPlayer_VideoListener.onSurfaceSizeChanged(Unknown Source:21) System.err: at com.google.android.exoplayer2.SimpleExoPlayer.maybeNotifySurfaceSizeChanged(SimpleExoPlayer.java:1169) System.err: at com.google.android.exoplayer2.SimpleExoPlayer.setVideoSurface(SimpleExoPlayer.java:321) System.err: at com.tns.Runtime.callJSMethodNative(Native Method) System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1242) System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1122) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1109) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1089) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:1081) System.err: at com.tns.gen.android.view.TextureView_SurfaceTextureListener.onSurfaceTextureAvailable(TextureView_SurfaceTextureListener.java:22) System.err: at android.view.TextureView.getHardwareLayer(TextureView.java:390) System.err: at android.view.TextureView.draw(TextureView.java:339) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19315) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19306) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19306) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.draw(View.java:20373) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19315) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.draw(View.java:20373) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19315) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19306) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19306) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19306) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19306) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19306) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19306) System.err: at android.view.View.draw(View.java:20093) System.err: at android.view.ViewGroup.drawChild(ViewGroup.java:4421) System.err: at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4207) System.err: at android.view.View.draw(View.java:20373) System.err: at com.android.internal.policy.DecorView.draw(DecorView.java:980) System.err: at android.view.View.updateDisplayListIfDirty(View.java:19315) System.err: at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:686) System.err: at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:692) System.err: at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:800) System.err: at android.view.ViewRootImpl.draw(ViewRootImpl.java:3496) System.err: at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3283) System.err: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2818) System.err: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1780) System.err: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7827) System.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911) System.err: at android.view.Choreographer.doCallbacks(Choreographer.java:723) System.err: at android.view.Choreographer.doFrame(Choreographer.java:658) System.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897) System.err: at android.os.Handler.handleCallback(Handler.java:789) System.err: at android.os.Handler.dispatchMessage(Handler.java:98) System.err: at android.os.Looper.loop(Looper.java:164) System.err: at android.app.ActivityThread.main(ActivityThread.java:6944) System.err: at java.lang.reflect.Method.invoke(Native Method) System.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.