Is it possible to feed sound from bluetooth source through phone to bluetooth headset?

We use 2 way radios for communication at work. It’s often difficult to hear the radio over background noise, so I ordered a bluetooth adapter to plug into the radio to go to an earpiece so I can hear the radio better. I already often wear a bluetooth headset connected to my phone to make phone calls or listen to music when appropriate. What I want to know is would it be possible to link the radio adapter to my phone, and then route the radio sound to the headset linked to the phone, so that I could both make phone calls and talk on the radio with the same headset?
I have an S21 ultra, and the two bluetooth headsets I have are an aftershockz trek air or an axil gs extreme if that makes any difference.

Custom RSS Feed Overwrites Permalink

I’m trying to setup a custom RSS feed for attachments with a meta field. I succeeded in making the feed, however it’s now overwriting the actual site content.

add_action( 'init', 'add_custom_feed' );
function add_custom_feed() {
  add_feed( 'photos', 'render_photos_feed');
}
function render_photos_feed() {
  //WP_Query for attachment
  get_template_part( 'rss', 'photos' );
}

I have a poor understanding of where exactly a url is created here. What I’m expecting is example.com/photos/feed or example.com/feed/photos. I’m getting example.com/feed/photos but then also example.com/photos, which is where the Page that displays my photos exists. I can flush permalinks and turn off the action for this feed and render my page, but when it’s online, I can see on the Photos page that its permalinked to photos-2. I can’t find any documentation online about why that happens.

I really don’t want to create a CPT for these, the workflow of adding a checkbox was really easy & reduces noise on the backend and the WP Query works. Secondarily, I also am wondering if it’s possible to change the main feed to be posts & photos. I can’t just hijack the feed WP_Query because its an OR logic (get posts or attachment w/ meta value). Any thoughts there are welcome too.

functions – Why is my page feed returning empty content?

I am trying to debug why my page feed with is returning empty.

Here’s the URL for same,

http://localhost/design-patterns/code-improvement/feed/

I’m seeing the following output here,

<?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    
    >
<channel>
    <title>
    Comments on: Checking Account   </title>
    <atom:link href="http://localhost/design-patterns/code-improvement/feed/" rel="self" type="application/rss+xml" />
    <link>http://localhost/design-patterns</link>
    <description>Just another WordPress site</description>
    <lastBuildDate>Mon, 26 Apr 2021 06:33:50 +0000</lastBuildDate>
    <sy:updatePeriod> hourly    </sy:updatePeriod>
    <sy:updateFrequency> 1  </sy:updateFrequency>
</channel>
</rss>

As you see there are no <item> tags present, inspite of there being content in that page.

That is because,

while ( have_comments() ) : at wp-includesfeed-rss2-comments.php

but the fact is wp-includesfeed-rss2-comments.php should never have been called, instead I needed wp-includesfeed-rss2.php which calls while ( have_posts() ) :

While debugging I reached till wp-includesfunctions.php

In there the function which was getting called was do_feed_rss2. Now according to the doc if the feed is for comments the $for_commentsflag should be true.

What I observed in my case is it was giving true value and since the page had no comments the feed was returning to be empty.

So I started searching for the do_action call for do_feed_rss2 , thinking that is where the value must be getting set from, but all i could find is this,

enter image description here

Can anybody help me finding why is this $for_comments flag getting set as true?

Thank you.

webcam – Use custom video to feed camera

What I am trying to achive is to redirect my camera /dev/video0 with a custom video file.

Desired Reasult:

When opened a application like cheese or websites like jitsi which process the buffer from my camera. Is it possible to use already captured video file as camera input.

Previous attempt:

I followed a answer from this answer but i am getting a error message as

(video4linux2,v4l2 @ 0x556927267880) ioctl(VIDIOC_G_FMT): Invalid argument
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 -- 
Conversion failed!

on executing the command

ffmpeg -re -i ~/Videos/Webcam/sample.webm -map 0:v -f v4l2 /dev/video0

8 – How do I create a personalized feed?

I created a Views to display messages from the Message module. I want to create an RSS feed, but the display proposed by the Views module doesn’t manage images and doesn’t allow the fields to be grouped together.

How do I create a personalized RSS feed?

The template for the RSS display mode I created is the following.

message.html.twig

<item>
  <title>{{ drupal_token('message:field_node_reference:entity:title', {message: message}) }}</title>
  <link>{{ drupal_token('message:field_node_reference:entity:url', {message: message}) }}</link>
  <description>{{ drupal_token('message:field_node_reference:entity:content-type', {message: message}) }}</description>
  <pubDate>{{ drupal_token('message:created:since', {message: message}) }}</pubDate>
  <dc:creator>{{ drupal_token('message:author:display-name', {message: message}) }}</dc:creator>
  <enclosure url="{{ drupal_token('message:rss-node-render', {message: message}) }}" length="3180" type="image/jpeg"/>
  <guid isPermaLink="true">{{ drupal_token('message:url:absolute', {message: message}) }}</guid>
</item>

I want to use my view because it will have context filters. I have to rewrite it entirely.

screenshot

unreal 4 – UE4 Repeat fail: how to feed text widget unique message on instances

I am a noob who has spent many hours looking at similar questions and responses but still failing to get desired result. I am going to be thorough and specific – I’m very keen on walk-throughs with any helpful experts! Thanks in advance.

Backdrop
My level consists (ideally) of the following:

  • Trigger boxes
  • Spheres that have 2x-sided texture with media player texture (let’s call these “movie globes”)
  • Transparent actors with blinking borders and are clickable (“highlight_inspect”)
  • (I made these with a tutorial on adding post-process stencil depth something or other in order to get a blinking appearance)
  • Text widget that appears to inform viewer of what they clicked. Variable across unique instances

In simple terms let’s say I have 5 trigger boxes with 5 unique (360ยบ video-captured) movies. You step into trigger, sphere appears around the actor and the media texture/movie begins playing on inside of that sphere (I successfully did this), at which point you can pan around and look. I initiate a delay function before the visibility for “highlight inspect” appears, so that the user may spontaneously first look at movie around them before seeing blinking highlights over certain people, things, etc captured/displayed in movie imagery.

Let’s say the movie globes are depicting different forest types or different habitats, and the user is meant to learn about “xx oak tree” “yy pine species” “zz herb that provides x benefit” etc. The idea is to have a kind of interactive museum per se.

Some globes might only have one highlight, some might have 4 – the idea is that I can use the “highlight_inspectable” actor object as a click event across these instances but each one returns unique text upon a widget template (saves font/color/style etc)

As if to demonstrate my thick-headedness around this issue of actor objects and instances, I also currently have separate but locationally equivalent triggers for the globe and for the highlight object, mainly because I need different spheres to call different movies in their blueprint… in other words

  • I have an actor that has a component ‘trigger capsule’ that toggles visibility of a sphere
  • i have an actor that has a component ‘trigger capsule’ that toggles visibility of highlight_inspect mesh object..

I just need a simple way to do all this *sigh/shakes fist/bangs head on wall.

what I’m failing to learn
I’ve come across “casting” and “blueprint interfaces” and “event dispatchers” and more, and I’m still not grasping those and whether any apply here and how.

I kinda understand that I should be able to make the Text Element in the Widget “variable” and/or bind it to a variable.. but I can’t smoothly achieve this.

Thank you for your help, I am posting some images below (in the screenshots the pink cylinder+light is the trigger, and the next screenshot is user’s POV standing there after globe materializes and highlight is showing. the sketch up is for more illustration)

ps the second screenshot is actually in next comment
-SS

enter image description here
enter image description here
enter image description here
enter image description here

8 – How to create a personalized RSS Feed?

I created a Views to display the Messages (from the Message module). I want to create an RSS Feed, but the RSS Feed display proposed by the Views does not manage images and does not allow the fields to be grouped together.

How to create a personalized RSS Feed ?

I created an RSS display mode for Messages and here is my template.

message.html.twig :

<item>
  <title>{{ drupal_token('message:field_node_reference:entity:title', {message: message}) }}</title>
  <link>{{ drupal_token('message:field_node_reference:entity:url', {message: message}) }}</link>
  <description>{{ drupal_token('message:field_node_reference:entity:content-type', {message: message}) }}</description>
  <pubDate>{{ drupal_token('message:created:since', {message: message}) }}</pubDate>
  <dc:creator>{{ drupal_token('message:author:display-name', {message: message}) }}</dc:creator>
  <enclosure url="{{ drupal_token('message:rss-node-render', {message: message}) }}" length="3180" type="image/jpeg"/>
  <guid isPermaLink="true">{{ drupal_token('message:url:absolute', {message: message}) }}</guid>
</item>

I want to use my view because it will have context filters. I have to rewrite it entirely.

enter image description here

rss – How do you check where the feed is being instantiated?

I need to set up a RSS feed, so the first thing I did was to check if I had a feed:

https://feedburner.google.com/fb/a/myfeeds?gsessionid=pVO3JdJC-QFJNqPlkoaNJtTYqY3Zlivw-RIJovo4Q4g

I used this and checked /feed, but it seems I don’t have any feed. How do you check to see if you have any feed available, and how do you enable or disable feed?

I received the following message: We could not find a valid feed at that address.

I also added:

add_theme_support( 'automatic-feed-links' );

inside functions.php. However, I can’t find the feed still on my local environment. Is there a way to check where the feed is instantiated?