Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epub content is shown only in one app among multiple apps (use at a time) when we use folioreader library in multiple apps(due to same port number) #276

Closed
techvedikasolutions opened this issue Sep 5, 2018 · 3 comments
Labels

Comments

@techvedikasolutions
Copy link

techvedikasolutions commented Sep 5, 2018

I am using the folioreader sdk in multiple apps.If we use all the apps at a time epub content shows in only one app.because same port number is using in all apps to run the server(which folio reader library using to get the content from localhost server).Is there any way to solve this issue.

Issue / Feature - issue
FolioReader version - 0.39
FolioReader Stock / Modified -
Android SDK -
Mobile / Tablet / Emulator Info - in all phones
Crash / Error -

Steps to reproduce / Describe in detail - just integrate the library in multiple apps and use the apps at a time.

@techvedikasolutions techvedikasolutions changed the title I am using the folioreader sdk in multiple apps.If we use all the apps at a time epub content shows in only one app.because same port number is using in all apps to run the server(which folio reader library using to get the content from localhost server).Is there any way to solve this issue. Epub content is shown only in one app among multiple apps (use at a time) when we use folioreader library in multiple apps(due to same port number) Sep 5, 2018
@hrishikesh-kadam
Copy link
Contributor

@techvedikasolutions You need to provide different port no for different apps and pass the port no by calling following method.

public FolioReader openBook(String assetOrSdcardPath, int port) {

@techvedikasolutions
Copy link
Author

Presently you people statically defined the port number in the code.Even though we pass the port number from our app code.So I taken the library code to my app code and use the different port numbers to run them.But we got one doubt like if anyone(other apps) uses the same library with same port number then also we got the same issue,we maynot know whether the other apps using which port number right?.In that case do we have any alternatives for this.

@hrishikesh-kadam
Copy link
Contributor

@techvedikasolutions Yes there is bug in FolioReader which has static url hitting the local server.
Currently we are busy in migrating from r2-streamer-java to r2-streamer-kotlin.
After migration to r2-streamer-kotlin we will take this bug and will come with some logic to handle your query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants