Jump to content

Video won't play using built in player


onlyonthursdays

Recommended Posts

onlyonthursdays

As above. Some videos work, some don't. If it doesn't, it will allow up the player screen for a second, then close.
If i open in an external player everything works fine, but ib like the emby player :)

Partial log here-

07:38:41.265 [main] INFO App - Searching for com.google.android.webview
07:38:41.273 [main] INFO App - com.google.android.webview version name: 51.0.2704.90
07:38:41.274 [main] INFO App - com.google.android.webview version code: 275509050
07:38:41.274 [main] INFO App - Parsing 51 to determine chromium version
07:38:41.275 [main] INFO App - Chromium version: 51
07:38:41.571 [main] DEBUG App - AndroidSyncFileRepository started. syncPath: /storage/emulated/0/Android/data/com.mb.android/files/sync
07:38:41.637 [main] INFO App - Searching for com.google.android.webview
07:38:41.639 [main] INFO App - com.google.android.webview version name: 51.0.2704.90
07:38:41.639 [main] INFO App - com.google.android.webview version code: 275509050
07:38:41.640 [main] INFO App - Parsing 51 to determine chromium version
07:38:41.640 [main] INFO App - Chromium version: 51
07:38:41.643 [main] DEBUG App - Calling MediaSyncAdapter.updateSyncPreferences. syncPath: null
07:38:42.568 [JavaBridge] INFO App - Received instruction to updateCredentials
07:38:42.585 [JavaBridge] INFO App - AppVersion: 2.7.89
07:38:42.586 [JavaBridge] INFO App - DeviceId: 69167137f40a2cdb
07:38:42.590 [JavaBridge] INFO App - DeviceName: Nexus 6P
07:38:42.798 [JavaBridge] INFO App - initStore called
07:38:42.801 [JavaBridge] DEBUG App - IAB helper created.
07:38:42.802 [JavaBridge] DEBUG App - Starting in-app billing setup.
07:38:42.827 [main] DEBUG App - Billing service connected.
07:38:42.828 [main] DEBUG App - Checking for in-app billing 3 support.
07:38:42.908 [main] DEBUG App - In-app billing version 3 supported for com.mb.android
07:38:42.914 [main] DEBUG App - Subscriptions AVAILABLE.
07:38:42.916 [main] DEBUG App - Starting async operation: refresh inventory
07:38:42.922 [Thread-7] DEBUG App - Querying owned items, item type: inapp
07:38:42.923 [Thread-7] DEBUG App - Package name: com.mb.android
07:38:42.930 [main] INFO App - file:///android_asset/www/index.html: Line 0 : Uncaught (in promise) SecurityError: Failed to register a ServiceWorker: The URL protocol of the current origin ('file://') is not supported.
07:38:42.930 [Thread-7] DEBUG App - Querying SKU details.
07:38:43.071 [Thread-7] DEBUG App - Querying owned items, item type: subs
07:38:43.072 [Thread-7] DEBUG App - Package name: com.mb.android
07:38:43.077 [Thread-7] DEBUG App - Querying SKU details.
07:38:43.134 [Thread-7] DEBUG App - Ending async operation: refresh inventory
07:38:43.136 [main] INFO App - Sending url to webView: IapManager.onStoreReady();
07:38:43.247 [JavaBridge] INFO App - getPurchaseInfos
07:38:43.250 [JavaBridge] INFO App - Checking purchase status of com.mb.android.unlock
07:38:43.252 [JavaBridge] DEBUG App - Starting async operation: refresh inventory
07:38:43.258 [Thread-8] DEBUG App - Querying owned items, item type: inapp
07:38:43.261 [Thread-8] DEBUG App - Package name: com.mb.android
07:38:43.273 [Thread-8] DEBUG App - Querying SKU details.
07:38:43.275 [Thread-8] DEBUG App - queryPrices: nothing to do because there are no SKUs.
07:38:43.276 [Thread-8] DEBUG App - Querying owned items, item type: subs
07:38:43.277 [Thread-8] DEBUG App - Package name: com.mb.android
07:38:43.284 [Thread-8] DEBUG App - Querying SKU details.
07:38:43.285 [Thread-8] DEBUG App - queryPrices: nothing to do because there are no SKUs.
07:38:43.286 [Thread-8] DEBUG App - Ending async operation: refresh inventory
07:38:43.287 [JavaBridge] INFO App - *** IsPurchased Result: com.mb.android.unlock Failure
07:38:43.288 [JavaBridge] INFO App - Sending url to webView: window.IapManager.updateProduct("com.mb.android.unlock", false)
07:38:43.291 [JavaBridge] INFO App - Checking purchase status of emby.supporter.monthly
07:38:43.293 [JavaBridge] DEBUG App - Starting async operation: refresh inventory
07:38:43.305 [Thread-9] DEBUG App - Querying owned items, item type: inapp
07:38:43.307 [Thread-9] DEBUG App - Package name: com.mb.android
07:38:43.312 [Thread-9] DEBUG App - Querying SKU details.
07:38:43.313 [Thread-9] DEBUG App - queryPrices: nothing to do because there are no SKUs.
07:38:43.315 [Thread-9] DEBUG App - Querying owned items, item type: subs
07:38:43.316 [Thread-9] DEBUG App - Package name: com.mb.android
07:38:43.326 [Thread-9] DEBUG App - Querying SKU details.
07:38:43.327 [Thread-9] DEBUG App - queryPrices: nothing to do because there are no SKUs.
07:38:43.327 [Thread-9] DEBUG App - Ending async operation: refresh inventory
07:38:43.328 [JavaBridge] INFO App - *** IsPurchased Result: emby.supporter.monthly Failure
07:38:43.330 [JavaBridge] INFO App - Sending url to webView: window.IapManager.updateProduct("emby.supporter.monthly", false)
07:38:43.451 [JavaBridge] INFO App - initialize origin_scoped 2D4B1DA3 2D4B1DA3
07:38:43.452 [JavaBridge] INFO App - lastAppId 2D4B1DA3
07:38:44.959 [JavaBridge] INFO App - Received instruction to updateCredentials
07:38:54.129 [JavaBridge] INFO App - Received instruction to updateCredentials
07:39:16.170 [JavaBridge] INFO App - No local media source found for item id: 019af3346d49bd77adf71ed418fd91d8
07:39:16.523 [JavaBridge] INFO App - Checking file exists: *path to file*.mp4
07:39:16.712 [JavaBridge] DEBUG App - Vlc received command: setvolume
07:39:16.845 [JavaBridge] DEBUG App - Video path: http://1IP
07:39:16.996 [main] DEBUG App - AndroidSyncFileRepository started. syncPath: /storage/emulated/0/Android/data/com.mb.android/files/sync
07:39:16.997 [main] DEBUG App - Calling MediaSyncAdapter.updateSyncPreferences. syncPath: null
07:39:17.003 [main] DEBUG App - MediaRouter information : android.media.MediaRouter@ed6cff1
07:39:17.008 [main] INFO App - No secondary display detected
07:39:17.793 [main] INFO App - libVlc version 3.0.0-git Vetinari
07:39:17.803 [main] INFO App - getAout result: android_audiotrack
07:39:18.199 [main] DEBUG App - Connected to PlaybackService
07:39:18.290 [main] DEBUG App - Begining startPlayback
07:39:18.292 [main] DEBUG App - vlcVout.addCallback
07:39:18.293 [main] DEBUG App - vlcVout.attachViews
07:39:18.300 [main] ERROR App - Invalid surface size
07:39:18.382 [main] INFO App - normalizeLocation location http://path, playMethod DirectStream, startPositionTicks 0
07:39:18.383 [main] DEBUG App - Parsed uri: http://path
07:39:18.407 [main] INFO App - Loading position 0 in [com.mb.android.media.MediaWrapper@fbdce89]
07:39:18.539 [main] INFO App - Media.Event.MetaChanged: 12
07:39:18.541 [main] INFO App - Media.Event.MetaChanged: 12
07:39:21.713 [main] INFO App - Media.Event.MetaChanged: 12
07:39:21.714 [main] INFO App - Media.Event.MetaChanged: 13
07:39:21.859 [main] DEBUG App - VideoPlayerActivity.OnNewLayout width=960 height=544 visibleWidth=960 visibleHeight=540 sarNum=1 sarDen=1
07:39:21.866 [main] DEBUG App - VideoPlayerActivity.OnNewLayout width=960 height=544 visibleWidth=960 visibleHeight=540 sarNum=1 sarDen=1
07:39:22.247 [main] INFO App - Media.Event.ParsedChanged
07:39:22.252 [main] INFO App - MediaPlayer.Event.Playing
07:39:22.262 [Timer-1] DEBUG App - Vlc player state: 3
07:39:22.269 [main] INFO App - setSubtitleStreamIndex -1
07:39:22.269 [main] INFO App - Disabling subtitles
07:39:22.282 [Timer-1] DEBUG App - Adding request to queue: http://path
07:39:22.327 [main] DEBUG App - VideoPlayerActivity.OnNewLayout width=960 height=544 visibleWidth=960 visibleHeight=540 sarNum=1 sarDen=1
07:39:22.329 [main] DEBUG App - VideoPlayerActivity.OnNewLayout width=960 height=544 visibleWidth=960 visibleHeight=544 sarNum=1 sarDen=1
07:39:22.331 [main] INFO App - MediaPlayer.Event.EndReached
07:39:22.336 [main] INFO App - Warning: invalid next index, aborted !
07:39:22.624 [main] INFO App - Response received from: http://path
07:39:22.626 [main] DEBUG App - VideoPlayerActivity.OnNewLayout width=960 height=544 visibleWidth=960 visibleHeight=544 sarNum=1 sarDen=1
07:39:25.201 [main] INFO App - file:///android_asset/www/index.html#!/itemdetails.html?id=019af3346d49bd77adf71ed418fd91d8: Line 0 : Blink deferred a task in order to make scrolling smoother. Your timer and network tasks should take less than 50ms to run to avoid this. Please see https://developers.google.com/web/tools/chrome-devtools/profile/evaluate-performance/rail and https://crbug.com/574343#c40 for more information.
07:39:40.748 [JavaBridge] DEBUG App - Vlc received command: stop
07:39:40.794 [JavaBridge] INFO App - No local media source found for item id: 69affc5ae19cce8683adfbaf7c9cedbe
07:39:40.823 [main] DEBUG App - MediaService.handleIntent action=action_stop
07:39:40.826 [main] DEBUG App - handleStopRequest: mState=0 error=
07:39:40.827 [main] DEBUG App - giveUpAudioFocus
07:39:40.828 [main] DEBUG App - relaxResources. releaseMediaPlayer

Edited by onlyonthursdays
Link to comment
Share on other sites

Hi, sorry to hear about this. Do you notice anything in common about the ones that are not working? Can you discuss an example? What is the media info (copy/paste from the web app). Thanks !

Link to comment
Share on other sites

onlyonthursdays

Hi, I don't see what's the difference between one that works and one that doesn't.

Both are mp4 with h264 codec.

 

By the way, everything worked fine until about 1 or 2 weeks ago. I have tried deleting cache and data.

Link to comment
Share on other sites

onlyonthursdays

How can I do that? Can I temporarily give you access to my server instead?

Edited by onlyonthursdays
Link to comment
Share on other sites

onlyonthursdays

Not sure, but playing around I have found I can make it work if I change the max streaming bitrate to 720p 2mbps. Anything below works, anything above doesn't work.

 

It was on auto before.

Link to comment
Share on other sites

Yea, probably because that is low enough to trigger server transcoding which converts the file, and that then fixes it.

Link to comment
Share on other sites

  • 3 weeks later...
onlyonthursdays

So I've been using this method temporarily but it would be nice to stream directly. All files work perfectly fine without transcoding on my iPad. Any idea why this could be happening?

Link to comment
Share on other sites

Did you provide a sample file? We are using libVlc for playback and there is a chance it might just be having trouble with these files but i need to do some testing to confirm. thanks.

Link to comment
Share on other sites

  • 3 weeks later...

Edit: Now it suddely works again! Didn't change anything. I'm good for now :)

 

Hi!
I'm having the same problem that videos will no longer play in the Emby-app but will still play in an external app like the native videoplayer! Chromecast also still works. I'm not 100% sure but it could be the recent app update that broke something or maybe the phone system update I installed recently. I usually don,t play videos locally on my phone, so it's hard to pinpoint exactlly when it stopped playing! The quality setting is Auto and I'm on my LAN, so no transcoding. The server event log states that playback did start on my phone.

Edited by swehawk
  • Like 1
Link to comment
Share on other sites

onlyonthursdays

Mine is still not working unfortunately! I just use the external video player now (MX player).

 

On a related note it would be great to set a default option for the pop-up after watching with external player. It's annoying having to click done after each watch.

Link to comment
Share on other sites

tyneteestv

Hi, I'm having the same problem as onlyonthursdays. Most files play fine, direct and via transcoding but some (I think only those processed by get_iplayer) stop immediately upon playback. I see the first frame then it vanishes and returns to menu. The same files on the same device play fine with an external video player (including VLC) or via the web browser or after forced transcoding so it looks like a problem in the app. Both server and apps updated to latest versions. Any ideas? Thanks.

Edited by tyneteestv
Link to comment
Share on other sites

Hi, I'm having the same problem as onlyonthursdays. Most files play fine, direct and via transcoding but some (I think only those processed by get_iplayer) stop immediately upon playback. I see the first frame then it vanishes and returns to menu. The same files on the same device play fine with an external video player (including VLC) or via the web browser or after forced transcoding so it looks like a problem in the app. Both server and apps updated to latest versions. Any ideas? Thanks.

 

Hi, sorry to hear about this. Are you able to provide a sample file for testing purposes? thanks !

Link to comment
Share on other sites

Sure, I'll PM a sample. 

ta

 

I can confirm the issue with your sample file. It is indeed a failure in the video player library that we're using, libVlc. What we need to do here is handle that with an automatic switch to transcoding. Our android tv app already has this but it just hasn't been added to the mobile app yet. In addition, we do regularly update libVlc so there's a good chance that future updates will improve the situation as well. Thanks.

Link to comment
Share on other sites

tyneteestv

Thanks for looking into this. Any reason why the files play fine in standalone VLC?

Fingers crossed libVlc update catches it.

cheers

ttv 

Link to comment
Share on other sites

Thanks for looking into this. Any reason why the files play fine in standalone VLC?

Fingers crossed libVlc update catches it.

cheers

ttv 

 

In VLC, check your settings. What is the audio output mode? Is it OpenSL or AudioTrack? That might make a difference. Thanks.

Link to comment
Share on other sites

tyneteestv

It was originally AudioTrack but I've tried it set to OpenSL. Both work for VLC, both fail for Emby.

cheers

tttv

Edited by tyneteestv
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...