Forum Activity for @softdesigns

SoftDesigns
@softdesigns
05/17/17 07:14:05PM
242 posts

Video Stream URL


Jamroom Developers

@michael : Yes, your advice above works :)
--
For others who may need, the final URL to Stream Video to MP4 (Mobile) looks like this:

https://yoursite.com/video/stream/video_file_mobile/ID

Replace "ID" with valid Video ID
--
Great Support - Solved...
SoftDesigns
@softdesigns
05/17/17 02:07:24AM
242 posts

Video Stream URL


Jamroom Developers

We recently understand to Stream any JR audio use URL like this:
https://yoursite.com/audio/stream/audio_file/ID
--
Questions on Video stream URL:

#1: Is this correct URL to stream any Video? :
https://yoursite.com/video/stream/video_file/ID

#2: When we use URL above we get a FLV download - we need an MP4 stream to a web media player. How to Stream Video instead of download?

#3: In Data Browser videos has .FLV extenstion - Can we specify the video be streamed in MP4 format?
updated by @softdesigns: 08/18/17 05:05:44PM
SoftDesigns
@softdesigns
04/30/17 12:39:38PM
242 posts

Custom Module Multi Language


Jamroom Developers

All our language file and URL settings seem correctly coded as Michael outlined above.
--
Maybe the issue related to this:
When we check cookies - actually we see 2 jr_lang cookies set differently: One for the User at Profle level, and one for the Custom Module?
--
Maybe because we added the "set_user_language" URL inside a Custom Module template?
--
Where should we add the "set_user_language" URL - at the module template level or site level ?
updated by @softdesigns: 04/30/17 04:23:25PM
SoftDesigns
@softdesigns
04/29/17 11:35:57AM
242 posts

Custom Module Multi Language


Jamroom Developers

@Michael: RE: Google Language – Yes – Totally Agree: After a decade living in Asia, I share your pain for the mess of Google Language auto detecting and setting language based on location - extremely annoying. Let us ensure to have our JR site multi-language user experience much better than Google – haha.
--
RE: JR Language files: Setting the language at the USER level is great idea – should work well for us.
--
#1: If user has never selected a language - Maybe need a META setting in custom module, to set default language? Whatever you think best...
--
#2: After further testing: Selected language still does not "stick": After user clicks a link to change the language - it works UNTIL they click off that page. Not sure if this is a bug, or if we are still missing something.
--
FYI: We have a STAGE site running JR live in Cloud IDE at www.C9.io (recently purchased by Amazon) : One click code change, save, and instantly run module changes - enabled for remote team coding :)
We can "share" our STAGE workspace where you can instantly run our test code, and quickly see this issue in real-time.
If JR staff has a www.C9.io account UserName please send in reply. ( C9 offers 1 free workspace )
If you do not have a C9 free account, we have an extra account – but will need to send private ticket - with our C9 login credentials.
updated by @softdesigns: 04/29/17 06:42:46PM
SoftDesigns
@softdesigns
04/28/17 03:11:52PM
242 posts

Custom Module Multi Language


Jamroom Developers

After further testing - the language switch almost works, but notice two issues:
--
1 : On first time users hits module template, the custom module selects the wrong language by default: How to set which language file is the "default" for the custom module? (Not at the site or skin level, just at the custom module level)
--
2 : After user clicks a link to change the language - it works UNTIL they click off that page. So the custom module reverts back to the default language after they hit a different module template page, even though the user selected a different language...
--
Maybe we are missing some config code?
Please Advise...
updated by @softdesigns: 04/28/17 07:09:00PM
SoftDesigns
@softdesigns
04/28/17 06:25:47AM
242 posts

Custom Module Multi Language


Jamroom Developers

Great - We have tested adding a second language toggle via custom module template links - and seems working well.
--
JR Platform seems very well designed, already has everything in place for multi-language custom modules.
--
Will need more time for study and further testing..
--
Great Support :)
updated by @softdesigns: 04/28/17 06:27:17AM
SoftDesigns
@softdesigns
04/27/17 02:04:46PM
242 posts

Custom Module Multi Language


Jamroom Developers

GOAL : On any of our Custom Modules: Add Dropdown or Toggle - Allow User to select between two languages
--
We understand the concept of resource language files.
Seems the code sample below is required to use language files in JR Smartly templates:
<span class="jraudio_title">{jrCore_lang module="jrAudio" id="14" default="audio file"}: </span> {$item.name}<br>
However most JR code we search only has one language file: en-US.php
--
We need sample code on how to "switch" between two JR language files?
updated by @softdesigns: 07/30/17 01:01:29PM
SoftDesigns
@softdesigns
04/24/17 08:23:03AM
242 posts

Custom Module AJAX URL


Jamroom Developers

Cool - We want to make sure we are coding correctly for JR framework.
--
BTW - Smarty may not be the latest code trend, but Smarty seems powerful, clean, and fast - should work great for us...
--
Thanks to all replies :)
Need time to study further...
updated by @softdesigns: 04/24/17 08:27:34AM
SoftDesigns
@softdesigns
04/24/17 03:12:28AM
242 posts

Custom Module AJAX URL


Jamroom Developers

Goal : Custom Module POST via AJAX to correct URL
--
Searching thru JR code, we find many examples of .ajax - all seem to build .ajax URL in a similar manner:
    var url = core_system_url + '/' + jrProfile_url + '/get_pulse_counts/__ajax=1';
    $.ajax({
        type: 'GET',
        url: url,
        dataType: 'json',
        cache: false,
        success: function(n)
        {
            if (cb !== null && typeof cb == "function") {
                cb(n);
            }
        }
    });

Question:
1) Where do these values "core_system_url", "jrProfile_url" get set? Are similar vars available by default to custom modules?
var url = core_system_url + '/' + jrProfile_url + '/get_pulse_counts/__ajax=1';
2) In code above, how does JR Custom Module framework implement the last param "__ajax=1"
3) How do Custom Modules build the correct .ajax URL in JS?
--
This is not a general code question, we are fluent with php, ajax, js code, etc...
--
This question is about how to implement .ajax correctly inside the JR Custom Module framework. Specifically how to correctly set the .ajax URL in the JS of a custom module.

Please Advise...
updated by @softdesigns: 07/23/17 11:41:24AM
SoftDesigns
@softdesigns
04/23/17 12:52:41PM
242 posts

jrCore_list Filter By Fixed ProfileIDs


Jamroom Developers

Great Support - Thanks :)
Solved...
  17